Quantcast
Channel: Microsoft Dynamics NAV Forum - Recent Threads
Viewing all articles
Browse latest Browse all 18803

Filter OnOpenPage

$
0
0

Hi,

Customer have ALOT of items, but they only use about 1000 of them manually and the rest is used though webservice and automaticed processes.

So ect. when on a sales order it can be really slow sometimes to search for a item because there are so many to search though.

I have onOpenPage (page Item List) made a setrange on the 1000 items i want to show, but this will effect everwhere that the item list is used, can this be done so it will only happend on sales orders for example?

What I had in mind was to create a function on Item List page with a boolean variable that only will set this to true.

SetBooleanTrue()
BooleanVar := True;

OnOpenPage
If BooleanVar = TRUE THEN
SETRANGE(MYSETRANGE, SETRANGE);

On Sales Order page I will call SetBooleanTrue() and i will get the right filter.

I tried this but its not working. Any hints on getting this to work only from ect. sales order and not affecting everywhere you use item list? 
Thanks in advance.


Viewing all articles
Browse latest Browse all 18803

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>