Suppress rows on subform without markedonly

Faulcon
Member Posts: 19
I was wondering if someone might be able to suggest a method to suppress rows with a value of 0 on 3 given amount columns on a subform without using the markedonly function. This function does the job but the performance hit it creates is quite frustrating especially since we currently want to move our database onto SQL but the form takes twice as long to update there and it's very heavily used. Any ideas I'd love to hear them.
Thanks
Thanks
0
Comments
-
Add a new field called Hide. Onmodify trigger
hide := (amount1 + amount2 + amount3) = 0;
set a filter on hide = false.0 -
I should clarify further I guess. The form is basically an analysis tool used to filter on the G/L Account table. It shows Net Change, Budget, and a Commitment Amount (calculated from open purchase orders). Filters are entered for two global dimensions, resource and/or date.
If all three of the columns are equal to zero after those filters have been applied then we don't want to show the row on the subform.0 -
Another solution can be done, by using form trigers OnFindRecord, OnNextRecord. Put there code that, skips unwanted records.0
-
Here is the code example. On open form write the records to temp record. As they are setting filters, you have set filters on temp variable as well.
Form - OnFindRecord(Which : Text[1024]) : Boolean TempCL.COPY(Rec); Found := TempCL.FIND(Which); Rec := TempCL; EXIT(Found); Form - OnNextRecord(Steps : Integer) : Integer TempCL.COPY(Rec); ResultSteps := TempCL.NEXT(Steps); Rec := TempCL; EXIT(ResultSteps);
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