Home Forum Blog Market Events Resources
Showing results for 
Search instead for 
Do you mean 
Highlighted
Frequent Contributor
Posts: 76
Registered: ‎02-19-2016

Tips for working with a serialized list.

[ Edited ]

1. Retrieve a serialized array from database, and deserialize it into a list.

2.  Edit/Add data

3. Reserialize and send it all back.

 

What are the steps needed to do this?  If this is possible at all.

 

I am able to retrieve the data, and also reserialize it.  I am just not able to edit or add data.

Super Contributor
Posts: 573
Registered: ‎07-16-2007

Re: Tips for working with a serialized list.

Could you give more information?  You need to know how to add/edit or you are getting an error?

 

If you are asking how, on the event that triggers the save back to the database you would use the foreach condition.  For each item that has been added or changed, serailze it to a container like a hidden text field.  For each item that has been deleted, don't serialize it.  Once all of your objects have been searilized, save the created collection stored in your container back to the database.

Frequent Contributor
Posts: 76
Registered: ‎02-19-2016

Re: Tips for working with a serialized list.

Ah yep,   what was undoing me is that I forgot to call the action 'Apply changes to row' before moving to a new row.