How to clear records from a table box control?
vinodalath
Member Posts: 14
Dear All,
Can anyone please explain on how to clear the records in table box before submitting a search criteria?
The problem here is - in my custom form, the table box displays the records as per the search criteria PLUS the last record from the previous search. So I need to clear the table box while submitting the search criteria (just before displaying the new resultset).
Actually, we are trying to make a screen where our Credit Control department users can search for entries added on Comment Line table. The Credit Control department uses the customer comments sheet for adding the follow up details or other comments whenever they make calls to the customer. Now, they require an option to add the next follow up date (Alert Date) and a search functionality on comments table based on the Alert Date field.
Thanks,
Vinod
Can anyone please explain on how to clear the records in table box before submitting a search criteria?
The problem here is - in my custom form, the table box displays the records as per the search criteria PLUS the last record from the previous search. So I need to clear the table box while submitting the search criteria (just before displaying the new resultset).
Actually, we are trying to make a screen where our Credit Control department users can search for entries added on Comment Line table. The Credit Control department uses the customer comments sheet for adding the follow up details or other comments whenever they make calls to the customer. Now, they require an option to add the next follow up date (Alert Date) and a search functionality on comments table based on the Alert Date field.
Thanks,
Vinod
0
Answers
-
Hi Vinodalath,
Use currform.update( FALSE ) to refresh the form. The FALSE parameter instructs the form not to save changes so use TRUE to save records0 -
Can you tell me on which trigger should we use it?0
-
Hi Vinod,
After you set the new search filter e.g. if setfilter is set in the onvalidate of a field then call the currform.update in the onaftervalidate trigger or if filter set in a button then update directly afterwards.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
- 322 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