Has anyone here been successfully populating a %Persistent object from calling %LoadFromMemory() with a temp. global?
I have tried using Sample.Person in the SAMPLES namespace. It worked EXCEPT that I have no way to set the id into that Sample.Person objec.
SAMPLES>Merge array(1) = ^Sample.PersonD(1)
SAMPLES>Set obj = ##class(Sample.Person).%LoadFromMemory(1,.array)
SAMPLES>zw obj
obj=1@Sample.Person ; <OREF>
+----------------- general information ---------------
| oref value: 1
| class name: Sample.



.png)

.png)



