Not able to pass Argument between UiPath Apps and Studio!

@Arvind_Kumar1
@Palaniyappan

Hello

I was trying to enter the expression in the Default text field “Processes.UiPath_Apps_Practice.in_InputValue”

but still I am getting Null reference error! Can you help me regarding this!

Continuing the discussion from How to map the arguments in uipath apps:

@AryanS

One confitmation this error you are getting in studio?

If yes…then is the argument value being passed from apps to studio variable?

Then expression above looks like a value is coming from process is being used in the apps…if yes in process did you set the argument direction as out?

Cheers

@Anil_G

Hi Anil

Its “In” type argument, I have cross-checked again!

I just wanted to confirm, in which field are we supposed to enter this Variable to send the text box value to the Process!

  1. Default Text
  2. Hint Text
  3. Masked
  4. Tooltip Text

Thanks & Regards
Aryan

@AryanS

The above is used to access the value coming out of the process but not to send in

If you need to send in a value…say textfield1…then in the process trigger…in the input arguments add screen.textfield1…or something like this which accesses the field and gives to input argument

Cheers

@Anil_G

Actually

I am entering cityname in a textbox on UiPath app and this city name will be used in the process extract values and display them on the created UiPath App!

Please check the screenshot of the app and other parameters:

In the text box to the left of the search button, I am entering “London”, then this value is supposed to be passed to the process value as “in_CityName” as mentioned in the 2nd screenshot!

I can used the Legacy approach for of value binding, but i wanna learn with VB version. Can you help me out?

Command? Where to enter the command? and what steps to follow?

I am really confused!

Thanks Anil

@AryanS

In the new one…there is no value binding…

as mentioned above you have to use the screenname.controlname to access it and attach it to the process trigger

Cheers

OK @Anil_G

I think, I get it now, but when I am trying to write the command like below

then

MainPage.Container.CityName, since the name of the textbox have been modified to the CityName, but its not accepting. How should I go about it?

Thanks
Aryan

@Anil_G

Thanks, I am able to pass the value now.

But, when I am running the process, why does it say process completed but it keeps loading forever?? Is there another setting that’s needed to be configured?

@Everyone

I will drop the details of the steps here that I did, hope it help someone who is also getting stuck on the step!

For sending the input to the process from the application:

  • when creating the trigger -

  • Click on Input Trigger:

  • Processes.ProcessName.inputVariable = PageName.ControlName.Value

For output:

Directly pass the output variable in the Default Text Field::

  • Processes.ProcessName.outputVariable

Thanks @Anil_G It would not have been resolved this quick without you!

1 Like

Loading issue is also resolved!

Need to hide the spinner control at the process completed step otherwise it will keep loading!

2 Likes

@AryanS ,

Thats great news. you are able to fix it.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.