5
Views
5
Comments
Solved
Dropdown value disappear after select

I have a dropdown to show status (New 1 /In Progress 2/Completed 3) and after select one of the option the list change.

For example, default list is 1,2,3, after select 2 ,drop down option change to 2,2,3 and 1 disappear from the list.

I have attached oml file for easier reference.


Demo1.oml

Rank: #287
Solution

Hi Constance 

I understand the problem now. The problem is you set the Dropdown1 variable to the GetTaskStatuses.List.Current.TaskStatus.Id, you should set to SelectedTaskStatusId instead.

If you did this you can even delete the event.

Fixed Oml file attached.

Kind regards,

Demo1.oml

Rank: #287

Hi Constance 

I'm not sure what do you want to do in Dropdown1OnChaned event.

It does not use the selected value but sets the value.

Kind regards,

Rank: #6930

Hi Tom,

What I want to do is set selected value to a local variable and then pass it as input parameter to block.

Thanks. 

Rank: #287
Solution

Hi Constance 

I understand the problem now. The problem is you set the Dropdown1 variable to the GetTaskStatuses.List.Current.TaskStatus.Id, you should set to SelectedTaskStatusId instead.

If you did this you can even delete the event.

Fixed Oml file attached.

Kind regards,

Demo1.oml

Rank: #6930
Rank: #287