Making a row invisible in a report

sabzam
Member Posts: 1,149
Dear All,
What is the code to make a row invisible in a report. But this must not be permament therefore I can't simply choose no to visible in the properties of the column.
What is the code to make a row invisible in a report. But this must not be permament therefore I can't simply choose no to visible in the properties of the column.
0
Comments
-
In the OnPreSection-trigger of the section, you can put some code to decide to show or not to show the section:
CurrReport.SHOWOUTPUT(TRUE or FALSE);
Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Hi Kriki,
By using that code you will be removing the whole section. I want to keep just one column in a section from printing0 -
Just copy the whole section, en remove from the other section the columns that you don't want to show.
Then in the first section, in the OnPreSection-trigger, you write
CurrReport.SHOWOUTPUT(ShowColumn)
and in the other section :
CurrReport.SHOWOUTPUT(NOT ShowColumn)
Where ShowColumn a variable is that you can change on the request form.
Another option is to blank the fields before the got printed.
IF NOT ShowColumn THEN BEGIN
Column1 := ''
Column2 := 0
END;0 -
sabzam wrote:Hi Kriki,
By using that code you will be removing the whole section. I want to keep just one column in a section from printing
but "subject" says "Making a row unvisible in a report" and in first post you are talking about row too... Do you want to hide one edit box or "row" (section for others) or something else? Make it clear please... 8)0 -
Sorry you have got a point. I want to make a column invisible but for a particular record which satisfies a certian criteria0
-
It means one field on one section for selected record... (which will create the empty space in the "column").
You can use more ways, all were mentioned by Jan Jansen (altering section or altering the value).0 -
Hi Everybody
Thanks a lot for your help0
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