Content of a variable in the URL property of a link

1
0
-1

Hello everybody,

I'm trying to configure a button link like in the example of this video: https://www.youtube.com/watch?v=fxmVQ84k0EM (at 1h 2min 20 seg)

I have followed the same steps, but I can't make the property "URL" to retrieve the content of the variable processDef[0].id like in the example. I am not sure, but maybe it works differently in the latest versions of Bonita. I am using Bonita 7.10.3.

On the oher hand, I can show the content of {{processDef[0].id}} dynamically placing a text field of the form, without problems. I can show this content on the property "Text" of the link field, as well.

I would like to place the content of ../API/bpm/process?p=0&c=10&f=name=ProcessName in the URL of a button link (or the content of any variable, in general) to instantiate a process, but I don't know how.

Thank you in advance,

Pedro

1 answer

1
+1
-1

Hi,

You may use a Javascript variable myUrl like this:

return `http://host?myParam1=${$data.myVar}&myParam2=${$data.myVar2}`

And bind myUrl to the URL properties of your link.

HTH

Romain

Notifications