top of page
OmniStudioFactBg.png
Writer's picturePuja Kumari

Flexcard Datatable in Omniscript

When we want to use dataTable inside an omniscript and then pass the selected data in the dataJson.


Here are the steps to achieve this:


1) Create a Flexcard and drag the dataTable element into it.


2) When we click on each checkbox, it fires an event “selectrow” (this is the standard event name, which we must use exactly to listen to it). To listen to this event, we will create an LWC.


3) In the selectedRows array, we will contain all the selected rows. Finally, using the omniApplyCallResp() method, we will set them back to the omniscript JSON.


4) LWC HTML will include the flexcard that contains the added dataTable.


5) Finally, we have to add LWC in the Omniscript.


On Preview, we will be able to view the dataTable and when we select it, it will be added to the DataJson.


531 views0 comments

Recent Posts

See All

Comments


bottom of page