CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Using a Status label

Print topic Send  topic

Author Message
act_corp

Posts: 13
Posted: 10/30/2007, 11:28 AM

All,

I'm using a page based on the "Grid and Record Builder".
I put some custom code attached to the "After Insert" event.

In order to notify the users on what is going on, I'm using the form's "Errors" object and its "addError" method.

Is there a more general way to do it? I mean putting a label wherever in the page and updating its content in the event handler.

I tried the following but the label content is not shown:

// $status is a label, belonging to the main page

function event_handler()
{
global $status;
$status->SetValue( "The magic happened" );
}


Thanks in advance,
Andrea Battisti

_________________
ACT Corp. - www.actgate.com
View profile  Send private message
wkempees
Posted: 10/31/2007, 1:19 AM

Make sure th Label is choosen from the Form Tab (Not HTML)
In Before Show of the Form
$Container->status->SetValue("Test message");

Should put the value in the Label.
When it does, you know that works, now find your perfect code.

Walter


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.