Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X
Hello, I need to transfer some data to a session parameter when I click on a link. How can I perform that?
Solved! Go to Solution.
The Link widget doesn't have en event Clicked to bind out. You could use a Button widget with the Link widget (set to invisible in this case). When the user click on the button, execute the service SetGlobalSession..., then call the service Navigate of the Link widget.
Hi Elie, have you already reviewed the default services available under Resources > Current Session Info
Are they not sufficient for your use case? If not, could you please expand on that use case.
Hi Sushant, the problem is more about having an event on a link widget or something like that. Let's say I click on a link widget, how can I trigger one of those function?
Did you try the Event trigger directly on the service setting the global session values, I haven't yet finished testing it yet but you can check if this helps
Thanks for your answer, I'd like to do it the other way:
First you click on the link,
Then put the mashup name (or pass the parameter) to the new mashup.
Sorry I kind of not explained there, so what I basically did is used a Link widget and then i am configuring the event triggers on the service which is getting invoked as Link is clicked. So it kind of follows the same chronological order as your requirement, isn't it? Or have i still got it wrong?
I'll try finish testing this out and come back.
The Link widget doesn't have en event Clicked to bind out. You could use a Button widget with the Link widget (set to invisible in this case). When the user click on the button, execute the service SetGlobalSession..., then call the service Navigate of the Link widget.
Thank you that was what I was doing till now, I wanted something cleaner but it seems there isn't yet.
Thanks for your answers !