I'm having trouble with setting session custom objects and their values from within a dataset using scripting. I've tested that copying the object, pasting into Notepad, making changes, and right-click "Pasting" back into the object does work as intended. I've also tried pasting that into the script itself and then moving that into the session custom object and it also works (see below).
Script:
Session object:
The overall idea is to be able to save the session custom object within a dataset as a string, then have other users be able to load that on their session like a bookmark i.e., create their own bookmarks, load others, and select them from a dropdown like a bookmark. I've tested this by Copying the session object, Pasting into a cell within a dataset memory tag (string column), then scripting a button to move that dataset cell value into the session custom object.
The script overwrites the object and turns it into a session value instead (with the string as its value).
Is there a conversion that needs to happen to that string before it gets assigned to the session custom object when the string is stored within a dataset as a string? Or must this be done in a different way?
I know this can also be done by assigning values to each of the elements of the session custom object within the script and having a column for each value in the dataset, but the end result that this will be used for will have many objects and values. If this could be done by only having to copy the root object itself, it would be a lot simpler.
If anyone has gotten something like this to work and could share their insight, I would greatly appreciate it. Thanks in advance.