AnsweredAssumed Answered

Save a graphic to Local Storage and try to load it

Question asked by miribsystematics-co-il-esridist Employee on Oct 18, 2012
Hi,

I'm trying to save a graphic to local Storage (after converting it to Json).
When I try to reload it, it does not add it. I tried to do a lot of manipulations on the object but nothing helped.
Enclosed with the code that I'm using and a picture that shows that the local storage is OK.
few remarks about the code:
1. When I copy the string from the prompt alert and put it in NotePad, I see question marks at the beginning and at the end of the string.
2. I aslo tried graphicJson = dojo.toJson(graphic.toJson()); as I saw in one of the threads in the forom but it did not help.
3. In order to reproduce the problem, you can:
[INDENT]a. Add a point
b. Click save (at the bottom of the page)
c. clear Graphics (at the upper right side of the page)
d. click load and see that the point is not displayed[/INDENT]
Thanks a lot,
Miri

Attachments

Outcomes