sc_set_global($variable_01) or ({My_Field})
|
|
This macro its used to register global variables. Create a session variable with the same name and content of the local variable.
NOTE: This macro will be discontinued soon. You should use the method of creating global variables using brackets. Ex: [var_glo_user] = "test";
Ex. 1: Registering a users variable. $my_var = "mary"; sc_set_global($my_var);
Creates a session variable with the name "my_var" with the "mary" content.
Ex. 2: For register a field value as a session variable. sc_set_global({fieldname});
Note: This macro doesn't attribute values. Only register the session variables from PHP.
|
Macro Scope
|
Blank application
|
calendar application
|
chart application
|
Grid application
|
Search application
|
Form application
|
Control Form
|
Menu application
|
Tree menu
|
ReportPDF application
|
allMacros onExecute
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onAfterDelete onAfterInsert onAfterUpdate onApplicationInit onBeforeDelete onBeforeInsert onBeforeUpdate onCalendarApplicationInit onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onApplicationInit onFooter onHeader onInit
|
ajaxFieldonClick allMacros onApplicationInit onFooter onGroupBy onHeader onInit onRecord
|
allMacros onApplicationInit onFilterInit onFilterRefresh onFilterSave onFilterValidate
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onAfterDelete onAfterDeleteAll onAfterInsert onAfterInsertAll onAfterUpdate onAfterUpdateAll onApplicationInit onBeforeDelete onBeforeDeleteAll onBeforeInsert onBeforeInsertAll onBeforeUpdate onBeforeUpdateAll onClick onInit onLoadAll onRecord onRefresh onValidate onValidateFailure onValidateSuccess
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onApplicationInit onClick onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onApplicationInit onExecute onLoad
|
allMacros onApplicationInit onExecute onLoad
|
allMacros onFooter onHeader onInit onRecord
|
|