Query bookmarks from Essentials REST Endpoint
Does anyone know how to query bookmarks from Essentials REST? I have created several bookmarks in Essentials. I would like to choose a bookmark from a list in a display form and then zoom to the extent of the bookmark that is chosen. I just don't know how to obtain the id of the bookmark from the REST Endpoint. I know I can use the Bookmarks module to accomplish this but I would like to do it this way in order to add more tasks after the user zooms into the area of interest.
-
'WebRequest' activity with Uri 'bookmark rest endpoint' with parameter 'f' = 'pjson', will give oyu byteArray which you need to parse through to get what you want to have.
Assign this encoding.GetString(byteArray1, 0,byteArray1.length) to jsonString varaible whose type is string.
Assign Geocortex.Workflow.Runtime.Serialization.SerializationUtility.JsonDecode(jsonString) to jsonObject whose type is Object
Now you need to loop loop the object after convert jsonObject to Dictionary<string, object> variable.
Refer to another article https://support.geocortex.com/SupportForums/EditPost.aspx?thread=58196&forumid=20&mid=2&pageid=0&pagenumber=1 to find the information from converted Dictionary object, or http://support.geocortex.com/SupportForums/Thread.aspx?pageid=0&mid=2&ItemID=20&thread=55234 article.
I heard that you do the last job with the new GE 4.3.0 since we can utilize 'Newtonsoft.Json.dll' which is already on the Workflow Designer.
wish this help you out.
Munhwan
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar