Options

Factbox with parametric page

BeliasBelias Member Posts: 2,998
edited 2010-08-04 in NAV Three Tier
Hi everyone, i want to ask you if you already implemented something like this:
Example:
i have a sales document line and an action related to it (it's an action of the subform, like item tracking lines, for example)
This action is doing something like
MyPage.SETTABLEVIEW(mytable);
...
MyPage.Getparameter(1,2,3,4,5);
MyPage.Seteditable(true)
...
MyPage.RUN(/RUNMODAL);
This is a common way to pass parameters/special filters to a form.
My question is simple: how can i have the same behavior of the page, but having it shown in a factbox?Or better, how can i call all the functions before the run of the page? (i know ProviderID, my question is about the running of those preprocessing functions)
Obviously, the factbox updates every time i change the focus on the sales line.
Thanks in advance
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog

Comments

  • Options
    BeliasBelias Member Posts: 2,998
    no-one?then, i guess it's not possible...too bad :(
    it would be perfect to declare the sourcetable of the factbox, but :whistle: there's no such property...thanks anyway to the readers of this topic
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    stevedivimaststevedivimast Member Posts: 39
    Ciao Belias,
    I'm not sure I understood exacly what you are trying to do, but anyway you can call Factbox page function from the main page in this way:

    CurrPage.FactboxPartName.FORM.Factboxpagefunction(parameter1, parameter2...);

    <Control1900000002> <Control1900000002> Container ContentArea
    <Control1000000002> <Control1000000002> Group Group
    Field1 Field Field1Name
    ........
    ........
    <Control1000000032> <Control1000000032> Container FactBoxArea
    FactboxPartName <FactboxPartName> Part
  • Options
    BeliasBelias Member Posts: 2,998
    ok, perfect, i'll give it a try thank you!
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • Options
    daborgdaborg Member Posts: 54
    I'm trying to do a similar thing. I have added a factbox on teh sales order and purchase order pages. The factbox is based on a temporary table that can be fed from either the sales line our purchase line tables.

    I understand that you can call the factbox function from the main page, however my factbox needs to get re-calculated each time a new document line is selected. Where would the call to the factbox function go on the main page? Is the main page aware somehow of when the selected document line changes?
  • Options
    BeliasBelias Member Posts: 2,998
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
Sign In or Register to comment.