Zum Hauptinhalt gehen

pass field value from Viewer's feature details hyperlink to workflow's query task

Kommentare

4 Kommentare

  • Permanently deleted user

    First of all, check the Gecortex Essentials Administrator Guide (page 40: Section 8.4.5 Objects Tokens). only {$Geometry} and other Attributes can be used with RunWorkflowWithArguments command. You cannot use the {$Feature} or {$Graphics}.

    Secondly, Read page 43, Example for 8.5.1 Viewer Commands Hyperlinkgs.  QueryStringKeys is passed as the Arguments to the Workflow. So could you check you declare your QueryStringKey as the Arguments before using it?

    Thirdly, since it is a Argument you declared and received from the Hyperlinks its value, you don't need to use the Curly Brace on your workflow to use it.

    For example, if you configure <a href="command:RunWorkflowWithArguments?workflowId=Workflow1&parcelId={PID}&geometry={$Geometry}">Run Workflow</a>

    1. Declare Arguments named "parcelId" and "geometry" with their DataType String and Geometry respectively

    2. use 'parcelId' as it is. For example, in your WhereClause, you can assign like --- whereClaluse = String.Format("PID = '{0}'", parcelId). So then, PID value of the Feature should be passed to the Workflow via 'parcelId' Argument. Same does 'geometry'

    0
  • Permanently deleted user

    Thank you Munwhan, I appreciate the response and your help. I updated the Hyperlink in the feature description

     <a href="command:RunWorkflowWithArguments?WorkflowID=FindRFParentAsset&amp;pAssetID={PARENTASSETID}">Run Workflow</a>

     I only want to pass the PARENTASSETID to the workflow, I declared a string variable pAssetID.   in my where clause, I have to String.Format("PARENTASSETID = '{0}'", pAssetID), so pAssetID is the value that should be the PARENTASSETID field value passed in from the query string. Somehow, when i put an alert before the query task in the work flow, and run the work flow from the viewer, it shows  PARENTASSETID ="

    In your reponse,  "So could you check you declare your QueryStringKey as the Arguments before using it ?" How do I declare the querystringkey as the arguments before using it? 

     

    Thank you and regards,

     

    0
  • Permanently deleted user

    It should be Arguments not a Variable.

    (1) open up your workflow using WorkflowDesigner

    (2) On the bottom, there are three tabs: Variables, Arguments, Imports.

    (3) click 'Arguments', and add an Argument with the same name as your QueryString Key.

    0
  • Permanently deleted user

    Thank you Munwhan, It works after adding the pAssetID as an Argument in my workflow. Thank you for helping out!

     

    Regards,

     

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.