I need to open a page and pass to it two parameter.
My problem is that sourcetable's page is temporary record that I create at runtime before open page.
So IF I want open page passing temporary recordset using PAGE.RUN I can pass recordset but cannot call function in page to pass parameter.
There is a way to do it?
0
Comments
Create a singleinstance codeunit in which you have 2 functions:
-a function that receives a value and puts it in a global variable. -a function that returns the value of that global variable
Before calling your page, call SaveParameter in the singleinstance codeunit.
In the OnOpenPage-trigger, call function GetParameter in the singleinstance codeunit and save its value in a global in the Page.
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!
The other possibilities:
* Add parameters to record itself (doesn’t looks nice if parameters belongs to page itself and not to recordset).
* Create managing table (so caller will pass parameters + userId to this table and other will read it).
But still, the easiest would be to create page as variable and assign whatever you want to this page. So why not?