Defining the User Interface Behavior
Defining the user interface behavior
In addition to the description of the design, the XML file also contains parameters and describes actions driving the behavior of the user interface.
The end-user is guided along the configuration process. Obviously, he can choose to answer such or such question, to come back into a step to review his inputs, to manually browse the configuration tree. Therefore, some behavior actions are automated to ease the navigation and/or to launch some processes triggered by the user manipulations.
Two main elements are dedicated to drive the Configurator UI behavior: the Actions and the next/previous Policy.
For the Catalog UI, the end-user is free to browse the collection hierarchy (no automation of the next/previous policy) but some actions allow him to reach specific pages.
CPQ UI Actions
CONFIGURATOR ACTIONS (CONFIGURATION AND GUIDED SELLING PROCESS)
The user interface allows:
- to apply actions corresponding to events that have been triggered and returned by the engine.
- to raise events that will be sent to the engine (Events triggered by end-user actions for example).
Events triggered by the model
Events coming from the model are described in the “Define Event Logic” step of the Designer. The model can partially control the behavior of the user interface.
They allow for example to activate a FormProperty box as soon as a Form is completed, or create a new instance of a nested Configurable Product as soon as the first one is completed.
Events triggered by the user interface
The user interface can trigger and send predefined or custom actions using the element.
Predefined actions
| APPLICABLE ON | ACTION NAME | DESCRIPTION |
|---|---|---|
| Nested Forms Nested CPs | NEW | Creates a new instance for a nested Form or a nested CP. The created instance is inserted after the selected instance. |
| DELETE | Deletes the selected nested Form or nested CP | |
| COPY | Copies the selected Form or CP | |
| PASTE | Completes the selected Form or CP with the values that have been previously copied from another instance. Copied and pasted forms or CPs must belong to the same parent nested object. The content of the selected object is replaced by the pasted content. | |
| CUT | Copies the selected Form or CP and deletes it | |
| CLONE | (Nested Forms only) Duplicates and insert the new form instance after the current one. | |
| FPs Forms CPs | AUTOCOMPLETE AUTOCOMPLETE(mode='defaultValues’) | Automatically answers all the Form Properties of the selected CP or a Form, or auto answer the selected FP The valuation mode either takes the ‘defaultValues’ of the CP or the first value of the domains (mode=’values’) |
| RESET | Resets the selected CP, Form or FP |
| APPLICABLE ON | ACTION NAME | DESCRIPTION |
|---|---|---|
| EXPAND COLLAPSE EXPANDALL COLLAPSEALL | Expands/Collapses an element of the user interface – like Form or FP boxes (or all its sub elements) | |
| NestedForm (box) | SET | Valuates all the FPs of all instances of the nestedFormBox |
| RESET | Resets all the FPs of all instances of the nestedFormBox | |
| Value Selectors | SET | Valuates the FP with the currently selected element |
| RESET | Resets the selected FP | |
| COMPARE(compareList=compareListID1) | Adds the selected product to the identified comparison list passed as a parameter. | |
| Configuration Breakdown | ACTIVATE_CURRENT | Activates (puts the focus on) the node currently selected in the configuration breakdown |
| Products (SI only) | CONFIGURE_AND_ADD [/!\ Action only available when the CP is launched from a Catalog in a Quote context] | Automates the background run and add to quote of the configuration process linked to the SI via a ‘computationLink’. During a configuration process session, the user can only select once the Configure_And_Add action for a given product (The user kind of fill a ‘wish list’ of complementary products). Then, the elements are added to the quote when the current configuration process is added. |
| ADD_TO_CART ADD_TO_CART(qty=on) [/!\ Action only available when the CP is launched from a Catalog in a Quote context] ADD_TO_CART(multiConfiguration=on) multiconfiguration= on/off It is recommended not to use multiple ADD_TO_CART in the layout to avoid confusing users. [/!\ This action behaves differently when used with Performance Quoting - see below for more details] ADD_TO_CART(mergeMode=on) mergeMode= on or off Only used with Performance Quoting. | Sends the product to the quote (When the Configuration is used within a Catalog and in the context of an integration with a quotation tool) The product is added to the quote (with or without given a quantity – default qty is 1). If a given Form properties is not manually validated by pressing the “Enter” key or with a OK button, the ADD_TO_CART action validates it automatically. If the optional multiConfiguration attribute is turned to ‘on’ (‘off’ by default), the action adds a CP to the Quote everytime the ADD_TO_CART action is invoked. In addition, the end user stays in the Configuration workflow and is not redirected. The action must be seen as “save as new configuration” where is saves the current configuration in the cart as a new line. The user keeps working from this current configuration. If the optional mergeMode attribute is turned to ‘on’, then it activates the Merge CP mode on Performance Quoting quote side for quote line creation/update. See Performance Quoting documentation for more details. | |
| cartBox/cartCell | COPY_CARTLINE CUT_CARTLINE PASTE_CARTLINE(insertion=inside) DELETE_CARTLINE | In the cartBox, it allows to copy/cut, paste and remove the currently selected quote line. The paste action can paste ‘inside’ or ‘below’ the current line (value of the insertion parameter) By default, if no parameter is specified, the paste action is ‘inside’ if the current line is a folder and ‘below’ otherwise. |
| NEW_CARTFOLDER(columnName=ItemSheet) | Allows creating a folder in the quote. The action opens a flyer to fill the name of the folder. The specified column name corresponds to the quote column that will store the name of the folder. Cf. cartBox for more details | |
| ACTIVATE_CURRENT [/!\ Actions only available when the CP is launched from a Catalog] | Redirects the user to the productPage corresponding to the currently clicked product | |
| formFlyer | PREVIOUS_FORM NEXT_FORM | Allows to switch from a form instance to the next/previous one in the context of a formFlyer using a cpeObject set to $CURRENT_FORM |
| General | NEXT | Goes to the next user interface element (see Settings paragraph) |
| APPLICABLE ON | ACTION NAME | DESCRIPTION |
|---|---|---|
| PREVIOUS | Goes to the previous user interface element (see Settings paragraph) | |
| NEXT_STEP | Goes to the next step defined by the selector bar if this step is available. (see Settings/Step by step navigation paragraph) | |
| PREVIOUS_STEP | Goes to the previous step defined by the selector bar if this step is available. (see Settings/Step by step navigation paragraph) | |
| TOGGLE_LEFT_PART | Expands or collapses the left part in the Configuration page | |
| TOGGLE_RIGHT_PART | Expands or collapses the right part in the Configuration page | |
| SET(expression=$CURRENT_FORM) | Valuates simultaneously all FPs of the current Form. (if the SET action is used in a formBox, then the attribute expression is optional) | |
| CLOSE CLOSE(goTo=cart) [/!\ Action only available when the CP is launched in a Quote context] goTo= cart / cartPage / cart.CPQStepName (e.g. Cart.ReportPage to redirect to the ReportPage of Quote) CLOSE (confirmationPopup=on) confirmationPopup=on/off. Displays a popup asking the end user to confirm that he wants to leave the Configuration Process. Turned off by default [/!\ This action behaves differently when used with Performance Quoting - see below for more details] | Closes the configuration without saving or generating the XML. | |
| SAVE | Saves a XML version of the configuration result. (The path of this XML file is given as an input parameter of the CPQUI) Save action becomes available depending on the value of the following parameter of the Configuration XML file: <cam:Param cpe="CPE.Settings.Session.AllowIncomp leteSave" value="true" /> | |
| ADD_TO_CART For Legacy : ADD_TO_CART(goTo=cart) [/!\ Action only available when the CP is launched from a Quote] goTo= cart / cartPage / cart.CPQStepName (e.g. Cart.ReportPage to redirect to the ReportPage of CPQ) goTo=productPage, cpe=CPE.wks/CL/Collection.SI/SI01 goTo=cpPage, cpe=CPE.wks/CP/pcpName goTo=catalogHomePage goTo=collectionPage, cpe=CPE.wks/CL/Collection goTo=lastCatalogPage (e.g. on the Catalog page where the Configuration Process has been initially launched) For Quote-X: ADD_TO_CART(goTo=quotex.<pageId>) (“PageId” is the widget id of the target page in the Quote-X Model) [/!\ Action only available when the CP is launched from a Quote] ADD_TO_CART(multiConfiguration=on) multiconfiguration= on / off It is recommended not to use multiple ADD_TO_CART in the layout to avoid confusing users. *[/!\ This action behaves differently when used with Performance Quoting - see below for more details] ADD_TO_CART(mergeMode=on) mergeMode**= on/off Only used with Performance Quoting. | Sends the configuration result to the quote The end-user is redirected either to the Catalog ‘cartPage’, or to the ‘cart’ spreadsheet or to a specific Quote Process Step if the goTo attribute is specified. ADD_TO_CART action becomes available depending on the value of the following parameter of the Configuration XML file: <cam:Param cpe="CPE.Settings.Session.AllowIncomp leteSave" value="true" /> If <cam:Param cpe="CPE.Settings.Session.warnOnIncompleteSaving" value="true" /> a warning/confirmation message will be displayed by the CPQUI when trying to save an incomplete configuration If a given Form properties is not manually validated by pressing the “Enter” key or with a OK button, the ADD_TO_CART action validates it automatically. If the optional multiConfiguration attribute is turned to ‘on’ (‘off’ by default), the action adds a CP to the Quote everytime the ADD_TO_CART action is invoked. In addition, the end user stays in the Configuration workflow and is not redirected. The action must be seen as “save as new configuration” where is saves the current configuration in the cart as a new line. The user keeps working from this current configuration. If both the goTo and multiConfiguration attributes are set, the goTo is applied and the user is redirected accordingly (multiConfiguration is ignored). If the optional mergeMode attribute is turned to ‘on’, then it activate the Merge CP mode on Performance Quoting quote side for quote line creation/update. See Performance Quoting documentation for more details. | |
| OPEN_FLYER(flyerName=IDflyer) | Opens a flyer whose name is given by the parameter flyerName (e.g. IDflyer) |
| APPLICABLE ON | ACTION NAME | DESCRIPTION |
|---|---|---|
| PRINT (rmoUserType=rmoUT) | Launches the reporting engine using the XML export of the configuration as a data source and the RMO Report attached to the rootCP (and whose userType corresponds to the RMO usertype specified.) The generated PDF flow is returned to the web browser. | |
| OPEN_PAGE(pageName=searchPage) [/!\ Actions only available when the CP is launched from a Catalog] NB: for the comparePage, it is possible to have an additional parameter for the OPEN_PAGE action in order to show the number of products added to the comparator on the action button itself. |
Allows to redirection to a specific page of the Catalog (searchPage, cartPage or comparePage) PageName can be one of the following: eCatalogUI.homePage, eCatalogUI.collectionPage, eCatalogUI.searchPage, eCatalogUI.productPage, eCatalogUI.comparePage, eCatalogUI.configurableProductPage, eCatalogUI.cartPage, eCatalogUI.needAnalysisPage. | |
| OTHER | Redirects to the specified URL (indicated in the ‘url’ attribute of the action) | |
| Bundle Value Selector | SET | Valuates the FP with the currently selected element |
| RESET | Resets the selected FP | |
| OPEN_INSIGHT(optimization=on/off,explanation=on/off,help=on/off) | Drives the visibility of the bundle value selector Insight button. If optimization = on, then the guidance part will be displayed in the insight flyer If explanation = on, then the explanation part will be displayed in the insight flyer If help = on, then the help part will be displayed in the insight flyer |
ADD_TO_CART AND CLOSE ACTIONS IN PERFORMANCE QUOTING
Save and update a Configurable Product, add it to the Quote, or discard any change made are capabilities ruled by the "Add_To_Cart" and "Close" actions of the Configurator. This section aims at listing in details the different use cases covered by all those actions in the context of the Performance Quoting module.
Standard Behavior
The Add_To_Cart action covers two use cases:
- Save & Close (ADD_TO_CART(multiConfiguration=off)):
- When starting a new Configuration Process, add a new Configurable Product in the Quote on Add_To_Cart action.
- When opening an existing Configurable Product from the Quote, update the existing Configurable product in the Quote on Add_To_Cart action.
- The end user exits the Configuration Process at the end of the action.
- Save & New (ADD_TO_CART(multiConfiguration=on)):
- When starting a new Configuration Process, add a new Configurable/Configured Product in the Quote on Add_To_Cart action. The end user stays in the Configuration Process at the end of the action and has opportunity to modify the answers given in the Configuration Process and click on Add_To_Cart again to add a new Configurable Product to the Quote.
- When opening an existing Configurable/Configured product, this action is unavailable. Only the Save & Close is available.
- The Close action discards any change since the last save - if any - and exits the Configuration Process.
Custom Behavior
The user interface can also call on demand actions specified in the model via the ‘Event Logic’ Steps.
In the Designer, these actions are created by defining an ‘onCustom’ event identified by its ‘eventName’. The user interface can call these actions by triggering on demand the event itself using a specific action type: SEND_CUSTOM_EVENT.
Summary of Behaviors in Performance Quoting
The behaviors of the Add_To_Cart and Close actions can be summarized as follows:
| ACTIONS | SAVE & CLOSE (MULTICONFIGURATION=OFF) | SAVE & NEW (MULTICONFIGURATION=ON) | CLOSE |
|---|---|---|---|
| Start a new configuration | 1 CP added to the Quote | 1 CP added to the quote on each click. Close or Save & Close necessary to exit the Configuration Process: the last added CP is updated with the latest modifications | No new CP is added to the Quote. The modifications done in the configuration process since the last ADD_TO_CART, if any, are ignored |
| ACTIONS | SAVE & CLOSE (MULTICONFIGURATION=OFF) | SAVE & NEW (MULTICONFIGURATION=ON) | CLOSE |
|---|---|---|---|
| open an existing configuration | reopened CP is updated in the quote | NA | the reopened CP is not updated in the quote. The modifications done in the configuration process since last ADD_TO_CART, if any, are ignored |
CATALOG ACTIONS
Events triggered by the user interface
The user interface can trigger and send predefined or custom actions using the <action> element.
| APPLICABLE ON | ACTION NAME | DESCRIPTION |
|---|---|---|
| Products (SI only) | ADD_TO_CART ADD_TO_CART(qty=on) For Legacy: ADD_TO_CART(qty=on, goTo=cartPage) ADD_TO_CART(goTo=cart) [/!\ Action only available when the CP is launched in a Quote context] goTo= cart / cartPage / cart.CPQStepName (e.g. Cart.ReportPage to redirect to the ReportPage of Quote) For Quote-X: ADD_TO_CART(qty=on, goTo= quotex.<pageId>) ADD_TO_CART(goTo=quotex.<pageId>) (“PageId” is the widget id of the target page in the Quote-X Model) [/!\ Action only available when the CP is launched from a Quote] | Sends the product to the quote The product is added to the quote (with or without given a quantity – default qty is 1). The end-user is redirected either to the Catalog ‘cartPage’, or to the ‘cart’ spreadsheet or to a specific Quote Process Step if the goTo attribute is specified. |
| ADD_COLLECTION_TO_QUOTE(goTo= quotex.<pageId>,recursive=true) | Massively sends products to the quote from a collection. Products included in the scope can be limited to the current collection only or also include products from all child collections, as specified in the recursive attribute The end-user is redirected either to the Catalog ‘cartPage’, or to the ‘cart’ spreadsheet or to a specific Quote Process Step if the goTo attribute is specified. | |
| ADD_SEARCH_RESULT_TO_QUOTE(goTo= quotex.<pageId>) | Massively sends products to the quote from a search result, focusing on results from one collection only. The end-user is redirected either to the Catalog ‘cartPage’, or to the ‘cart’ spreadsheet or to a specific Quote Process Step if the goTo attribute is specified. |
| APPLICABLE ON | ACTION NAME | DESCRIPTION |
|---|---|---|
| CONFIGURE | Redirects the user to the configurableProductPage to run the configuration process attached to the SI via a ‘configurationLink’ | |
| CONFIGURE_AND_ADD CONFIGURE_AND_ADD(qty=on) [/!\ Action only available when the CP is launched in a Quote context] | Automates the background run and add to quote of the configuration process linked to the SI via a ‘computationLink’. Note that when using the parameter qty=on, the quantity selector widget is displayed in the UI and the qty selected by the user is passed to the Configurator engine as the value of the following setting: CPE.Settings.Session.Qty | |
| SAVE | Saves a XML version of the current product. (The path of this XML file is given as an input parameter of the CPQUI) | |
| Products (CP only) | CONFIGURE CONFIGURE(qty=on) | Redirects the user to the configurableProductPage to run the configuration process Note that when using the parameter qty=on, the quantity selector widget is displayed in the UI and the qty selected by the user is passed to the Configurator engine as the value of the following setting: CPE.Settings.Session.Qty |
| Products (SI or CP) | ACTIVATE_CURRENT | Redirects the user to the productPage corresponding to the currently clicked product |
| ACTIVATE_REPLACEMENT | Redirects the user to the productPage of the last replacement item if only one replacement path is available (otherwise the action is de-activated). | |
| COMPARE(compareList=compareListID1) | Adds the selected product to the identified comparison list passed as a parameter. | |
| PRINT(rmoUserType=rmoUT) | Launches the reporting engine using the XML export of the current viewed product as a datasource and its attached RMO Report (The userType of the RMO has to correspond to the RMO usertype specified as a parameter of the action) The generated PDF flow is returned to the web browser. | |
| Teasers | ACTIVATE_CURRENT | Allows the user to click on the RMO of the teaser and be redirected to the page corresponding to the shortcut of the teaser. |
| APPLICABLE ON | ACTION NAME | DESCRIPTION |
|---|---|---|
| searchSticker searchBox | SEARCH SEARCH(searchPolicy=MyCustomSearch) | Executes the search process (defined in the searchPolicy) and redirects the user to the searchPage or the resulting product page. (If no searchPolicy is specified in the action, the first policy declared in the XML is taken into account) |
| SEARCH_AND_ADD | Executes the search process (defined in the searchPolicy) and add the maxAddedProducts to the quote. If the search process returns more than the maxAddedProducts, then the searchPage is displayed. | |
| preferenceSticker | CHANGE_PREFERENCE | Allows to switch between the internationalSettings listed in the preferenceSticker |
| cartBox/cartCell | COPY_CARTLINE CUT_CARTLINE PASTE_CARTLINE(insertion=inside) DELETE_CARTLINE | In the cartBox, it allows to copy/cut, paste and remove the currently selected quote line. The paste action can paste ‘inside’ or ‘below’ the current line (value of the insertion parameter) By default, if no parameter is specified, the paste action is ‘inside’ if the current line is a folder and ‘below’ otherwise. |
| NEW_CARTFOLDER(columnName=ItemSheet) | Allows creating a folder in the quote. The action opens a flyer to fill the name of the folder. The specified column name corresponds to the quote column that will store the name of the folder. Cf. cartBox for more details | |
| ACTIVATE_CURRENT | Redirects the user to the productPage corresponding to the currently clicked product | |
| sparePartsBox | HOTSPOT | Allows highlighting the corresponding Hotspot in the sparePartsViewer (This action can only be inserted in a productRow or Cell) |
| comparePage | PRINT(rmoUserType=rmoUT) | Launches the reporting engine using the XML export of all the products added to the comparator as a datasource and the RMO Report attached to the rootCollection (The userType of the RMO has to correspond to the RMO usertype specified as a parameter of the action) The generated PDF flow is returned to the web browser. |
| APPLICABLE ON | ACTION NAME | DESCRIPTION |
|---|---|---|
| Any Catalog page / component | OPEN_PAGE(pageName=searchPage) [/!\When pageName=comparePage It is possible to have an additional parameter for the OPEN_PAGE action in order to show the number of products added to the comparator on the action button itself |
Allows to redirection to a specific page of the Catalog (searchPage, collectionPage, cartPage or comparePage) |
| CLOSE CLOSE(goTo=cart) [/!\ Action only available when the CP is launched in a Quote context] goTo= cart / cartPage / cart.CPQStepName (e.g. Cart.ReportPage to redirect to the ReportPage of Quote) | Closes the current Catalog session (and goes back to the quote in case of a Quote integration) | |
| BACK | Goes back to the previously accessed page |
Rules for actions associated to products
(i.e. ACTIVATE_CURRENT, CONFIGURE, ADD_TO_CART, CONFIGURE_AND_ADD):
A cell or an actionBox can contain the ADD_TO_CART and/or CONFIGURE and/or CONFIGURE_AND_ADD actions. The availability of these actions depends:
- on the fact that they are present in the layout file
- AND on the CURRENT_ITEM type:
- ADD_TO_CART action will be available if the Product is a SI or a SP both eligible and contained in at least 1 collection of the current Catalog
- CONFIGURE action will be available if the product is
- either a CP both eligible and contained in at least 1 collection of the current Catalog
- Or a SI eligible, contained in at least 1 collection of the current Catalog AND linked to a CP with a ‘configurationLink’
- CONFIGURE_AND_ADD action will be available if the product is a SI eligible, attached to a collection AND linked to a CP with a ‘computationLink’.Note: By default, a product is considered as eligible. However, an Eligibility BRC can be implemented on the item to prevent the user from adding the item to the quote depending on a given context. The Product is still visible and accessible in the Catalog, but the actions are de-activated. If the Eligibility BRC raises a Business Explanation, this message will be displayed as a tooltip on the ressourceOff button.Warning: Beware that you can link a standard item to only 1 configurationLink and/or computationLink.
Note: A Standard Item linked to a Configuration Process via a ‘computationLink’ or ‘configurationLink’ is considered as a Configurable Product by CPQ User Interface.
It means that these products are eligible to the CONFIGURE/CONFIGURE_AND_ADD actions and not to a standard ADD_TO_CART.
When launching the configuration engine via these actions, the CPQ UI passes the identifier of the contextual standard item as a setting of the configuration session:
<cam:Param cpe="CPE.Settings.Session.RefSI" value="workspace/SI/mySelectedSI"/>
HOW TO CALL AN ACTION FROM THE USER INTERFACE?
An action can be called:
either from inside an actionBox
The action box is a reserved area that can be inserted in the most of the predefined CPQ UI boxes. It is possible to add several actions in each actionBox.
| SUB-ELTS | ATTRIBUTES | VALUE |
|---|---|---|
| action | resourceName: identifier of the resource used to give the image representing the action | #IMPLIED (ignored when actionLayout = “button”) |
| SUB-ELTS | ATTRIBUTES | VALUE |
|---|---|---|
| resourceOffName: identifier of the resource used to give the image representing the action when this action is not available | #IMPLIED only used for actions SAVE ADD_TO_CART NEXT_STEP PREVIOUS_STEP PREVIOUS_FORM NEXT_FORM OPEN_FLYER CONFIGURE_AND_ADD ACTIVATE_REPLACEMENT | |
| translationName: identifier of the translation used to give the label of the action | #IMPLIED | |
| actionName: identifier of a standard or a custom action. | #IMPLIED | |
| alignment: gives the location of the action in the box. | left / center / right | |
| event: indicates if the action is triggered by a click, a double-click or onMouseOver | onClick / onMouseOver / onDblClick / tooltip (if not specified = onClick) Note that the tooltip mode can be used with the OPEN_FLYER action. It allows to open a flyer onMouseOver and close it as soon as the mouse pointer moves out the action button. | |
| actionLayout: gives the way the action will be represented in the UI | By default “link” (standard <a> tag), or “button” (<input>tag) |
An action is associated to a translationName and/or a resourceName.
- If the translationName only is present, it is used as a clickable link or as the title of the button.
- If both translationName and resourceName are present, the translationName is used as a tooltip of the clickable resource.
or from a linkedAction
The linkedAction allows to control which kind of action is launched when the end-user clicks on some dynamic elements of the component.
E.g. if a linkedAction is embedded in an itemSheet, the Name and Description of the displayed item becomes clickable and the corresponding linkedaction is launched.
Moreover if the linkedAction is associated to a resource, this resource is inserted into the component and is clickable (the translationName is used as a tooltip).
| SUB-ELTS | ATTRIBUTES | VALUE |
|---|---|---|
| linkedAction | resourceName: identifier of the resource used to give the image representing the action | #IMPLIED |
| translationName: identifier of the translation used to give the label of the action | #IMPLIED | |
| actionName: identifier of a standard or a custom action. | #IMPLIED | |
| event: indicates if the action is triggered by a click, a double-click or onMouseOver | onClick / onMouseOver / onDblClick (if not specified = onClick) |
Predefined action
In this example, we want to add in the user interface a button in order to SAVE the configuration.
- Declare in an actionBox (or an actionFlyer) in the Layout XML file an
<action>element. - Associate to this element the name of the predefined action it will launch (as well as its associated graphical resources).
Example for a SAVE action.
<action actionName="SAVE”… /> - A click on this new button will call the action.
Custom action
In this example, we want to add in the user interface a button in order to activate a given Form Property.
- [Prerequisite – In the Designer]
In you model, create an onCustom Event.
- [Prerequisite – In the Designer]
This event named ‘myEvent_FPActivation’ triggers an action ‘Activate’ on the FP you want to be redirected.
- Declare in an actionBox (or an actionFlyer) in the Layout XML file an
<action>element corresponding to the button we want to add in the interface. - Associate to this element the modeled action it will launch (as well as its associated graphical resources and parameters) via the SEND_CUSTOM_EVENT action
<action actionName="SEND_CUSTOM_EVENT(eventName= myEvent_FPActivation)”… />
- A click on this new button will run all the actions triggered by the model custom event ‘
myEvent_FPActivation’. The custom event corresponds to the FP activation in our example.
HOW TO USE FLYERS?
All flyers (action, RMO, product, compare, form, external) are parameterized inside their parent page (Home, Configuration and/or Summary pages). However, they are called on demand, if triggered by some user actions.
- Declare a flyer in the XML file (in Home, Configuration or Summary Page)
- Position the action triggering the flyer:
The Flyers can be called by the use of a specific action called ‘OPEN_FLYER’.
<action actionName="OPEN_FLYER(flyerName=myFlyer)"… >
This OpenFlyer action uses a parameter that is the name of the flyer that must be opened
- The information displayed in the flyer depends on the type of flyer and its calling context:
| FLYER TYPE | CALLED FROM | CONTENT |
|---|---|---|
| informationFlyer | (*) Any Part | List of currently available messages |
| actionFlyer | FormBox/FPBox/Part | List of actions available for the current object |
| RMOFlyer | FormBox/FPBox/Part | RMO of the currentForm/FP/CP |
| RMOFlyer productFlyer | ValueSelector | RMO of the current BVAL or Product |
| Cell of Sales Breakdown, productLinkBox | RMO of the current item or the current sales breakdown line (depending on the cellExpression) |
| FLYER TYPE | CALLED FROM | CONTENT |
|---|---|---|
| Cell of the Configuration Breakdown | RMO of the current node of the breakdown or the current value (depending on the cellExpression) | |
| SIGFlyer | Cell of Sales Breakdown Or manufacturingBox | Sales Information Grid generated for the current sales breakdown line |
| compareFlyer | Anywhere | Comparison table listing the products that have been added to the CompareList specified as a parameter of the compareBox |
| formFlyer | Anywhere / nestedFormBox | Form indicated in the cpeObject parameter |
The action is de-activated (resourceOffName can be used)<
As the OPEN_FLYER action can call all kind of flyers, the names of these flyers have to be unique in the XML file.
By choosing the ‘auto’ value for the parameters vtPosition and/or hzPosition, the flyers are positioned automatically and relatively to the user mouse pointer.
The following translations are associated to the component:
<translation name="flyer.close"></translation>
allows to modify the label of the flyer close button
Next/Previous policies
For more details please refer to the General Settings section
