Extract Data GP - HTML5 2.2 vs Silverlight 2.2
Per an example a few years ago, that we are still using, the code below returns all of the layers in the "ChoiceList" of layer to clip in the GP service we have. We have a Silverlight Viewer and an HTML5 viewer, both using the same workflow and same GP service.
In Silverlight, ALL 27 of the layers in this list get retrieved. In HTML5, only 5 do. It doesn't have anything to do with the format of the form, as I am asking for a count before the form comes up. How can this be? (See screen shot too).
gpInfo.GetParameterByName("Layers_to_Clip").ChoiceList.Cast(Of String).ToArray()
/customer/servlet/servlet.FileDownload?file=00P6000000elzPMEAY
-
I am having the same exact issue. All of my layers show up in Silverlight but only 5 show up in HTML5. Did you ever find a solution for this?
0 -
I had the same issue too. I decided to just hard code in the layer names and build my list that way. I had to do a few mod's to the workflow, but at least it works now.
0 -
Thanks Ryan. I just ended up doing the same. I created an input argument in the workflow to hold the string of comma seperated layers and I put those values into the worflow wizard in Essentials Manager for that argument so that they would be passed in. Then I just split the string into an array and the rest of the workflow is pretty much the same.
0 -
Is this still an issue in 2.4.1?
I am cross-checking functionality between the Silverlight Viewer and HTML5 and noticed that I'm only returning a handful of layers from the HTML5 viewer version... Whereas the Silverlight version returns the correct number of layers to extract. I have not yet dove into the rhyme/reason for the layers returned in the HTML5 viewer, but as of this thread, the only option seems to be to hard-code the layer names into the list?
0
Please sign in to leave a comment.
Comments
4 comments