FIND function
martinher562
Member Posts: 50
I am still confused as to what the find function does.
There is a report that has an integer table and the variable of WhseEntry as a record using subtype Warehouse Entry.
In the interger table; in the PreDataItem() trigger, it says the following:
Integer - OnPreDataItem()
CLEAR(Location);
WhseEntry.RESET;
IF NOT WhseEntry.FIND('-') THEN
CurrReport.BREAK;
What does this mean ??????? !!!!!!
Does it just say, if you cannot find first record (at least one record) then break the report ?
I read this, but is not very helpful.
https://msdn.microsoft.com/en-us/library/dd301096.aspx
Thank you everyone in advance !
There is a report that has an integer table and the variable of WhseEntry as a record using subtype Warehouse Entry.
In the interger table; in the PreDataItem() trigger, it says the following:
Integer - OnPreDataItem()
CLEAR(Location);
WhseEntry.RESET;
IF NOT WhseEntry.FIND('-') THEN
CurrReport.BREAK;
What does this mean ??????? !!!!!!
Does it just say, if you cannot find first record (at least one record) then break the report ?
I read this, but is not very helpful.
https://msdn.microsoft.com/en-us/library/dd301096.aspx
Thank you everyone in advance !
0
Best Answer
-
FIND Function is used to retrieve records from table. You can filter the records you want to retrieve from the table using SETRANGE/SETFILTER.
FINDFIRST - Retreives First record in the table
FINDLAST - Retreives Last record in the table
FIND('-') - Retrieves all the records in the table and cursor is in first record
FIND('+') - Retrieves all the records in the table and cursor is in lastrecord
The code IF NOT WhseEntry.FIND('-') THEN
CurrReport.BREAK; means that the report processing is stopped when there is no record in WhseEntry entry table
5
Answers
-
FIND Function is used to retrieve records from table. You can filter the records you want to retrieve from the table using SETRANGE/SETFILTER.
FINDFIRST - Retreives First record in the table
FINDLAST - Retreives Last record in the table
FIND('-') - Retrieves all the records in the table and cursor is in first record
FIND('+') - Retrieves all the records in the table and cursor is in lastrecord
The code IF NOT WhseEntry.FIND('-') THEN
CurrReport.BREAK; means that the report processing is stopped when there is no record in WhseEntry entry table
5 -
If in WhseEntry entry table no record is found then the loop breaks for that particular record and no execution happens.
https://msdn.microsoft.com/en-us/library/dd354980.aspxThanks
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.7K 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
- 323 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

