Namespace: userCalcEditor

bcdui.component. userCalcEditor

Methods

staticbcdui.component.userCalcEditor.showUserCalcEditor(args)

component/userCalcEditor/userCalcEditorPackage.js, line 72
Brings up a user calc editor, i.e. an inout field with autocomplete for entering formulas that can be used in calculation.xslt
Name Type Description
args Object The argument map:
Name Type Default Description
targetModelXPath writableModelXPath The XPath to write to.
id string optional The base id of the field. If nothing is specified the id is generated.
optionsModelXPath modelXPath optional An XPath returning a node-set holding the allowed
uniqueOptionsModelXPath modelXPath optional variables for the formula editor. The parameter "optionsModelRelativeValueXPath" can optionally be set to define non-visible values belonging to the visible options denoted by this XPath.
optionsModelRelativeValueXPath xPath optional If specified this XPath is applied to each node returned by the "optionsModelXPath" to get a non-visible value to be written to the target node. When no "optionsModelRelativeValueXPath" is given there is no distinction between the caption and value of each option.
dialogCaption string optional Caption of dialog window, it will be used as i18n key to translate the caption.
isFormatOptionsVisible boolean true optional Show format fields (format, scale, percent)
validateVariableNamesCheckbox boolean false optional Show checkbox which enabling\disabling validation of variable names with list in optionsModel while input formula
validateVariableNamesCaption string optional Caption of checkbox, which enable\disable formula variables validation
successCallBack function Callback function which called after success saving model after closing modal window
skipServerSidedFunctions boolean false optional Set to true to disable usage of server sided functions like CntDist.