I have a report called Customer Item Prices.
When I select customer description, it has to print Description 1
When I select internal description, it has to print Description 2.
I created an option button
Where do I write the code ?
Either OnPreReport or OnPreDataItem or OnPreSection of section where your description has to be printed, it all depends on how you want to do it.
It should be in AfterGetRecord.
Create a global var g_txtDescription (50)
IF “customer description” THEN
g_txtDescription := Description 1
g_txtDescription := Description 2
Hi Barathy lets assume Decs1 is your option field.Now create a text variable called Description with text data type.Place the below code at On AftergetRecord() trigger.
if CstomerDescription then
Description := Desc1::Description1
Description := Desc1::Description2;
Now places Description variable at yoyr report