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 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…

https://docs.uipath.com/activities/docs/advanced-controls-form-designer

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 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)

1 Like