Skip to main content
13-Aquamarine
June 4, 2024
Solved

Regarding selected items

  • June 4, 2024
  • 1 reply
  • 2804 views

I have 2 dropdowns one has parent equipments and second has child equipments.

What I want to achieve is when I select parent equipment on one dropdown we should be able to view all child equipments on another dropdown PFA

 

Issue I am facing is when I select parent equipment no child equipments are showing but when I select other parent equipment and then go back again I am able to see all child equipments of that specific parent equipment.

 

I have a data table from where I am getting all the data. What I think issue is the second drop down is always showing data of previous parent equipment which I selected. I am using selected text change service is there any other way

 

PFA 

Best answer by Rocko

Better use "SelectedRowsChanged" event on the service for the parent equipment to trigger the service call giving you the child equipment.

This second service would take the selectedRows from the result of the first service an input (or selectedText from the widget).

1 reply

Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
June 4, 2024

Better use "SelectedRowsChanged" event on the service for the parent equipment to trigger the service call giving you the child equipment.

This second service would take the selectedRows from the result of the first service an input (or selectedText from the widget).

13-Aquamarine
June 5, 2024

Hello ,

I really want to use dropdown widget so that there will be only two drop downs and once we select child equipment only the selected parent of that equipment will be visible.

Rocko
19-Tanzanite
June 5, 2024

1) For clarification I did not suggest to replace the widget I suggest to bind execution to an event from the service instead of the widget.

 

2) First you said "when I select parent equipment on one dropdown we should be able to view all child equipments on another dropdown".

    Now you say "once we select child equipment only the selected parent of that equipment will be visible".

    These are two different requirements.