Code Logic help

slmaluwa
Member Posts: 366
Hi
I have a piece of code which I don't understand fully.
What does it do? I mean, what happens when you clear the filter after a FIND('+') ?
I have a piece of code which I don't understand fully.
recSO.COPYFILTERS("Record 1"); SETRANGE("Order No","Order No"); FIND('+'); SETRANGE("Order No"); "Record 1".COPYFILTERS(recSO);
What does it do? I mean, what happens when you clear the filter after a FIND('+') ?
"A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."
0
Answers
-
ok. Did some R&D and found this, if you exclude the copy filter lines at the top and bottom, it moves the last line of that particular order."A bove maiore discit arare minor"-"From the old ox, the young one learns to plow."0
-
Hey Friend,
It will find the last record because it's clearly written Find('+').Thanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0 -
Suppose we start with Rec. where Rec is sales order line 3 of 5 for the Sales Order.
1 the code saves the current filters from Rec to recSO,
2 then sets a temporary extra filter range on Rec for "Order No.",
3 the find('+'); finds and LOADS Rec with the last record
4 the temporary extra filter range is removed
5 the saved filters are restored
Now Rec is sales order line 5 of 5, and the filters are like they were.
At least this is how I read it...\\The truth exists in seven versions.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