Hi All;
I need some guidance or maybe some idea of how 2009 r2 is dealling with this.....
I have the following code in the
OnInit() and
OnOpenPage() triggers of the item list page (31)
Message(GetFilter("My Filter"));
But no matter which trigger I place this code in, the message returns no value.
However, the list
IS filtered by "my filter" as the returned results are filtered.
The List page itself is called from the Lookup of the "No." field on the purchase order page with the filter applied to the TABLERELATION something like this.
IF (My Field=CONST(Yes),Type=CONST(Item)) Item WHERE (My Filter=CONST(Yes))
ANY IDEAS ???? ](*,)
TIA
Dean
Comments
so for example
you'll have to check the help on which filtergroup to use, the used filtergroups go up to 6 in c/side.
Thanks for the 2 suggestions so far:
Uday - It works in classic client in the OnOpenForm() trigger, so i was hoping that the Page type object did the same in OnOpenPage() [-o<
Geronimo - Unfortunately this did not make any difference by using filtergroups first.
Dean
In Pages you might need to use FILTERGROUP(4) to see the filter in the OnOpenPage trigger.
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com
I've tried 1 through 6 (just for testing) and none of them gave me the results :x
Having re-read the help file, I would have expected 4 to work ???
Thanks
Dean.
How do you apply the filter before opening the page ?
If you are using RunFormLink for page this should be filtergroup 4.
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com
In tab "Filters" you should be able to see at which level the filter is placed.
It works as expected... More or Less...
may i know "My Filter" is FlowFilter or normal Field ?