How to see certain sections in Report!

nvermanverma Member Posts: 396
edited 2011-12-01 in NAV Three Tier
I have a bunch of Body section and I only want to print a certain out if the user selects a certain condition when the report is run. I want to only run that particular section and turn the rest of them off. Any suggestions. This is the code snippet I have so far, but it doesnt work. (ShowDetails is off type Boolean)



IF (Job."Program" = Job."Program"::"Attendant Services" ) THEN
BEGIN
ShowDetails :=TRUE;
CurrReport.SHOWOUTPUT(ShowDetails);
END
ELSE
ShowDetails := FALSE;

So what I am trying to do is; only show a section if the user selects "Attendant Services" as a field when the report is run.
This doesnt really work, because I can still see all the other sections.

Comments

Sign In or Register to comment.