xkp
Posts: 1
|
Posted: 07/12/2014, 1:03 PM |
|
Hi all,
i have created a report form with the "Report Builder".
Now i need to insert an image instead of a label on the report.
Let's say a red or green image according to the content of the label, retrieved from a db,
red image if label content is 0 and green if 1.
I tried to add some custom code in the "Before Show" event of the "Detail" Section of the report:
if($Component->main_group->GetValue() >0)
{
$Component->lnk_main_group_true->Visible = true;
$Component->lnk_main_group_false->Visible = false;
}
else
{
$Component->lnk_main_group_true->Visible = false;
$Component->lnk_main_group_false->Visible = true;
}
but i have an error:
Fatal error: Call to a member function GetValue() on a non-object in C:\xampp\xampplite\htdocs\sasc2\admin\groups_users_report_events.php on line 24
How can i access the label content to have the displayed the correct image according to label content?
thanks in advance.
|
|
|
|