205
Views
4
Comments
Solved
How to use interactive dropdown search for update scenario

When I used outsytems widget interactive dropdown search by allowing multiple select as TRUE for creating records its working fine, but when I tried to do the same for updating scenario, its appending the selected list with dropdown list but in UI its not showing any selected mark in checkbox.

 This is happening because the dropdown option list(Struct) doesn't have an attribute called IsSelect or any boolean value. I looked into many other multi select dropdowns but all of them have IsSelect, Is there any way we can achieve this without using forge component?

2020-09-21 08-42-47
Vincent Koning
Solution

Although I don't understand what creating records has to do anything with selecting items in a dropdown I think you don't use the widget correctly. 

If this is the latest version of OutSystems UI's DropdownSearch then you need to use the events exposed. With the event OnChanged you get the list of selected items. If no items are selected the list is empty. If you want items to be selected at start you can use the input "StartingSelection".

I hope this helps you solving your issue.

2022-03-25 09-38-41
shalini shivaram

I tried this logic, I made a mistake with get after fetch logic. No its working. Thank you


2022-08-03 04-32-50
Ravi Punjwani

Hi Shalini,

Have you tried to debug your application and see where the flow of execution is going?

It might be worth trying that out to understand this behaviour. Since it all depends on what have you implemented in your code (UI / client / server actions), it will be a bit difficult to recommend any changes without looking at your code.

Kindly share your OML file for any suggestions specific to your problem.

Your requrements are quite simple, and won't need any additional forge component it seems.

2022-03-25 09-38-41
shalini shivaram

Hi @Ravi Punjwani, i did a mistake in after fetch logic. now i corrected it and it working fine

thank you 

DropDownSample.oml
2020-09-21 08-42-47
Vincent Koning
Solution

Although I don't understand what creating records has to do anything with selecting items in a dropdown I think you don't use the widget correctly. 

If this is the latest version of OutSystems UI's DropdownSearch then you need to use the events exposed. With the event OnChanged you get the list of selected items. If no items are selected the list is empty. If you want items to be selected at start you can use the input "StartingSelection".

I hope this helps you solving your issue.

2022-03-25 09-38-41
shalini shivaram

I tried this logic, I made a mistake with get after fetch logic. No its working. Thank you


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