sc_master_value("Object", "Value")
|
|
Update data in the master application, in real-time, according to changes made in a given field of the detail application.
Parameter
|
Description |
| Object |
Object name to be updated in the master Application. It's not necessary the {} in a field name.
|
| Value |
Object value. The value can be a field or a variable. |
Ex. 1:
sc_lookup(result,"SELECT SUM(Total) FROM adm_order_itens WHERE OrderID = '{OrderID}'");
//Using sc_format_num() to format the value that will be updated in the master application $value = sc_format_num({result[0][0]}, ',', '.', 2, 'S', 1, ''); sc_master_value('OrderPrice', $value);
* If the value, that will be sent to the master, be numeric, you have to use the sc_format_num() to format it. To see the macro documentation, click here.
|
Macro Scope
|
calendar application
|
chart application
|
Search application
|
Form application
|
Control Form
|
Menu application
|
Tree menu
|
allMacros onAfterDelete onAfterInsert onAfterUpdate onApplicationInit onBeforeDelete onBeforeInsert onBeforeUpdate onInit onLoadAll onRefresh onValidate onValidateFailure
|
allMacros
|
allMacros
|
allMacros onAfterDelete onAfterDeleteAll onAfterInsert onAfterInsertAll onAfterUpdate onAfterUpdateAll onApplicationInit onBeforeDelete onBeforeInsert onBeforeUpdate onInit onLoadAll onNavigate onRecord onRefresh onValidate onValidateFailure
|
allMacros onInit onLoadAll onRefresh
|
allMacros
|
allMacros
|
|