I have a report called Customer Item Prices.
When I select customer description, it has to print Description 1
else
When I select internal description, it has to print Description 2.
I created an option button
Where do I write the code ?
Barathy
IMRAN
March 26, 2010, 11:16pm
2
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.
Hi Barathy,
It should be in AfterGetRecord.
Create a global var g_txtDescription (50)
OnAfterGetRecord
IF “customer description” THEN
g_txtDescription := Description 1
ELSE
g_txtDescription := Description 2
Regards,
-TR-
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
else
Description := Desc1::Description2;
Now places Description variable at yoyr report
thats all
Thanks
Marshal.j