Search for the role tailored client

Administrator
Member, Moderator, Administrator Posts: 2,506
Search for the role tailored client
This Add-in and modified itemlist page show how you can implement interactive search in the role tailored client. You can also use this code as a starting point to add your own custom triggers to the RTC, you can do more with add-ins then is apparent.
For a detailed explenation see http://www.erpfood.nl/addins-for-a-bett ... ed-client/
http://www.mibuso.com/dlinfo.asp?FileID=1409
Discuss this download here.
This Add-in and modified itemlist page show how you can implement interactive search in the role tailored client. You can also use this code as a starting point to add your own custom triggers to the RTC, you can do more with add-ins then is apparent.
For a detailed explenation see http://www.erpfood.nl/addins-for-a-bett ... ed-client/
http://www.mibuso.com/dlinfo.asp?FileID=1409
Discuss this download here.
0
Comments
-
There is always room for improvement :bug: , so here is an update to the search function in NAV.
The find statement has been changed to findfirst and Currpage.setrecord is added to make the selection move.PROCEDURE Search@1100481000(FieldCaption@1100481000 : Text[60];SearchValue@1100481001 : Text[60]); VAR RecordReference@1100481007 : RecordRef; FieldReference@1100481006 : FieldRef; LookupFieldNo@1100481002 : Record 2000000041; index@1100481003 : Integer; found@1100481004 : Boolean; BEGIN RecordReference.GETTABLE(Rec); REPEAT index += 1; FieldReference := RecordReference.FIELDINDEX(index); found := (FieldReference.CAPTION = FieldCaption); UNTIL (index >= RecordReference.FIELDCOUNT) OR (found); IF found AND (FORMAT(FieldReference.TYPE) IN ['Code','Text']) THEN BEGIN FieldReference.SETFILTER(SearchValue + '*'); IF RecordReference.FINDFIRST THEN BEGIN RecordReference.SETTABLE(Rec); CurrPage.SETRECORD(Rec); CurrPage.UPDATE(FALSE); END; END; END;
**********************
** SI ** Bert Van Gestel **
**********************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