Move recordpointer of temp table
ACAE
Member Posts: 52
I have a form that is based on a temp table. The user want's to search in this for for a specific code, so I added a textbox where he can enter the code to search.
How can I move the recordpointer in the form to the record with the matching code ?
In a normal form you can write a 'get' to do this, but this doesn't seem to work for a temp table. Setting a filter isn't really an option I want to use
How can I move the recordpointer in the form to the record with the matching code ?
In a normal form you can write a 'get' to do this, but this doesn't seem to work for a temp table. Setting a filter isn't really an option I want to use
0
Comments
-
Something like in the OnAfterValidate-trigger of the field:
tmpTemptable.GET(....); rec := tmpTemptable; CurrForm.UPDATE(FALSE);
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hmm, I remember somewhere that there was a trick for filtering on temp tables. Let's search...0
-
Could this be it?Mark Brummel wrote:Hmm, I remember somewhere that there was a trick for filtering on temp tables. Let's search...
Form - OnFindRecord(Which : Text[1024]) : Boolean
tmpTempTable.COPY(Rec);
blnFound := tmpTempTable.FIND(Which);
Rec := tmpTempTable;
EXIT(blnFound);
Form - OnNextRecord(Steps : Integer) : Integer
tmpTempTable.COPY(Rec);
intResultSteps := tmpTempTable.NEXT(Steps);
Rec := tmpTempTable;
EXIT(intResultSteps);
I have this code in the ALT+T of the Codegenius!
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi,
Thanks for your help, this code works fine:
tmpTemptable.GET(....);
rec := tmpTemptable;
CurrForm.UPDATE(FALSE);
Andy0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
