Is is possible to filter records from the Temp Record var

pawanp
Member Posts: 90
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
And i want to filter variable item records(Items) with temp variable(ItemTemp).
How to do that?? Please help me with the code. Thanks
0
Comments
-
You can filter it with same commands SETFILTER and SETRANGERakesh Patel
Navision Developer0 -
Can u help me out with the code. As the parameter for SETFILTER function is Field and value.0
-
ItemTemp - Temporary Record variable for Item table
Items - Record variable for Item table
If ItemTemp having filter on "No." field then,
Items.SETFILTER("No.",ItemTemp.GETFILTER("No."));Rakesh Patel
Navision Developer0 -
ItemTemp is not having any filter. Its only having few records.
I want to apply filter to Item Variable based on few records on Itemtemp variable.0 -
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;Rakesh Patel
Navision Developer0 -
rmpatel22 wrote: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;
What is "GET('-')"? You mean "FIND('-')"? ;-)0 -
A small note on this:
you can perform any action you can on a table also on a temp table (based on a temporary record variable)0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions