UiPath UiPath forms | Dependent Dropdown | Execute Do block on Dropdown Change |Tutorial

  Рет қаралды 3,613

Vajrang

Vajrang

Күн бұрын

Пікірлер: 36
@Ayyjob
@Ayyjob 4 жыл бұрын
Hi Varjang I'm using the following test :new List(of string) from {"aa","bb"} but I got everything double in dropdown like aa bb aa bb any Idea? thanks in advance
@carlorobazza7569
@carlorobazza7569 2 жыл бұрын
After the state and city values have been selected, where are the selected values stored? Are they only in the JSON output? When using select boxes, etc., the selected values are updated in the dictionary. Is it different for drop-down lists? Thanks!
@vajrangorg
@vajrangorg 2 жыл бұрын
There might be changes in implementation, please post it in uipath fourm
@ElWiwif
@ElWiwif 2 жыл бұрын
You rock man!
@vajrangorg
@vajrangorg 2 жыл бұрын
Thank you
@liorhen2769
@liorhen2769 3 жыл бұрын
Hi, don't know what i'm doing wrong I see the right value in log but the value in the dropdown automatically changes to the previous one
@vajrangorg
@vajrangorg 2 жыл бұрын
check with code
@kiruthikaseshaiyan5672
@kiruthikaseshaiyan5672 4 жыл бұрын
Hi Vajrang, what should I do if I need to populate the text box instead of two dropdowns
@vajrangorg
@vajrangorg 4 жыл бұрын
same method instead of sending a list value send as string to a textbox id
@maxim.pechura
@maxim.pechura 2 жыл бұрын
There's undocumented feature to execute the Do block: instance.emit('executeDoBlock', instance.component); But for me the problem is I don't know how to create this on dropdown select change condition
@maxim.pechura
@maxim.pechura 2 жыл бұрын
I'm attempting the following: const updateOnChange = instance.updateOnChange; instance.updateOnChange = function(flags, changed) { if (flags.modified) { instance.emit('dropdownChanged', 'drop'); instance.emit('executeDoBlock', instance.component); } return updateOnChange.call(instance, flag, changed); }
@vajrangorg
@vajrangorg 2 жыл бұрын
This might work
@AshishParjapat
@AshishParjapat 2 жыл бұрын
used this code , but have a problem, the dropdown always shows the last value of the list when the form is loaded, and when i change the value in dropdown, it revert back to the original one which is the last item of the list , and the it shows the log message two times const updateOnChange = instance.updateOnChange; instance.updateOnChange = function(flags,changed){ if(flags.modified){ instance.emit('dropdownChanged','drop'); } return updateOnChange.call(instance,flags,changed); }
@vajrangorg
@vajrangorg 2 жыл бұрын
Think form is getting reset after change
@AshishParjapat
@AshishParjapat 2 жыл бұрын
@@vajrangorg may be but have one more issue , i created a list ={india,USA,Russia} the dropdown is auto populated with Russia
@emili84848
@emili84848 Жыл бұрын
I have the same issue. The solution was to type _dropdown on the variable name in the form collection
@SriRam-oz3lm
@SriRam-oz3lm 3 жыл бұрын
Hi Vajrang Could you please help me with the below scenario For example if I select the State as Goa and city as Margo then if I change the State to Madhyapradesh how to make the city dropdown value Margo to be removed and appear to have only Madhya Pradesh cities
@vajrangorg
@vajrangorg 3 жыл бұрын
while repopulating fields in do block write a condition
@prembhuvishivanya-ie5yv
@prembhuvishivanya-ie5yv Жыл бұрын
@@vajrangorg how to achieve this on Multiple Select drop down . I could see previous selected option as well . If I changed the selected drop down.
@philipstv7341
@philipstv7341 3 жыл бұрын
I have been looking for a solution for a week. Can the same be done for textField? After entering, for example, 3 characters in the textField field, the Do Forms loop looks up the value from the database. Do you know how you can fire up Do loops from fieldText Change? If you know please help.
@vajrangorg
@vajrangorg 3 жыл бұрын
you need to enter text and use any button to trigger do block in form else you cannot do that and you can write code in do block of the form
@philipstv7341
@philipstv7341 3 жыл бұрын
@@vajrangorg Thank you for your response. I thought it could be done without a button. It would be very, very cool. Too bad: /
@maxim.pechura
@maxim.pechura 2 жыл бұрын
Hi Mate Could you maybe post a working project on the uipath community forums? A bit hard without working example. But this dropdown is exactly what I was after.
@vajrangorg
@vajrangorg 2 жыл бұрын
Sure will do it
@martincoronado8829
@martincoronado8829 3 жыл бұрын
can i use the js code inside a datagrid?, two drop down inside of the datagrid
@vajrangorg
@vajrangorg 2 жыл бұрын
Yes you can try
@angelquinz
@angelquinz 4 жыл бұрын
If I choose multiple values to be selected in Dropdown, how can I limit it to only 10 values selected?
@HP.0
@HP.0 3 жыл бұрын
Hello, Were you able to figure this out? if yes, what was the solution?
@angelquinz
@angelquinz 3 жыл бұрын
@@HP.0 wasnt able to figure this out. What I did is i put validation in button properties where it will only show when they put values < 11 :) hope this helps.
@HP.0
@HP.0 3 жыл бұрын
@@angelquinz ok got it, thanks for a quick reply.
@vajrangorg
@vajrangorg Жыл бұрын
Hope this got resolved
@philipstv7341
@philipstv7341 3 жыл бұрын
You have any errors in JavaScript. Did not work.: const updateOnChange = instance.updateOnChange; instance.updateOnChange = function(flags,changed) { if(flags.changed) { instance.emit('dropdownChange','drop'); } return updateOnChange.call(instance,flag,changed) }
@vajrangorg
@vajrangorg 3 жыл бұрын
Yes I did initially pause video at final code that's the correct one
@vajrangorg
@vajrangorg 3 жыл бұрын
6:00 shows you correct code
@philipstv7341
@philipstv7341 3 жыл бұрын
@@vajrangorg thanks, actually :)
@philipstv7341
@philipstv7341 3 жыл бұрын
@@vajrangorg thx :)
8 Login Validator in reframework
26:58
Vajrang
Рет қаралды 34
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
UiPath Advanced RPA Developer UiARD Exam Questions & Dumps 2023
14:27
SkillCertPro Learnings
Рет қаралды 884
THE BEST SOLO STRONG BASE DESIGN 2024
10:21
Kidina
Рет қаралды 9
11 Custom Components creation
29:03
Vajrang
Рет қаралды 44
how to start working on your uipath projects
1:04:01
Vajrang
Рет қаралды 58
The Risks of Fake Experience: What Happens After 2 Years?
3:31
Naresh IT Talks
Рет қаралды 6 М.