RE: Checkbox - Show more/less info
Hi Macka,
From what I understood your requirement is as follows
1. Print Customer Details such as No.,Name,City,Posting Group and Balance which is Detailed View.
2. Print Customer Data such as No. and Name in the Summarized/Less Detailed View
Solution:
1. Create a global variable say Details_Summarized of type boolean and populate this field on the request page.
2. I've observed this that we cannot use Boolean type variable in the 'iif' query of SSRS so thus we convert it into Integer in the OnAfterGetRecord trigger in Code in C/AL in report design.So we declare an Integer type variable called TempDetailSummary We use the following
If Details_Summarized = TRUE THEN
TempDetailSummary := 1;
//value 1 indicates to show the detailed view
ELSE
TempDetailSummary := 2;
//Value 2 indicates to show the less detailed/summarized view
And Pass the TempDetailSummary to DataItem as a column in Report Design(NAV Side) where you've declared which all fields are to be pass to SSRS Report.
3. At the SSRS Side,
Manually goto each column (which is supposed to be hidden in less detailed view) > Column visibility > Show or Hide based on Expression and use the following expression
=iif(Fields!TempDetailSummary=1,True,False)
4. Compile the report and test the report
I hope it helps :)