cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Mashup parameter reset at every refresh

GM_9528891
Garnet

Mashup parameter reset at every refresh

Hi everyone!
I have a problem with mashup parameters.
More in detail, I have configured a system where the mashups have a bidirectional numeric parameter: at the beginning it is 0, then a service is executed that takes it as input, and if it is 0 it updates it by modifying the mashup parameter.
But when the page is reloaded, the parameter returns to 0.
Why?
Is there a way to 'initialize' and make sure it doesn't reset on every refresh?

Thanks

4 REPLIES 4

Re: Mashup parameter reset at every refresh

Hi @GM_9528891,

 

Indeed by default Mashup Parameters are reset at mashup reload. Have you tried using (persistent) Session Parameters instead ?

Re: Mashup parameter reset at every refresh

what i want to achieve is a sort of id of the mashup, do you have any suggestion? i'm sure that every thing have an identifier, so the mashup(in my case a gadget) have too.

Re: Mashup parameter reset at every refresh

As far as I am aware mashup do not have IDs out of the box (nothing of the sort displayed in XML when exporting a mashup) and cannot be assigned custom properties, only parameters. 

 

You could maybe use the "Description" property of your mashups, which is persisted into the database. Its value can be set and retrieved programmatically using the services SetDescription and GetDescription available on Mashup entities.

Re: Mashup parameter reset at every refresh

Hi @GM_9528891.

 

If one of the previous responses helped you to resolve your issue, please mark the appropriate one as the Accepted Solution for the benefit of others with the same problem.

 

Regards.

 

--Sharon

Announcements

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.