GetMapServiceInfo activity with tables
Hi,
I'm looking at ways of making my workflows more robust. One technique is to avoid hard-coding the layerid in service urls (like in a query task). This comes into play when you modify the map service by adding or removing layers, the existing layerids can change, thus breaking your workflow. The 'GetMapServiceInfo' activity can be used to handle this issue, as you can pass in a map service name and dynamically retrieve the ID. As long as you refrain from changing layer names, your workflows will work, even when layerids change, and if you do change the layer name, you are aware of it and can update your workflow. So far so good. The problem is that it does not work with non-spatial data in your service. If you have a table as part of your map service the above activity cannot be used with it. Not sure why Latitude is not supporting this for tables.
Wondering if anyone has a workaround for this? My only idea is to make a restful request to the rest endpoint for the service (using the 'Web Request' activity I guess), and parse out the result to find the id, based on the layer name of interest. Uggh. Other ideas?
Thanks
-
+1 for table query support
0 -
Can anyone tell me if this (ie. the support of non-spatial data with the GetMapServiceinfo activity) was previously supported in old versions of Essentials? I vaguely recall it being so.
Is it going to be supported in future versions?
Thanks.
0 -
Interesting.
I thought I was using tables in mxd's in older versions as well, and I am. BUT...
It works in silverlight viewer NOT html viewer! I did a quick GetMapServiceInfo test with Essentials 4.3.1 and html viewer 2.4.1, silverlight viewer 2.4. It works in silverlight viewer but not html.
0 -
Hi All,
The GetMapServiceInfo activity does not currently support tables in GVH. More details are available here: (https://support.geocortex.com/SupportForums/Thread.aspx?thread=58685&mid=2&pageid=0&ItemID=20&pagenumber=1) https://support.geocortex.com/SupportForums/Thread.aspx?thread=58685&mid=2&pageid=0&ItemID=20&pagenumber=1
--Ryan
0 -
Exactly what I am searching too. I have feature layers (published from ArcGIS Online account).
I want to perform dynamic query operations on those layers based on search values inserted by users (may include non-spatial tables)
As Query Task tool (under ArcGIS server) only accepts mapservice url, I tried retriving it by passing map service id of my feature layer and its name.
I even kept an alert to check values, but variables come out blank.
Simulator throws "Object reference not set for an instance" error when Query Task utility is tested.
Is it becasue am using HTML5 viewer or bcoz i am not using ArcGIS Server to publish map services?
Would appreciate any little help as i m newbie to GE.
Thanks.
0 -
Thank you Ryan for your response. But after this major upgrade, the reference link (you have submitted ) is working no more. Can u please throw some light on how can i query feature layer without capturing map service url? 0 -
Sorry about that broken link, Satyam! You can find the post Ryan refers to here: https://support.geocortex.com/customer/EssentialsGSCForum?sub-nav=forum&main-nav=Essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Workflow&criteria=ALLQUESTIONS&id=90660000000076UAAQ (https://support.geocortex.com/customer/EssentialsGSCForum?sub-nav=forum&main-nav=Essentials&#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Workflow&criteria=ALLQUESTIONS&id=90660000000076UAAQ) 0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
7 Kommentare