sc_field_readonly({Field}, on/off)
|
|
This macro dynamically sets a form field attribute to 'ReadOnly'. Use this macro only to do it at 'runtime'. Otherwise set this parameter on / off on the form interface. section "Read-Only".
The on/off parameter its optional, used by an ajax event to define if a field is going to be read-only (On) or read-only (Off).
Ex 1: To set a field as read only even when the form is in "Addition mode": if (sc_btn_new) { sc_field_readonly({my_field}); }
Ex. 2: To set a field as read only dynamically use: sc_field_readonly({my_field});
|
Macro Scope
|
calendar application
|
chart application
|
Search application
|
Form application
|
Control Form
|
Menu application
|
Tree menu
|
ReportPDF application
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onAfterDelete onAfterInsert onAfterUpdate onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros
|
allMacros
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onAfterDelete onAfterDeleteAll onAfterInsert onAfterInsertAll onAfterUpdate onAfterUpdateAll onBeforeInsertAll onBeforeUpdateAll onInit onLoadAll onNavigate onRecord onRefresh onValidate onValidateFailure onValidateSuccess
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onInit onLoadAll onRefresh onValidate onValidateFailure
|
allMacros
|
allMacros
|
allMacros
|
|