Record Variable

-matrix-
Member Posts: 103
Hi Guys!
I Have a record variable and I would filter it so as extract records that have two field with different values.
For Example filter all Record with quantity <> quantity shipped.
I try with setfilter(RecordVAR.field','<>%1',RecordVAR.field2) but it doesn't work because i don't use cycle REPEAT UNTIL.
Any idea?
Thanks..
I Have a record variable and I would filter it so as extract records that have two field with different values.
For Example filter all Record with quantity <> quantity shipped.
I try with setfilter(RecordVAR.field','<>%1',RecordVAR.field2) but it doesn't work because i don't use cycle REPEAT UNTIL.
Any idea?
Thanks..
0
Comments
-
where did you write this code and what is your exact requirement?0
-
Hi,
You can use setrange to filter that rather than setfilter ..........0 -
Thanks Mohana!
I use it in a Codeunit for Filter records with 'qty' < > 'qty shipped' but without use cycles0 -
I just tried to execute same code in report..
but <> it worked in SQL database not in native..
i will investigate more..0 -
This won't work.
Because the filters are static, not dynamic: not dependend on the selected record.
The current code I see is (if the recordset has not been fetched) filterd on "qty <> 0"
(if the recordset has been fetched) filterd on "qty <> 'first record in recordset'."qty shipped"
I see no other option than to loop the recordset and compare the fields.0 -
Thanks for the replies.
I solved with only way, the loop on record variable.
Thanks0 -
How about:
SETFILTER("Outstanding Quantity",'<>%1','');
"Outstanding Quantity" is Quantity - "Quantity Shipped".Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!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