Filter flowfield

zac
Member Posts: 29
Hi folks,
when I would like to filter a flowfield, do I use SETFILTER or SETRANGE?
For example, I would like to get a value from the Field1 depending to the Filed2 which is the flowfiled.
when I would like to filter a flowfield, do I use SETFILTER or SETRANGE?
For example, I would like to get a value from the Field1 depending to the Filed2 which is the flowfiled.
0
Answers
-
same as for any other field. Both are valid0
-
just be sure you do a CALCFIELD first or you won't have a value to filter!kind of fell into this...0
-
Tnx guys!0
-
jversusj wrote:just be sure you do a CALCFIELD first or you won't have a value to filter!
E.g. for filtering on flowfields: Select all items with an inventoryrecItem.RESET; recItem.SETCURRENTKEY("No."); recItem.SETFILTER(Inventory,'>0'); // Inventory is a flowfield IF recItem.FINDSET THEN REPEAT // Now you have a record with inventory > 0 MESSAGE('Item "%1" has a positive inventory',recItem."No."); // if you want to know the value of recItem.inventory, you need to do a CALCFIELDS recItem.CALCFIELDS(Inventory); MESSAGE('Item "%1" has an inventory of %2 ',recItem."No.",recItem.Inventory); UNTIL recItem.NEXT = 0;
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!2 -
hi Kriki,
Please help to solve the below line of filtration..
RecVar.SETFILTER("User ID",'%1','USERID'); //"User ID" is FlowField
Now or Never0 -
Before using SETFILTER make sure to use CALCFIELDS("YOUR FLOW FIELD");
Other then that rest of the stuff will be same.Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.1 -
It is always a good habit to user CLEAR before applying any filter. You always knows what filter are applied.Best Regards
Rehan Satti
Microsoft Dynamics NAV Technical Consultant
Please verify the answer if it satisfy your question. This will help other members of community.1 -
Oh okay thanks.Best Regards
Zohaib Ahmed
Dynamics NAV ERP Technical Consultant.
please like / agree / verify my answer, if it was helpful for you. thanks.1
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