You are here:
insOsMultiInstanceChildProducts Lightning Web Component
The insOsMultiInstanceChildProducts Lightning web component displays two levels of insured items, and coverages for the second level of insured items, in a quote OmniScript.
For example, for a commercial quote, this component displays:
-
All the Location insured items (such as 500 Maple Drive and 123 Elm Street)
-
For each Location, all the related Building insured items (such as Warehouse and Factory)
-
For each Building, all the related eligible coverages (such as Earthquake and Wildfire)
Here's a preview of the OmniScript step for configuring buildings:
-
Location insured items (1)
-
Building insured item (2)
-
Building coverages (3)
The component lets users edit attributes configured with "Is Configurable" selected, and it hides attributes configured with "Is Hidden" selected.
Here's a closer look at the OmniScript step for configuring buildings:
insOsMultiInstanceChildProducts Custom Lightning Web Component Properties
A guided flow that walks users through the configuration of a commercial root product typically uses enableEdit, initJSON, initAction, and rePriceAction custom Lightning web component properties.
For commercial product quote flows, you typically use initAction to configure the getRatedProducts service. This service fetches the product JSON to feed into insOsMultiInstanceProducts. In OmniScript steps:
-
An initAction configures the
InsProductService: getRatedProductsservice to fetch product JSON and feed it into insOsMultiInstanceProducts. -
insOsMultiInstanceProducts displays the root, parent, and child insured items, as well as the parent insured item coverages. A user configures and reprices the parent insured item coverages and attributes in this LWC. The user's changes are passed to the next step of the flow as initJSON.
-
insOsMultiInstanceChildProducts uses the product JSON passed in from the previous step as initJSON to display the child insured items and their coverages. Here is where a user configures and reprices the child insured item coverages.
When you configure the insOsMultiInstanceChildProducts Lightning web component, configure the reprice method and its options in the JSON Editor in custom Lightning web component properties.
Property |
Details |
|---|---|
enableEdit |
Use enableEdit to enable insured item and insured party attribute edits in insOsMultiInstanceProducts. Note:
In an OmniScript step that calls insOsMultiInstanceProducts, add enableEdit as a custom Lightning web component property using the format enable-edit, and define it as true. |
|
|
initJSON |
Use initJSON as an alternative to remote calls. It passes the entire product JSON structure as the data source to a Lightning web component. The insOsMultiInstanceChildProducts Lightning web component often uses initJSON. Add initJSON as a custom Lightning web component property using the format init-json. In this example, insOsMultiInstanceChildProducts takes the product JSON passed to it from the previous step. |
|
|
initAction and rePriceAction |
For initAction, configure the optionsMap and inputMap that get passed to For rePriceAction, configure the optionsMap and inputMap for In the Custom Lightning Web Component Properties pane, click Edit Properties as JSON to configure initAction and rePriceAction. |
|
|

