How to run a range.

jaustin@i3bus.comjaustin@i3bus.com Member Posts: 7
I have a pop up window that I created with the following code. This will accept a range for the Item (i.e. 111..222) or it will also accept a wildcard (i.e. 1*..2*).

Window.OPEN('Please press enter twice to continue\#######1#');
Window.INPUT(1,ItemToRun);
Window.CLOSE;

a little farther down in the C/AL, I'm using the following statements:

IF ItemToRun <> '' THEN Item.SETRANGE(Item."No.", ItemToRun)

This code works if I only put in a single part number but doesn't work for ranges or wildcards. Any ideas on how I can make it work like standard NAV?

Comments

  • Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    Change the SETRANGE-function to SETFILTER will do.
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Sign In or Register to comment.