Version: 12.0p
Built: 2024-08-07
 
 
 
 

class Canvas

 
 
 
SmartClient Enterprise API 12.0p (2024-08-07)
 
 
 
 
 
 
 
void provideRuleContext (path, data[, dbc])

Provide data to the ruleScope component, to be made available in the rule context at the specified path.

path must be one or more valid identifiers with either dot (.) or slash (/) used as a separator.

data can be any value, including both atomic values like a Boolean or String, or a nested data structure. Pass data as null to remove data from the context at the specified path

dbc is the DataBoundComponent to be identified as the owner of the rule context contribution. This component is used to handle any conflicts between multiple components contributing to the same base path (i.e. first segment of path). For any collision an editable display (such as a form or editable grid) wins over a static display (such as a non-editable grid with a selection). Hidden components have lowest priority even if editable. For two editable components the first becomes the owner.

Parameters:
    path  - type: String 
        path where data should be made available
    data  - type: Any 
        data to contribute to rule context
    dbc (optional)  - type: DataBoundComponent 
        dataBoundComponent contributing to ruleContext