A namespace for the BCD-UI widgets.
Classes
Namespaces
- detailView
- dimensionChooser
- effects
- formulaEditor
- inputField
- menu
- multiSelect
- notifications
- periodChooser
- singleSelect
- visualizeXml
Members
-
staticbcdui.widget.DetachedEvent
-
-
staticbcdui.widget.events
-
well known html dom events, which are fired by widgets at given circumstances, these events are fired by widgets using jQuery.trigger() and can be consumed by jQuery.on()
-
staticbcdui.widget.modalBoxTypes
-
Enumeration with modalbox types
Methods
-
staticbcdui.widget.createBlindUpDownArea(args)
widget/widgetPackage.js, line 1351 -
Creates a BlindUpDown Area.
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description targetHtmltargetHtmlRef An existing HTML element this widget should be attached to, provide a dom element, a jQuery element or selector, or an element id. idstring optional ID of the Executable object which renders this widget this must be UNIQUE and MUST NOT have same names as any global JavaScript variable. If not given, an auto-id is generated. captionstring optional Caption shown in the blindUpDown Header. defaultStatestring closed optional 'closed' or empty String for opened, default is closed. durationnumber 0.2 optional The duration of the blind effect, valid values are from 0 to 1.0 as decimal. targetModelXPathwritableModelXPath $guiStatus/guiStatus:Status/guiStatus:ClientSettings/BlindUpDown optional The xPath pointing to the root-node this input widget will place entered selected items into. with attribute status=open/closed noEffectboolean false optional True for a simple show/hide without blind effect (blind can influence charts gradients on IE -
staticbcdui.widget.createContextMenu(args)
widget/widgetPackage.js, line 1769 -
Create an instance of dynamic context menu. Consider setting args.refreshMenuModel to true. If 'tableMode' is set to 'true' the renderer is expected to render an HTML table with the appropriate 'bcdRowIdent/bcdColIdent' attributes of tr rows header columns.
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description inputModelbcdui.core.DataProvider A model with context menu definition according to namespace http://www.businesscode.de/schema/bcdui/contextMenu-1.0.0 targetRendererIdstring optional The renderer the tooltip is attached to. The HTML listeners are placed on the targetHtml of this renderer. targetRendererbcdui.core.DataProvider optional The renderer the tooltip is attached to. The HTML listeners are placed on the targetHtml of this renderer. idstring optional ID of the Executable object which renders this widget this must be UNIQUE and MUST NOT have same names as any global JavaScript variable. If not given, an auto-id is generated. refreshMenuModelboolean false optional This flag can be set to 'true' if the menu model needs to be executed always. Needs to be true, if the menu depends on the position in a table, i.e. technically on bcdColIdent and bcdRowIdent. urlstring optional This parameter can be set when you only want to apply one single XSLT style sheet. It contains the URL pointing to it. If this parameter is set no nested 'chain' tag must be provided; provided XSLT must produce HTML. identsWithinstring optional Id of an element. If given bcdColIdent and bcdRowIdent are set to the innermost values given between the event source and the element given here. bcdRow/ColIdent do not need to be set at the same element. tableModeboolean false optional This flag can be set to 'true' if the 'bcdRowIdent' and 'bcdColIdent' parameters should be extracted from the HTML and added as parameters on the tooltipRenderer. They are derived from 'bcdRowIdent' and 'bcdColIdent' attributes of tr rows and header columns (td or th). targetHtmltargetHtmlRef optional The HTML listeners are placed on this Element instead of the targetHtml of the given targetRendererId. -
staticbcdui.widget.createCredentialsMenu(args)
widget/widgetPackage.js, line 988 -
Creates credential menu
Name Type Description argsObject The parameter map contains the following properties. Name Type Description targetHtmltargetHtmlRef An existing HTML element this widget should be attached to, provide a dom element, a jQuery element or selector, or an element id. modelIdstring optional id of model holding custom model definition. If not provided, a standard one with just logout is created. userNamestring optional string to use as the username, by default it takes bcdui.config.userName -
staticbcdui.widget.createDimensionChooser(args)
widget/widgetPackage.js, line 202 -
This function creates an dimension chooser in the given target HTML element.
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description targetModelXPathwritableModelXPath The targetModelXPath for the dimensionChooser acts slightly different than for other widgets. The path points a node which will hold the value for the selected level. The widget builds up filter expressions automatically, so your targetXPath doesn't need any f:Expression statements, e.g. /guiStatus:Status/guiStatus:Dimension[@id='dimensionChooser']/@value. targetHtmltargetHtmlRef An existing HTML element this widget should be attached to, provide a dom element, a jQuery element or selector, or an element id. dimensionstring Unique name to select a dimension from the dimension model (located at '/bcdui/conf/dimensions.xml'. idstring optional ID of the Executable object which renders this widget this must be UNIQUE and MUST NOT have same names as any global JavaScript variable. If not given, an auto-id is generated. urlstring optional The URL the model is loaded from. This URL can be extended with a compressed request document if a requestDocument parameter is provided. If omitted the WrsServlet is taken. multiSelectstring false optional Make a multi selected dimension chooser. Can be 'true'|'false'|'check', 'false' is default. allowMixedSelectboolean false optional Allow heterogene selection in multi select chooser. checkBoxCaptionstring MultiSelect optional Caption of checkbox to turn on and of the multiselect. clearOptionstring false optional If != 'false', an additional option to clear the level selection is shown in the drop-down box. If 'true' bcd_autoCompletionBox_clearOption is used for the text, otherwise this is the i18n key. clearOptionLevelstring false optional See clearOption. This value is for the level selector input box only. If not specified, clearOption is used. emptyValuestring false optional If != 'false', a text is displayed if no level is selected. If 'true' bcd_autoCompletionBox_emptyValue is used for the text, otherwise this is the i18n key. emptyValueLevelstring false optional See emptyValue. This value is for the level selector input box only. If not specified, emptyValue is used. mandatoryboolean false optional An empty value is invalid if this parameters sets to true. Default is false. useCaptionsboolean false optional If true, the chooser will receive captions and codes. By convention the bref of the captions column is 'bRef'_caption. By default no captions are created. widgetCaptionstring optional A caption which is used as prefix for navPath generation for this widget. configurationModelIdstring optional ModelId of chooser configuration xml file. This model can hold a per-level configuration which allows additional filtering. limitLevelsstring optional Space separated list of levelIds. The available levels from the dimensions model get limited to this subset. enableNavPathboolean optional Set to true if widget should not be added to navpath handling. labelstring optional If provided, renders label element to this input Examples
Configuration Model
The Level element can have one child element called FilterCondition. It is a textnode which specifies an additional xpath statement which is added as an AND condition in the request document filter element. You should use brackets around it. There are several Level element attributes (see bcdui.core.AutoModel for details) which allows loading of additional bRefs or filtering: bRef, filterBRefs, mandatoryfilterBRefsSubset, additionalFilterXPath. You can also modify the handling of the Level input fields (see bcdui.widget.InputField): optionsModelIsSuggestionOnly, wildcard. A server sided options model filter can be set via serverSideOptionsModelFilter attribute. If there is a need to hide a level for direct selection (but the level is needed as dependency for a different level selection) you can use the visible attriute.<Configuration xmlns="http://www.businesscode.de/schema/bcdui/renderer-1.0.0"> <Level id="customerGroup" bRefs="ecom"> <FilterCondition>( ../wrs:C[2]='1')</FilterCondition> </Level> </Configuration> When using 'customerGroup' level (which is bound to one bRef (wrs:C[1])) another bRef 'ecom' is used and checked against value '1' via the given filter condition.<Configuration xmlns="http://www.businesscode.de/schema/bcdui/renderer-1.0.0"> <Level id="station" bRefs="facility_type s_isselectable"> <FilterCondition>( ../wrs:C[4]='1' and (not($guiStatus///f:Filter/f:Or[@id='facility_type']/f:Expression[@bRef='facility_type']/@value) or ../wrs:C[3] = $guiStatus//f:Filter/f:Or[@id='facility_type']/f:Expression[@bRef='facility_type']/@value) )</FilterCondition> </Level> </Configuration> When using 'station' level (which is bound to two bRef (wrs:C[1] and wrs:C[2])) two more bRefs 'facility_type' and 's_isselectable' are used. s_isselectable (which will be wrs:C[4] is checked against the value '1' and facility_type is checked against a guiStatus filter (if available)). So you can easily filter available level data with other possibly set client or server filters.<Configuration xmlns="http://www.businesscode.de/schema/bcdui/renderer-1.0.0"> <Level id="group" wildcard="startswith" serverSideOptionsModelFilter="true" hideWildcardChar="true"/> </Configuration> Group level information is generated while typing.<Configuration xmlns="http://www.businesscode.de/schema/bcdui/renderer-1.0.0"> <Level id="group" visible="false"/> </Configuration> Group level does not appear in Level drop down but can be used as a dependency level for a different level selection. -
staticbcdui.widget.createFilterTableHeader(args)
widget/widgetPackage.js, line 2765 -
Create filter table header
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description rendererstring | bcdui.core.Renderer Id of the registered renderer to work on or the render itself isSyncboolean false optional Decide whether the action is to be called synchronous or not alwaysShowHeaderboolean true optional If filtering leads to no rows to be displayed, this flag will show the table header to allow removal of filters getCaptionForColumnValuefunction optional Function (colIdx, colValue) which returns the rendered caption for the cell. By default standard wrs @caption, wrs:references and unit/scale handling is supported already getFilteredValuesfunction optional Function (colIdx) which needs to return a wrs:C array which holds the valid values for the current column. Use this to e.g. only show prefiltered values -
staticbcdui.widget.createFixedTableHeader(args)
widget/widgetPackage.js, line 2853 -
Create fixed table header by adding a fixed copy of the original Its size is derived from the "original" header, still in place for the table
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description rendererIdstring Id of the renderer to work on storeSizeboolean true optional Decide whether the action is to be called synchronous or not enableColumnFiltersboolean false optional Set to true if you wnat to enable column filters, too getCaptionForColumnValuefunction optional if you enabled column filters, you can set its getCaptionForColumnValue here -
staticbcdui.widget.createFormulaEditor(args)
widget/widgetPackage.js, line 474 -
Displays a field where the user can enter a formula
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description targetModelXPathwritableModelXPath The xPath pointing to the root-node this widget will place entered selected items into. The underlying XML format of data written is implemented by individual widget. If pointing into a Wrs, it switches to Wrs mode, i.e. the wrs:R will be marked as modified, target node will not be deleted. If you specify a targetmodelxpath, the box automatically acts as target. targetHtmltargetHtmlRef An existing HTML element this widget should be attached to, provide a dom element, a jQuery element or selector, or an element id. idstring optional ID of the Executable object which renders this widget this must be UNIQUE and MUST NOT have same names as any global JavaScript variable. If not given, an auto-id is generated. captionstring '' optional Default '', it will be used as i18n key to translate the caption. mandatoryboolean false optional An empty value is invalid if this parameters sets to true. Default is false. optionsModelXPathmodelXPath optional xPath pointing to an absolute xpath (starts with $model/..) providing a node-set of available options to display; especially this one supports cross references between models, i.e. $options / * / Value[@id = $guiStatus / * / MasterValue] optionsModelRelativeValueXPathstring optional xPath expression relative to 'optionsModelXPath' providing values for options to display, if this is defined, values referenced by optionsModelXPath are treated as captions. Wins over @caption and @ignoreCaption param. validateboolean true optional Turn on-off the validation of the formula. validateVariableNamesCheckboxboolean false optional Show or hide checkbox for validate variables option. skipValidationCaptionstring Skip check of values optional Caption to be shown for skipping validation. Default is 'Skip check of values'. skipServerSidedFunctionsboolean false optional Set to true to disable usage of server sided functions like CntDist. Default is false. widgetCaptionstring optional A caption which is used as prefix for navPath generation for this widget. enableNavPathboolean optional Set to true if widget should not be added to navpath handling. -
staticbcdui.widget.createInputField(args)
widget/widgetPackage.js, line 75 -
Creates a field where the user can enter a value or select it from a list of pre-defined values. These values are copied to a target model under a specified target XPath. When there is a list of allowed values the inputField can also apply a caption-value translation so that the displayed values can differ from the data that is actually placed in XML.This function creates an input field in the given target HTML element. This input field can be a text box or a combo box, dependent on the parameters.
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description targetModelXPathwritableModelXPath The xPath pointing to the root-node this widget will place entered selected items into. The underlying XML format of data written is implemented by individual widget. If pointing into a Wrs, it switches to Wrs mode, i.e. the wrs:R will be marked as modified, target node will not be deleted. If you specify a targetmodelxpath, the box automatically acts as target. targetHtmltargetHtmlRef An existing HTML element this widget should be attached to, provide a dom element, a jQuery element or selector, or an element id. idstring optional ID of the Executable object which renders this widget this must be UNIQUE and MUST NOT have same names as any global JavaScript variable. If not given, an auto-id is generated. optionsModelXPathmodelXPath optional xPath pointing to an absolute xpath (starts with $model/..) providing a node-set of available options to display; especially this one supports cross references between models, i.e. $options / * / Value[@id = $guiStatus / * / MasterValue] optionsModelRelativeValueXPathxPath optional xPath expression relative to 'optionsModelXPath' providing values for options to display, if this is defined, values referenced by optionsModelXPath are treated as captions. Wins over @caption and @ignoreCaption param. optionsModelIsSuggestionOnlyboolean optional If true, values different from the options model can are allowed. Default is that, if an optionsModel is given, only values from that model are allowed. additionalFilterXPathwritableModelXPath optional An additional XPath created, kept up-to-date during writing, not only when a final value us choosen, not listened on. Usually used to control a server-side filtered options model. keepEmptyValueExpressionboolean false optional A flag that can be set to 'true' if the target node should not be removed as soon as the value is empty. clearOptionstring false optional If != 'false', an additional option to clear the selection is shown in the drop-down box. If 'true' bcd_autoCompletionBox_clearOption is used for the text, otherwise this is the i18n key. emptyValuestring false optional If != 'false', a text is displayed if nothing is selected / entered. If 'true' bcd_autoCompletionBox_emptyValue is used for the text, otherwise this is the i18n key. mandatoryboolean false optional An empty value is invalid if this parameters sets to true. Default is false. wildcardstring optional For a f:Filter with @op='like', this controls the prefilling with wildcards ('*') when the value is yet empty and the field gets the focus. Can be 'contains', 'startswith' or 'endswith'. The user can overwrite this by adding/removing wildcards when editing the field. The wildcards apply to filtering within the top down list and for server side filters, both plain and for retrieving drop-down values dynamically from the server. bcdAutofitboolean false optional If true, drop down resizes depending on available options. isSortOptionsboolean false optional A flag that can be set to 'true' if the options shown in popup should be sorted alphabetically. maxlengthinteger optional Maximum number of characters for the input field. onEnterKeystring optional Handler function NAME triggered on ENTER key. onEscKeystring optional Handler function NAME triggered on ESC key. onTabKeystring optional Handler function NAME triggered on TAB key. onBlurstring optional Handler function NAME triggered on blur event. onFocusstring optional Handler function NAME triggered on focus event. setCursorPositionAtEndboolean false optional If true, the cursor is automatically positioned at the end of the input box. setFocusboolean false optional If true, let this input field get focus after creation. tabIndexstring optional Tab index of html element. widgetCaptionstring optional A caption which is used as prefix for navPath generation for this widget. enableNavPathboolean optional Set to true if widget should not be added to navpath handling. isPasswordboolean optional If true, input element type will be 'password'. labelstring optional If provided, renders label element to this input hideWildcardCharboolean optional If true, no asterisk characters are shown -
staticbcdui.widget.createMenu(args)
widget/widgetPackage.js, line 913 -
Creates menu with default renderer an default menu js handler.
Name Type Description argsObject The parameter map contains the following properties. Name Type Description targetHtmltargetHtmlRef An existing HTML element this widget should be attached to, provide a dom element, a jQuery element or selector, or an element id. idstring optional ID of the Executable object which renders this widget this must be UNIQUE and MUST NOT have same names as any global JavaScript variable. If not given, an auto-id is generated. menuHandlerClassNamestring optional Javascript menu handler class name, could extend bcdui.widget.menu.Menu. menuRootElementIdboolean optional Root menu HTML element (UL) id modelIdstring optional xml model id, can be used for menues defined in folder '/WEB-INF/bcdui/menu/'. modelUrlstring optional Optional: URL where model get data from, allows reading a random xml file from the server. parametersstring optional Own action handler. rendererUrlstring | chainDef optional URL to XSLT stylesheet that renders the model or chain definition; default is "/bcdui/js/widget/menu/menu.xslt" menuIdstring optional Optional menuId to use one specific menu out of the available ones. If not available, the default one is used. -
staticbcdui.widget.createMultiSelect(args)
widget/widgetPackage.js, line 319 -
Creates a multi selection box where multiple values can be selected and stored to the target model.
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description targetModelXPathwritableModelXPath The xPath pointing to the root-node this input widget will place entered selected items into. The underlying XML format of data written is implemented by individual widget. If pointing into a Wrs, it switches to Wrs mode, i.e. the wrs:R will be marked as modified, target node will not be deleted. If you specify a targetmodelxpath, the box automatically acts as target. Keep in mind when specifying a targetModelXPath for the multiSelect, you should use a f:Or in your expression. For example: /guiStatus:Status/f:Filter/f:Or/f:Expression[@bRef='country' and @op='=']/@value. targetHtmltargetHtmlRef An existing HTML element this widget should be attached to, provide a dom element, a jQuery element or selector, or an element id. optionsModelXPathmodelXPath xPath pointing to an absolute xpath (starts with $model/..) providing a node-set of available options to display; especially this one supports cross references between models, i.e. $options / * / Value[@id = $guiStatus / * / MasterValue] idstring optional ID of the Executable object which renders this widget this must be UNIQUE and MUST NOT have same names as any global JavaScript variable. If not given, an auto-id is generated. optionsModelRelativeValueXPathstring optional xPath expression relative to 'optionsModelXPath' providing values for options to display, if this is defined, values referenced by optionsModelXPath are treated as captions. Wins over @caption and @ignoreCaption param. delimiterstring optional If defined, will switch to delimiter-based storing, i.e. multiple values will be written into one DOM node and separated by given delimiter. visibleSizeinteger optional Number of visible elements in list. isCheckBoxboolean false optional Use checkbox html element instead of multiselect. keepEmptyValueExpressionboolean false optional A flag that can be set to 'true' if the target node should not be removed as soon as the value is empty. widgetCaptionstring optional A caption which is used as prefix for navPath generation for this widget. enableNavPathboolean optional Set to true if widget should not be added to navpath handling. doSortOptionsboolean false optional Set to true if widget should sort options. labelstring optional If provided, renders label element to this input, unless args.isCheckBox = true -
staticbcdui.widget.createNavPath(args)
widget/widgetPackage.js, line 3163 -
Writes navpath widget information to the given target and updates this information changes
Name Type Description argsObject optional The parameter map contains the following properties. Name Type Default Description targetHtmltargetHtmlRef bcdNavPath optional An existing HTML element this widget should be attached to, provide a dom element, a jQuery element or selector, or an element id. titlestring Report optional A title string which is used during filename generation for exports valuesstring optional A space separated string which lists the ordered targetIds of the widgets which should be queried separatorstring optional A string used for delimiter between single widget navpath values, default is ' ' (space) -
staticbcdui.widget.createPeriodChooser(args)
widget/widgetPackage.js, line 399 -
Creates a period chooser. The period chooser supports a number of options and formats, see parameters. You can control what kind of periods a user may select and in which format it is written. Note that the bRef written are always
yr, qr, mo, cwyr, cw or dywith an optional postfix of there are different types of dates.
The period chooser outputs to args.targetModelXPath, which may point to any model but needs to end withf:And[@id='myPeriod'], where @id is the period chooser's id.Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description targetModelXPathwritableModelXPath Unless you don't use the useSimpleXPath option, this targetModelXPath acts slightly different than for other widgets. You only define a root node like '/guiStatus:Status/f:Filter/f:And[@id='period']' here. The period chooser places its f:Expression elements below this given rootnode automatically. The number of expressions and how they are added depends on periodChooser settings (e.g. a range or writing mo/yr instead of yyyy-mm-dd etc.) targetHtmltargetHtmlRef An existing HTML element this widget should be attached to, provide a dom element, a jQuery element or selector, or an element id. idstring optional ID of the Executable object which renders this widget this must be UNIQUE and MUST NOT have same names as any global JavaScript variable. If not given, an auto-id is generated. captionstring optional Default 'Date', it will be used as i18n key to translate the caption if isFreeRangeSelectable set to true, then caption may contain two terms for 'From' and 'To' captions. Divider: ';' Example: caption = 'i18.md.From;i18.md.To' firstSelectableDaystring optional The first day that can be selected. A week or month can only be selected if all days are selectable. lastSelectableDayboolean optional The last day that can be selected. A week or month can only be selected if all days are selectable. isFreeRangeSelectableboolean false optional Allows date free range selection. isSecondSelectableboolean false optional Allows second selection. isMinuteSelectableboolean false optional Allows minute selection. isHourSelectableboolean false optional Allows hour selection. isDaySelectableboolean true optional Allows day selstion. isWeekSelectableboolean false optional Allows week selection. isMonthSelectableboolean true optional Allows month selection. isQuarterSelectableboolean true optional Allows quarter selection isYearSelectableboolean true optional Allows year selection. mandatoryboolean false optional An empty value is invalid if this parameters sets to true. Default is false. outputPeriodTypeboolean false optional Produces selected dates as one of known date periods. For example if this contains mo and the user selects a data range, which fits a month, mo with be written. This is usefull if you allow free range but you also have a month aggregation for performance optimization. On the other hand, if this is not set and the user selects a month in the widget, then the month is written in terms of dy. showPrevNextButtonsboolean false optional If this is set to 'true' the buttons Previous Period and Next Period are showed. The default value is 'false'. suppressCaptionsboolean false optional Set this to true if the buttons should not have any caption text. Default is false. textInputboolean false optional Add the free range feature. validateboolean true optional Turn on-off the validation of the keyboard entered date values. optionsModelXPathmodelXPath optional Allows to use a single period chooser widget for different logical types of dates (see args.postfix), which then can be selected from a drop-down. The node set found at this xPath lists the postfixes. optionsModelRelativeValueXPathstring optional xPath expression relative to 'optionsModelXPath' providing values for options to display, if this is defined, values referenced by optionsModelXPath are treated as captions. Wins over @caption and @ignoreCaption param. postfixstring optional An optional postfix which is added to the filter bRefs (dy/mo.., see above). Use this if you deal with different types of dates. If optionsModel is given, this value should be one of the available ones. widgetCaptionstring optional A caption which is used as prefix for navPath generation for this widget. useSimpleXPathstring false optional Set this to true if you want a minimal periodchooser setup (only day selectable via popcalendar) which only writes an ISO date to an XPath which you provide (not a complex one in normal mode). autoPopupstring false optional Set this to true if the popup calendar should appear after creation. suppressButtonsstring false optional Set this to true if from and to buttons should be hidden. Default is false. enableNavPathboolean optional Set to true if widget should not be added to navpath handling. showClearButtonboolean optional Set this to true if you need one clear button which removes the currently set date. labelstring optional If provided, renders label element to this periodchooser. -
staticbcdui.widget.createSingleSelect(args)
widget/widgetPackage.js, line 264 -
Creates a single selection radio button group where a value can be selected and stored to the target model.
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description targetModelXPathwritableModelXPath The xPath pointing to the root-node this widget will place entered selected items into. The underlying XML format of data written is implemented by individual widget. If pointing into a Wrs, it switches to Wrs mode, i.e. the wrs:R will be marked as modified, target node will not be deleted. If you specify a targetmodelxpath, the box automatically acts as target. targetHtmltargetHtmlRef An existing HTML element this widget should be attached to, provide a dom element, a jQuery element or selector, or an element id. optionsModelXPathmodelXPath xPath pointing to an absolute xpath (starts with $model/..) providing a node-set of available options to display; especially this one supports cross references between models, i.e. $options / * / Value[@id = $guiStatus / * / MasterValue] idstring optional ID of the Executable object which renders this widget this must be UNIQUE and MUST NOT have same names as any global JavaScript variable. If not given, an auto-id is generated. optionsModelRelativeValueXPathstring optional xPath expression relative to 'optionsModelXPath' providing values for options to display, if this is defined, values referenced by optionsModelXPath are treated as captions. Wins over @caption and @ignoreCaption param. keepEmptyValueExpressionboolean false optional A flag that can be set to 'true' if the target node should not be removed as soon as the value is empty. widgetCaptionstring optional A caption which is used as prefix for navPath generation for this widget. enableNavPathboolean optional Set to true if widget should not be added to navpath handling. labelstring optional If provided, renders label element to this widget skinstring radio optional Decide between radio or panel skin. -
staticbcdui.widget.createTableHeadFilter(args)
widget/widgetPackage.js, line 2215 -
injectFilter in table
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description tableElementHtmlElement The HTML Table Element which you want to use for injection targetModelXPathwritableModelXPath The xPath pointing to the root-node this widget will place entered selected items into inputModelbcdui.core.DataProvider WRS datamodel representing the table columns statusModelbcdui.core.DataProvider bcdui.wkModels.guiStatus optional StatusModel where the widget will write its content to. useCustomHeaderRendererboolean false optional Set to true when your code adds bcdFilterButton classes on its own (e.g. grid) callbackfunction optional Function which will be executed after a change of the filters have been performed getCaptionForColumnValuefunction optional Function (colIdx, colValue) which returns the rendered caption for the cell. By default standard wrs @caption, wrs:references and unit/scale handling is supported already. Deprecated (prefer valueCaptionProvider parameter). getFilteredValuesfunction optional Function (colIdx) which needs to return a wrs:C array which holds the valid values for the current column. Use this to e.g. only show prefiltered values . Deprecated (prefer valueCaptionProvider parameter). valueCaptionProviderfunction optional Function (inputModel, colIdx) which needs to return a Promise which resolves with an array of objects {value, caption, isFiltered} columnFiltersCustomFilterObject optional CustomColumnFilter functions passed to column filter. columnFiltersCustomFilter is an array holding an object per bRef/column and an operations array which defines id, caption, valueCaptionProvider, filterFunction and gridFilterRowFunction -
staticbcdui.widget.createTabMenu(args)
widget/widgetPackage.js, line 1318 -
Creates tab menu widget.
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description targetHtmltargetHtmlRef An existing HTML element this widget should be attached to, provide a dom element, a jQuery element or selector, or an element id. defElementIdstring Html element id where tabs are defined. args.idstring optional ID of the Executable object which renders this widget this must be UNIQUE and MUST NOT have same names as any global JavaScript variable. If not given, an auto-id is generated. handlerJsClassNamestring optional Own JS class name to handler click action on tab. rendererUrlstring optional URL to own renderer. isPersistentboolean false optional Set this to true to make the tab selection persistent. -
staticbcdui.widget.createTooltip(args)
widget/widgetPackage.js, line 1846 -
Generates a tooltip for another renderer.
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description targetRendererIdstring optional The renderer the tooltip is attached to. The HTML listeners are placed on the targetHtml of this renderer. If 'tableMode' is set to 'true' the renderer is expected to render an HTML table with the appropriate 'bcdRowIdent/bcdColIdent' attributes of tr rows header columns. targetRendererbcdui.core.DataProvider optional The renderer the tooltip is attached to. The HTML listeners are placed on the targetHtml of this renderer. If 'tableMode' is set to 'true' the renderer is expected to render an HTML table with the appropriate 'bcdRowIdent/bcdColIdent' attributes of tr rows header columns. idstring optional ID of the Executable object which renders this widget this must be UNIQUE and MUST NOT have same names as any global JavaScript variable. If not given, an auto-id is generated. delayinteger optional The delay in Miliseconds that the tooltip should wait before it appears. filterstring optional An optional filter on the tag name where the tooltip should appear. In 'tableMode' it is recommended to set it on 'td' or 'th|td'. identsWithinstring optional Id of an element. If given bcdColIdent and bcdRowIdent are set to the innermost values given between the event source and the element given here. bcdRow/ColIdent do not need to be set at the same element. stylesheetUrlstring optional This parameter can be set when you only want to apply one single XSLT style sheet. It contains the URL pointing to it. If this parameter is set no nested 'chain' tag must be provided tableModeboolean false optional This flag can be set to 'true' if the 'bcdRowIdent' and 'bcdColIdent' parameters should be extracted from the HTML and added as parameters on the tooltipRenderer. They are derived from 'bcdRowIdent' and 'bcdColIdent' attributes of tr rows and header columns (td or th). targetHtmltargetHtmlRef optional The HTML listeners are placed on this Element instead of the targetHtml of the given targetRendererId. tooltipTargetHtmlIdstring optional Existing HTML Element Id which is used for the tooltip. By default this is 'bcdTooltipDiv'. -
staticbcdui.widget.getCurrentNavPath(values, separator)
widget/widgetPackage.js, line 3286 -
Get current navpath widget information for the given widget targets.
Name Type Default Description valuesstring optional A space separated string which lists the ordered targetIds of the widgets which should be queried (or empty for all) separatorstring " " optional A string used for delimiter between single widget navpath values Returns:
string containing the current navPath for your selected values -
staticbcdui.widget.getLiveNavPath(callback, values, separator)
widget/widgetPackage.js, line 3194 -
Get current live navpath widget information via callback for the given widget targets. This function regets the current caption information from the widgets themselves and does not use the navPath model which represents the captions when entering the page
Name Type Default Description callbackfunction A callback function which gets the final navpath string and an object holding the single ids/captions valuesstring optional A space separated string which lists the ordered targetIds of the widgets which should be queried (or empty for all) separatorstring " " optional A string used for delimiter between single widget navpath values -
staticbcdui.widget.getWidgetCaption(elOrId)
widget/widgetPackage.js, line 3142 -
Get widgetCaption information from the given target
Name Type Description elOrIdelement | string An existing HTML element or its id representing a widget targetHtml Returns:
string of found widgetCaption or empty string -
staticbcdui.widget.hideModalBox()
widget/widgetPackage.js, line 894 -
Hide opened modalbox
-
staticbcdui.widget.i18nAlert(msgKey, defaultValue)
widget/widgetPackage.js, line 3124 -
shows a js alert box with the given message
Name Type Description msgKeystring defaultValuestring -
staticbcdui.widget.i18nConfirm(msgKey, defaultValue)
widget/widgetPackage.js, line 3133 -
shows a js confirm box with the given message
Name Type Description msgKeystring defaultValuestring -
staticbcdui.widget.openDialog(args){Promise}
widget/widgetPackage.js, line 3497 -
opens a modal dialog ready for renderer and delegates to callbacks from arguments; you can trigger 'dialog-close' event within body to close the dialog programmatically, any argument to this event will be provided to the resolving promise as well as to the 'close' callback. In addition to those parameters described in this documentation you can provide any other valid parameter according to jQueryUI Dialog Widget API. This dialog returns a Promise resolving with value provided to 'dialog-close' event, allowing you to easily build on cascading dialogs utilizing promise chain.
Name Type Description argsobject arguments Name Type Default Description openfunction function to execute when dialog is opened, it gets args object with properties: targetHtml closefunction optional function to execute after dialog is closed createfunction optional function to execute when dialog is created beforeClosefunction optional function to execute before dialog is closed - it gets args object with properties: targetHtml; if this function returns false, the dialog is not closed. titlestring optional dialog title widthnumber 640 optional dialog width; > 1 means absolute size <= 1 means percentage of the current view-port size, i.e. .75 = 75% of view-port size widthnumber 320 optional dialog height; > 1 means absolute size <= 1 means percentage of the current view-port size, i.e. .75 = 75% of view-port size Returns:
Type Description Promise resolving with value provided from 'dialog-close' event, when dialog is closed. Example
bcdui.widget.openDialog({ open : (args) => { new bcdui.core.Renderer({ targetHtml : args.targetHtml, chain : "confirm.buy.dott" }); }, title : bcdui.i18n.TAG + "confirm.buy" }); -
staticbcdui.widget.showModalBox(args)
widget/widgetPackage.js, line 809 -
Open and show modalbox
Name Type Description argsObject The parameter map contains the following properties. Name Type Default Description titlestring optional Modal box title. You can also use titleTranslate. titleTranslatestring optional It will be used as i18n key to translate the title. messagestring optional Modal box message. You can also use messageTranslate. messageTranslatestring optional It will be used as i18n key to translate the message. modalBoxTypeinteger 0 optional One of three types modalBoxTypes.ok, modalBoxTypes.warning, modalBoxTypes.error. By default = modalBoxTypes.ok widthinteger 300 optional Width of modal box. 300 by default heightinteger optional Height of modal box. auto by default onclickstring optional Optional js function which is called after closing the modal box positionstring optional jQuery position parameter bag. Default is center top htmlElementIdstring optional Id of a html segment which is taken as messagebox instead. ModalBoxType is ignored in this case. -
staticbcdui.widget.stickyTable(args)
widget/widgetPackage.js, line 3582 -
make parts of the given table sticky
Name Type Description argsObject Name Type Default Description targetHtmlHtmlElement targetHtml containing/being table widthstring optional the width of the table (e.g. 10, 20px or 30em) heightstring optional the height of the table (e.g. 10, 20px or 30em) headerboolean false optional make header sticky footerboolean false optional make footer sticky nFirstColsinteger optional make the first n columns sticky nFirstRowsinteger optional make the first n rows sticky nLastColsinteger optional make the last n columns sticky nLastRowsinteger optional make the last n rows sticky bcdDimensionboolean false optional make all dimension cells (cube) sticky (higher prio than other options) disableMaxWHboolean false optional setting this to true will use width/heigth instead of max-width/max-height