Suppose i have temp variable of item records(ItemTemp) with some records.
And i want to filter variable item records(Items) with temp variable(ItemTemp).
How to do that?? Please help me with the code. Thanks
Why you want to do this? What is your exact requirement?
Instead of this you can do process like,
IF ItemTemp.FIND('-') THEN REPEAT BEGIN (Sorry, before I written GET instaed of FIND, now corrected it)
IF Items.GET(ItemTemp."No.") THEN BEGIN
//You can write your code here for Items record
END;
END UNTIL ItemTemp.NEXT = 0;
Why you want to do this? What is your exact requirement?
Instead of this you can do process like,
IF ItemTemp.GET('-') THEN REPEAT BEGIN
IF Items.GET(ItemTemp."No.") THEN BEGIN
//You can write your code here for Items record
END;
END UNTIL ItemTemp.NEXT = 0;
Comments
Navision Developer
Items - Record variable for Item table
If ItemTemp having filter on "No." field then,
Items.SETFILTER("No.",ItemTemp.GETFILTER("No."));
Navision Developer
I want to apply filter to Item Variable based on few records on Itemtemp variable.
Instead of this you can do process like,
IF ItemTemp.FIND('-') THEN REPEAT BEGIN (Sorry, before I written GET instaed of FIND, now corrected it)
IF Items.GET(ItemTemp."No.") THEN BEGIN
//You can write your code here for Items record
END;
END UNTIL ItemTemp.NEXT = 0;
Navision Developer
What is "GET('-')"? You mean "FIND('-')"? ;-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
you can perform any action you can on a table also on a temp table (based on a temporary record variable)
Never stop learning
Van Vugt's dynamiXs
Dutch Dynamics Community