Filter on variable value in a temp table
jknauft
Member Posts: 89
Is it possible to set a filter based on the value of a variable in a temp table. I have a variable TotalBudget and I want to filter the contents of the temp table as it's being written to exclude values less than zero. Thanks.
Jon
Jon
0
Answers
-
Using Currreport.Showoutput(false) supresses the lines correctly but it screws up the group totals that are being calculated.
Jon0 -
Maybe I misunderstand what you are asking, but couldn't you calculate this value before writing the record to the temp table? Then, if it doesn't meet your criteria, you don't insert into the temp table. Your report then runs straight against that temp table and doesn't have to consider values less than 0 because none exist.
something like:IF TotalBudget >0 THEN TempTable.INSERT ELSE //do something else as needed or call it quits earlier...;
kind of fell into this...0 -
Great minds think alike. I just came up with the same solution. I guess I've been staring at this report for too long. Thanks.
Jon0 -
Happy to hear...jknauft wrote:Great minds think alike. I just came up with the same solution. I guess I've been staring at this report for too long. Thanks.
Jon
I can identify. I have been piecing together a custom VAT report for almost 2 months. Everytime i get back to working on it, i have to reevaluate what i did last time to figure out where i need to go next. yuck.
I wish there was a canned VAT report that presented data in the way i've been told i need it.kind of fell into this...0 -
It's been interesting learning the Navision Report writer. I've worked with Crystal Reports for 10 years and I could have created this report in 2 hours. Going on my second day... 8-[
Jon0 -
jknauft wrote:It's been interesting learning the Navision Report writer. I've worked with Crystal Reports for 10 years and I could have created this report in 2 hours. Going on my second day... 8-[
Jon
I hear ya!
Note: you can use Crystal w/Navision0
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
