Hi all,
I have a report based on Sales Shipment Header and Sales Shipment Line.
I have defined a boolean field in the Sales Shipment Header namely Status.
IF Status = TRUE THEN
display the variable field (the description from item table)
else do not display it
Please help me.
Thanks
Liizz
0
Comments
-Mohana
http://mohana-dynamicsnav.blogspot.in/
https://www.facebook.com/MohanaDynamicsNav
First you have to get the Item Description from the Item Table.
Then assign it to an array.
Then using your condition,it should look like that :
If status= TRUE then
array[1]:=item.description
else
array[1] :=item.description;
KCP Consultores
yourVariable := Record.Field
ELSE
yourVariable :='';
Or
If you are using a print section for Report then use the following code sample in OnPreSection() trigger:
CurrReport.SHOWOUTPUT(Status)
No need to create array, simple variable will do as explained by gerrykistler.
_______________
Regards,
Faisal Bukhari.