CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 access label content in Report

Print topic Send  topic

Author Message
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.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.