sc_format_num_region({My_Field}, "Qtde_Dec", "Insert_Zeros", "Monetary_Sym")
|
|
This macro has the objective to format numbers, using the regional settings
Parameter
|
Description |
| My_Field |
Variable or field that has a value to be formatted (if the value is 0 the result will be the same as the variable). |
| Qtde_Dec |
Amount of decimals that'll be displayed. |
| Insert_Zeros |
Complete with the non existing decimals (Y = yes and N = no). |
| Monetary_Sym |
Display monetary symbol (Y = yes and N = no). |
Ex. 1: Formatting a value with 2 decimal spaces, inserting the zeros and the monetary value. sc_format_num_region({my_value}, "2", "Y", "Y"); Input value = 9 Output value = R$0,90
|
Macro Scope
|
Blank application
|
Grid application
|
Dashboard
|
Search application
|
Form application
|
Control Form
|
Menu application
|
Responsive Menu
|
Tree menu
|
allMacros onExecute
|
ajaxFieldonClick allMacros onApplicationInit onFooter onGroupBy onHeader onInit onNavigate onRecord
|
allMacros onApplicationInit onInit onWidgetLoad
|
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 onNavigate onRecord onRefresh onValidate onValidateFailure onValidateSuccess
|
ajaxFieldonBlur ajaxFieldonChange ajaxFieldonClick ajaxFieldonFocus allMacros onApplicationInit onClick onInit onLoadAll onRefresh onValidate onValidateFailure onValidateSuccess
|
allMacros onApplicationInit onExecute onLoad
|
onApplicationInit onExecute onLoad
|
allMacros onApplicationInit onExecute onLoad
|
|