Conditional Drop-Down in datagrid

Hi,

I need a conditional drop-down in order to select country, city, district for an attend robot.
I have understood the example in here https://docs.uipath.com/activities/docs/conditional-drop-downs, but the issue is that I need to have it working in a DataGrid or EditGrid, so multiple clients can be added at once, and I just can’t figure it out how to make it work.
If anyone can come with a sample xaml I’ll be forever gratful.

Thanks!

1 Like

Hey @c.ciprian

Kindly check the below…

If this is still not helping you. Please.let us know.

Thanks
#nK

Hi @Nithinkrishna

This is not helping, as I am trying to do the forms for the robot, not the orchestrator.

First of all, the example in here is incomplete https://docs.uipath.com/activities/docs/conditional-drop-downs. You have to look in the json of the form to discover this piece of code that is needed for the example to work, otherwise it’s not updating

"customDefaultValue": "const updateOnChange = instance.updateOnChange;\ninstance.updateOnChange = function(flags,changed)\n{\n  if(flags.modified)\n  {\n    instance.emit('dropdownChanged','drop');\n  }\n  return updateOnChange.call(instance,flag,changed);\n}",

Second, I have built my examples and I’m attaching here: the one without grid is working as expected, but the one with grid is not. Any help is appreciated.

CondDropDown.xaml (10.8 KB)
CondDropDownGrid.xaml (10.5 KB)

2 Likes