sc_block_display(Block_Name, on/off)
|
|
Dynamically determines the display fields of a specific block.
By default, all the blocks are displayed ("on" condition).
Ex. 1: if ({type_customeri} == "personal") { sc_block_display(company, off); } else { sc_block_display(personal, off); }
Ex 2: Using a local variable as second parameter
$var = "off";
sc_block_display(company, $var);
Obs: In grids, this macro only works with "slide" orientation.
|
Macro Scope
|
calendar application
|
chart application
|
Grid application
|
Dashboard
|
Search application
|
Form application
|
Control Form
|
Menu application
|
Tree menu
|
ReportPDF application
|
allMacros onAfterInsert onAfterUpdate onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onInit
|
onInit onRecord
|
onInit
|
allMacros
|
allMacros onAfterDeleteAll onAfterInsert onAfterInsertAll onAfterUpdate onAfterUpdateAll onInit onLoadAll onNavigate onRecord onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onClick onInit onLoadAll onRefresh
|
allMacros
|
allMacros
|
allMacros
|
|