Filter problem on form
Lindie
Member Posts: 4
Hi,
I'm having a problem with a form that uses a temporary table to show the output. We discovered that the sort and filter(f7) functions don't work. At the bottom it says that the filter is applied, but the data doesn't changed.
Anyone have any idea of how to fix this?
The temporary table gets filled in the onopenform method.
Thanks
Lindie
I'm having a problem with a form that uses a temporary table to show the output. We discovered that the sort and filter(f7) functions don't work. At the bottom it says that the filter is applied, but the data doesn't changed.
Anyone have any idea of how to fix this?
The temporary table gets filled in the onopenform method.
Thanks
Lindie
0
Comments
-
You need to COPY the filters and sorting from Rec to your temporary variable before you get the data from temp table (in OnFindRec etc...)0
-
This is what Kine means:
OnFindRecord:tmpTheTable.COPY(Rec); blnFound := tmpTheTable.FIND(Which); Rec := tmpTheTable; EXIT(blnFound);
OnNextRecord:tmpTheTable.COPY(Rec); intResultSteps := tmpTheTable.NEXT(Steps); Rec := tmpTheTable; EXIT(intResultSteps);
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks for your reply's.
There already was some code in the methods, but I adjusted them to the examples. This did help for the (f7) function, but the search function where you just start typing is still not responding.
Any ideas on what else could be missing?
Thanks
Lindie0 -
Hi,
the easiest Solution would be to start the form with the following Code.
**Fill TMP Table **
FORM.RUN(0,TMPTable);
Then you should not have any Problems.
Regards
PeterPeter Klittich
Competence Center Pearle Europe0 -
Thanks for the reply.
I don't think it's possible to change the code for the run though, because the form is used as a drilldown and lookup for a table too, and it's used at allot of places in the system.
To solve the (F7) problem I also added the following code to the OnBeforePutTriger:
_ServiceItemTempRec.SETVIEW(Rec.GETVIEW);
I looked through the functions but could not find anything for the find function.
Anyone have any suggestions?0
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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 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
