I have a role center page which I've set up with a few actions. Clicking the action will open a list page which is pre filtered (using RunPageView). I would like to pass the filter to the list page somehow but cant seem to find the answer out there.
The role center page is set up like this:
page 50125 "My Role Center"
{
PageType = RoleCenter;
Caption = 'My Role Center';
Extensible = true;
layout
{
...
}
actions
{
area(Processing)
{
action(MyAction1)
{
Caption = 'My Action 1';
RunPageView = where("Type" = filter('Type1'));
RunObject = Page "My List Page";
}
action(MyAction2)
{
Caption = 'My Action 2';
RunPageView = where("Type" = filter('Type2'));
RunObject = Page "My List Page";
}
}
}
}
The list page it opens up is something like this:
page 50126 "My List Page"
{
Caption = 'My Page';
ApplicationArea = All;
PageType = List;
layout
{
...
}
trigger OnOpenPage()
begin
// I would like to get the filter here if possible
end;
}
Is this possible?