Hoppa till huvudinnehållet

Access map 'saved results' in workflow?

Kommentarer

5 kommentarer

  • Permanently deleted user

    I don't believe we have any viewer commands or workflow activities that let you interact with 'saved results'. That could be a post for the Ideas board.

    But one way that you might still be able incorporate saved results is to have the user open their results, and then start the workflow from the context menu on that results panel. There is information in the documentation center here about how to add a workflow to a context menu and have the context token (which in this case would contain the feature or collection of results) passed in:

    https://docs.geocortex.com/workflow/latest/help/Default.htm#wf5/help/run-workflows-in-gvh.htm#Use_a_Context_Menu_Item_to_Run_a_Workflow_with_Inputs%3FTocPath%3DRun%2520Workflows%7CRun%2520Workflows%2520in%2520the%2520Geocortex%2520Viewer%2520for%2520HTML5%7CRun%2520a%2520Workflow%2520with%2520Inputs%7C_____2

    0
  • Permanently deleted user

    Ta Amanda, that looks like a fine workaround. I'll have a crack at it. Cheers

    0
  • Permanently deleted user

    Setting up the context menu (Results List Set Actions) and running with inputs was straightforward, but using the context token less so. Not having much luck with use or introspection of the getworkflowinputs.inputs object. On a set of two features I see:

    =`type is ${(typeof $getWorkflowInputs1.inputs)} and length is ${$getWorkflowInputs1.inputs.length} string rep is ${$getWorkflowInputs1.inputs.toString()}`

    -> (type is object and length is undefined string rep is [object Object])

    or duck typing (feeding input into 'show results' or a geometry op activity like union doesn't like the input ()=$getWorkflowInputs1.inputs OR =$getWorkflowInputs1.inputs[0] ->. "Error", message: "[WF: activity error] Cannot read property 'toJson' of undefined".

    Struggling to find out more about the context token and how to use it, can't find examples or documentation to describe the context token object.

     

    REALLY would appreciate some help! Cheers

     

     

    0
  • Permanently deleted user

    ok, made some progress, discovered the verbose log!

     

    https://docs.geocortex.com/workflow/latest/help/Default.htm#wf5/help/logging.htm

     

    helped a lot. found that to feed to the 'show results' activity from the identify results via a getworkflowinputs activity, the Features input should be

    =$getWorkflowInputs1.inputs.context.esriFeatureSet

     

    (input {{context}} was named "context")

     

    still struggling with squeezing out the geometries for a Union...

    0
  • Permanently deleted user

    in case it helps others... one way to do it...

     

    first use Amanda's suggestion as above.

     

    a method that worked with the feeding the geometries into a union was to use a foreach loop with items =$getWorkflowInputs1.inputs.context.features.value

     

    then in the foreach on the first pass create a new feature set and on subsequent passes feed the geometries into a Union Activity as per this great post by @Matthew Muehlhauser?  : https://communities.geocortex.com/s/question/0D5f200005DNDnWCAX/buffer-multiple-geometries-from-query-task-feature-set

     

    thanks Matthew it was a great help.

     

    I've attached the workflow in case it helps anyone.

    0

Du måste logga in om du vill lämna en kommentar.