Interaction between map and work flow
Hi All,
I am working on a work flow. After executing the QueryTask and SelectFeatures, there are several results returned. I am wonderting whether this an activity in the toolbox to allow user to select one feature in the returned feature set and then go to the next activity in the sequece. Currently I am using the DoWhile and a boolean variable as a workaround. The loop will break until user selects one feature from the selections.
Best,
Yeming
-
If I understand you correctly, can't you just pass the list of returns into a Data Item List... then put that into a form? Then the user can pick a value.
0 -
Ryan - Thanks for your suggestion. That is a good point. But what I need is that after that list is displayed, user needs to pick one (only one) from the list and the one picked will be used in the next activicity.
0 -
I guess what I do is list in the form some sort of unique ID (ex: OBJECTID) that corresponds with the table results. Then, pass that variable back into a query task to feed just the one record into your next activity.
So, Query Task > Select Features > For item in queryTaskResults.Features (<Graphic> for loop) > assign your item's attributes (OBJECTID) to a list or a collection > populate your DataItem List with said list or collection > Data Item List into ListBox on Form activity > get object variable from the form > pass into Query Task > end result should be one record > next activity
0 -
This is a great suggestion. I will try tomorrow and keep you posted.
BTW, no idea why Munwhan Gim's reply does not show here. But I guess it is also good to know that "New GE and GVS version (which is be out there soon) has a new activity called 'Result Picker' with which you can pass back the sub-set of results from the client to the WF." as he said.
Thanks you both very much.
Best,
Yeming
0 -
Hi Ryan - I have tried the method you suggested this morning. It works perfectly! I listed what I have done for other users who may also find it useful.
/customer/servlet/servlet.FileDownload?file=00P6000000eluKBEAY
So I used "FeatureSetToDataItemList" to convert featureSet queried from Query Task to DataItemList and use this as the "Input Data" for Listbox in the "DisplayForm". Because the selection mode is "Single", I declared an Object variable to accept the selected value from Listbox which is put in the "Output Arguments". In order to make the "DisplayForm" modeless, I added "Extract" which is part of the GVS layout to the "Workflow Container Name". I aslo added a button to the "DisplayForm" to wait users' conformation to proceede to the next activity.
Ryan/Munwhan, thank you very much for your help again. I guess this should be one of the best workarounds before the "Result Picker" in the new GE and GVS got releasesd.
0
Please sign in to leave a comment.
Comments
5 comments