thierrybo
Posts: 8
|
| Posted: 01/31/2005, 1:08 PM |
|
Hi,
If I create a "server event" custom code, CCS automatically add a variable set to true at the begining of custom code and return this variable at the end, like this :
//xxxxxx_Button_Insert_BeforeShow @3-BA8FE65A
function wrg_wargame_Button_Insert_BeforeShow()
{
$xxxxxx_Button_Insert_BeforeShow = true;
//End xxxxxx_Button_Insert_BeforeShow
//Custom Code @29-6430EFD3
// -------------------------
global $xxxxxx;
// Type your custom code here
// -------------------------
//End Custom Code
//Close xxxxxx_Button_Insert_BeforeShow @3-772AD2CB
return $xxxxxx_Button_Insert_BeforeShow;
}
//End Close xxxxxx_Button_Insert_BeforeShow
I don't see for the moment any visible effect/use for it ?
Thanks,
Thierry B.
|
 |
 |
Nicole
Posts: 586
|
| Posted: 02/01/2005, 2:53 AM |
|
Thierry,
Variables
$FormName_EventName are stored in CCSEventsResult variable of a form’s class:
class clsRecordFormName {
...
var $CCSEventResult;
...
$this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeShow");
In fact they are not extensively used in CCS2.x, you can use results of events execution in other events code if necessary
_________________
Regards,
Nicole |
 |
 |
|