46
Views
4
Comments
Solved
On Selecting Multiple dropdown options accordion should display

In the below oml, I have dropdown tags for select stationary. How to display Accordion for every stationary I select?

SchoolSupplies.oml
2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Shalini,

For the mentioned use case, you can follow the below implementation approach.

  • Define a seperate block to encapsulate the Accordion implementation
  • Introduce a list input parameter to the Block
  • In the Block, define a List widget mapped with the input list parameter value and define an accordion within the List widget
  • Reference the same Block inside the parent screen Form widget
  • Map the DropdownTags selected list value to the Block List input parameter value

To better understand, refer to the attached .oml file

I hope this helps you!


Kind regards,

Benjith Sam

SchoolSupplies.oml
2022-03-25 09-38-41
shalini shivaram

Benjith Sam, I appreciate your detailed explaining. Thank you

Regards, 

Shalini

2020-01-08 08-43-00
Rahul Kumar
Solution

Hi Shalini,

Apart from above solution. 

Just put your Accordion  items in list and the source of that list will be your multiselected list variable.

You can also check my oml.  


Regards,

Rahul

SchoolSupplies-2.oml
2022-03-25 09-38-41
shalini shivaram

Hi Rahul,

It was so very easy to implement your solution. Thanks

Regards, 

Shalini

2021-03-18 21-03-15
Benjith Sam
 
MVP
Solution

Hi Shalini,

For the mentioned use case, you can follow the below implementation approach.

  • Define a seperate block to encapsulate the Accordion implementation
  • Introduce a list input parameter to the Block
  • In the Block, define a List widget mapped with the input list parameter value and define an accordion within the List widget
  • Reference the same Block inside the parent screen Form widget
  • Map the DropdownTags selected list value to the Block List input parameter value

To better understand, refer to the attached .oml file

I hope this helps you!


Kind regards,

Benjith Sam

SchoolSupplies.oml
2022-03-25 09-38-41
shalini shivaram

Benjith Sam, I appreciate your detailed explaining. Thank you

Regards, 

Shalini

2020-01-08 08-43-00
Rahul Kumar
Solution

Hi Shalini,

Apart from above solution. 

Just put your Accordion  items in list and the source of that list will be your multiselected list variable.

You can also check my oml.  


Regards,

Rahul

SchoolSupplies-2.oml
2022-03-25 09-38-41
shalini shivaram

Hi Rahul,

It was so very easy to implement your solution. Thanks

Regards, 

Shalini

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.