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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Edited data binds, but reload wipes it away

HN_10673076
2-Explorer

Edited data binds, but reload wipes it away

Hi,

In my mashup, Grid 1 contains a data table with an editable "QTY" column. When I edit a value, the table updates accordingly. Grid 2 is linked to the edited data from Grid 1, but when I reload the Chrome page, the rows in Grid 2 disappear.

What could be causing this?

I've attached a screenshot for reference.

 

Thanks in Advance!!

3 REPLIES 3

Hi @HN_10673076 , the selected item information will disappear after you refresh the page.

I think you may use session parameters to keep the data even after a refresh of the page.

E.g., Bind the selected data of Grid 1 to a session parameter, then bind this session parameter to Grid 2

* The session parameter should be accessible as long as the session is alive.

 

Please refer to the ThingWorx Help Center page for more information:

https://support.ptc.com/help/thingworx/platform/r9/en/#page/ThingWorx/Help/Mashup_Builder/DataServicesandLinking/SessionParameters.html

All your changes exist only in your browser. You can easily see that in your browser's DevTools > Network -- there will be no server calls as you edit your grid. You need to persist those changes, so that they survive page reloads. The most common way to do that would be to bind your edited data as a parameter to some service, and trigger this service either on each edit, or when all edits are finished. In that service you would write this data back into the same storage, where you read it from.

 

/ Constantine

Hi @HN_10673076 

It appears that there are answers to your question.  For the benefit of other Community Members who may have the same question, it would be great if you could designate one of them as the Accepted Solution.

In the event that this response did not answer your question, please post your current status so that we can continue to support.

Thanks for using the PTC Community!

Regards,


Charles

Announcements


Top Tags