11
Views
7
Comments
Solved
How to creating relationship between dropdown and dropdown tag?

I have 2 dropdown widgets one is dropdown, and another is dropdown tag. They both have same source list. I have to make relationship between them like on selecting dropdown value, the same value automatic selected in dropdown tag. let Authentication is selected, then that authentication tag also comes in dropdown tag. Please give some idea on it, how to proceed, Thank you in advance.


Solution

I checked your application. 
Your description is not completely clear to me, but let me explain you what I understand. 

You have a project dropdown.

On Project selection, you get the task list.

On Task selection you want to select the same task in the dropdown tag? I believe this is your problem. 


If yes, the here is the suggestion.

In Dropdown tag, you will find a property "StartingSelection"


you can set a list variable in this property ( Data type: DropdownOption List, if you provide list which has other data type, you will get a mapping option to map the value appropriately )

If the DropdownOption list's options will be present in your source list (OptionList) it will automatically get selected. 

in your case. 

  1. Create a new local variable and name it "DefaultTaskList" and set the data type: DropdownOption List
  2. handle the OnChange event of Task Dropdown. 
  3. append the select option to the the DefaultTaskList
  4. Set the DefaultTaskList as a StartingSelection of Dropdown tag.

Hope this will help

Champion
Solution

Hi @Samit Sahoo 

I have attached oml please check


Best

Arun

Demo1.oml

Thank you very much, Its working properly.  

Solution

Addition to the above solution 

Please have a look to this

https://personal-gwmkse7u.outsystemscloud.com/Exercise/DropdownTag?_ts=638289897653367478

and attaching the OML, you check the implementation 


DropdownTag.oml

Thank you very much, Its working properly.  

Champion

Hi @Samit 

You need to assign drop-down value in drop-down tag list at onchange event of drop down

Hope it helps you

Arun

Hello @Samit Sahoo 

Here you have to append the selected item from dropdown to the Selected Item List of dropdown tag on the OnChange of dropdown.

Do share your oml if you find any difficulty doing that.

Thanks

Anees

Solution

I checked your application. 
Your description is not completely clear to me, but let me explain you what I understand. 

You have a project dropdown.

On Project selection, you get the task list.

On Task selection you want to select the same task in the dropdown tag? I believe this is your problem. 


If yes, the here is the suggestion.

In Dropdown tag, you will find a property "StartingSelection"


you can set a list variable in this property ( Data type: DropdownOption List, if you provide list which has other data type, you will get a mapping option to map the value appropriately )

If the DropdownOption list's options will be present in your source list (OptionList) it will automatically get selected. 

in your case. 

  1. Create a new local variable and name it "DefaultTaskList" and set the data type: DropdownOption List
  2. handle the OnChange event of Task Dropdown. 
  3. append the select option to the the DefaultTaskList
  4. Set the DefaultTaskList as a StartingSelection of Dropdown tag.

Hope this will help

Champion
Solution

Hi @Samit Sahoo 

I have attached oml please check


Best

Arun

Demo1.oml

Thank you very much, Its working properly.  

Solution

Addition to the above solution 

Please have a look to this

https://personal-gwmkse7u.outsystemscloud.com/Exercise/DropdownTag?_ts=638289897653367478

and attaching the OML, you check the implementation 


DropdownTag.oml

Thank you very much, Its working properly.  

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