Display Version On-the-fly?
Is there a way to display a gdbVersion of a layer, dynamically, via Workflow? My PM wants his users to be able to edit a user-defined version in the Silverlight Viewer. I know how to create a version on the fly, have a user choose an existing version, and write features to that version via the Web Request Activity.... But, the feature service is published using the sde.Default version. So, how is it possible to switch the layer defintion and visually see these records other than as a graphic layer? I can show the graphics (using the Query Task and populating the GDB Version argument), but that doesn't really help me because I need editing capabilities on that specific version.
Is this even possible? Has anyone figured out how to do this? Of course, the PM wants full-blown editing capabilities for the users' versions via the GSV interface!
thanks,
Ryan
-
Berand,
Thanks for the snippet - I'll look into that. I was wondering how you were using that 'featureLayer.GdbVersion = "version 2";' syntax in your original post. Can this code be run via a workflow, whereas a user can choose their version of interest? Essentially, I need to show the records of a version, and have the user edit their vertices and/or attributes.
As for the versions on the fly... I am just running a quick GP task to get the username and append a date stamp, to make a unique version. So, the user has a version to write specific records to, which works, I just can't show them or utlize the info other than a graphics layer in the SLV. I can see them all in ArcMap. Picking an existing version works in a similar way... A quick GP Task is run to allow the user to select a version that starts with his/her name.
I may hit you up for some specifics about the custom module you have. I'd like to know if what I am trying to achieve is even possible, before I go down this road though... Anyone?
Ryan
0 -
Hi Berend,
If you able to share some instructions on how to use your custom module for versioning, can you email me at rkelley@blm.gov ? This would be very helpful.
thanks in advance,
Ryan
0 -
Hi Berend,
I am sorry to ask for additional hand-holding. Have you already written a class or module for this activity? It sounds like you've already written something and have tested it. "It is easy enough to build a module that sets a version on a layer, e.g. 'featureLayer.GdbVersion = "version 2";', and this will actually show features from that version on the map." - I am a total beginner in VS and don't even know where to begin writing this up, assuming that is what I need to do from the sample code you provided. Anyway, any additional help or existing files you can pass along would be greatly appreciated.
Ryan
0
Please sign in to leave a comment.
Comments
3 comments