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 |
 |
 |
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
|
|
|
 |
|