How to get a value ($item.xxx) from a Link Widget into a collection as URL Parameter

1
0
-1

Hi,

I have a Form which list all current Cases as Collection in a Container and I want to have a Link (or button) Widget on each of them to open a detailled view of the Case in another Page.

I have to pass the caseId which is $item.id as Parameter into the URL of the Link.

The caseId is by example 67296. I've try to put "$item.id" in the URL Parameter of the Link Widget but the resulted link is not http://..../UserDetails?67296 as expected but http://..../UserDetails?0=6&1=7&2=2&3=9&4=7.

Each character of the caseId is separated as enumerated Parameter in the URL, 0=6, 1=7 etc!

Is it possible to have the correct URL which have to be http://..../UserDetails?caseId=67296 ?

Thanks in advance and best regards.

2 answers

1
0
-1
This one is the BEST answer!

Hi Jean-Michel,

I tried to implement your use case and did not get the issue you describe. Either I misunderstood the use case or it might be an issue in the way you create the link (are you sure you are not trying to put a list instead of a string in your lnk?).

You can find the implementation I did with Bonita 7.10.3 Community Edition there: https://github.com/nchabanoles/bonita-forum-answers

Let me know if the implementation example I wrote gave you enough help; or you could share your implementation so that I could give it a look.

HTH

Captain Bonita

1
0
-1

Yes it works!!

I did a lot of combinations to pass the id as URL Parameter without success but it seem I didn't try the easiest one :-)

Thanks a lot and best regards.

Comments

Submitted by nicolas.chabanoles on Thu, 03/19/2020 - 09:51

Glad it is working for you now.

Do not hesitate to up-vote the answer to let people your question has found an answer.

Have Fun!

Captain Bonita

Submitted by rdj_1414624 on Fri, 03/20/2020 - 09:03

What do you mean with "up-vote"?

Notifications