Hoppa till huvudinnehållet

Is it possible to Run a command/workflow from an Alert box

Kommentarer

7 kommentarer

  • Halil Siddique
    or a Display Form.
    0
  • Permanently deleted user
    Hello Halil,

     

    Can you expand on what you are trying to accomplish?  A command or workflow can be run from another workflow but not from within an Alert activity.  You would typically use a RunExternalCommand activity before or after the alert.

     

    Thanks,

     

    Wayne Richard

     

    Latitude Geographics Group Ltd.

     

    Head Office: 300 – 1117 Wharf Street  Victoria, BC Canada V8W 1T7

     

    Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com 

     

    Developers of Geocortex web-based mapping software | www.geocortex.com

     

    An Esri Platinum Business Partner

     

     
    0
  • Halil Siddique
    HI Wayne,

     

    We have several layer themes set up on our internal site, each layer theme also has a specfic map extent that it is related to.

     

    I have created a workflow that switches layer theme, based on the value that is passed down, and then zoom's to the relavant map extent.

     

    What I would like is on my alert box or display form,a list of various layer themes available, so when the user clicks on the "link" (consisting of 'command:runworkflowbyid=SwitchAndZoom=LayerThemeName')  the workflow runs.

     

     
    0
  • Permanently deleted user
    Hi Halil,

     

    Thank you for the clarification.  You would want to use a Display Form activity and the hyperlinks would be set in the runtime modifications section of the Display Form.  The Assign activity in the runtime modifications section would look something like

     

    form.Find(Of HyperlinkFormItem)("Hyperlink1").Uri = "command:runworkflowbyid=SwitchAndZoom=LayerThemeName"

     

    and

     

    form.Find(Of HyperlinkFormItem)("Hyperlink1").HyperlinkText = "Zoom to " + LayerThemeName

     

    These are just vague examples and have not been tested.  

     

    Regards,

     

    Wayne Richard

     

    Latitude Geographics Group Ltd.

     

    Head Office: 300 – 1117 Wharf Street  Victoria, BC Canada V8W 1T7

     

    Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com 

     

    Developers of Geocortex web-based mapping software | www.geocortex.com

     

    An Esri Platinum Business Partner

     

     
    0
  • Halil Siddique

    Hi Wayne,

     

    This doesnt seemt to work, the string is added to the address bar "command:runworkflowbyid=SwitchAndZoom=EppingForest"  and tries to load that string as a page, rather then actually loading the workflow.

     

     

    Any other ideas?

     

    Thanks
    0
  • Permanently deleted user
    Hi Halil,

     

    I have re-read your requirements,  it seems to me that you would not need to run an additional workflow and you can accomplish what you want by staying within the same workflow.  Are you intentionally wanting to run a separate workflow?  Using the RunExternalCommand with "SwitchToLayerTheme" as the "Command Name" will allow you to switch layer themes within the same workflow.  You would need to add branching logic to select the correct theme based on the users selection but I don't think you would need to run an additional workflow.  If you do, "Invoke Workflow" would be the activity to use.

     

    For complex queries like this you may want to create a support case, in your case via our partner in your area.

     

    I hope this helps.

     

    Regards,

     

    Wayne
    0
  • Halil Siddique
    Hi Wayne,

     

    I've got it to work using buttons (as mentioned here https://support.geocortex.com/essentialsGSCForum?criteria=ALLQUESTIONS&dc=Geocortex_Viewer_for_HMTL5&feedtype=SINGLE_QUESTION_DETAIL&id=90660000000GuF2AAK&main-nav=essentials&sub-nav=forum#!/feedtype=SINGLE_QUESTION_SEARCH_RESULT&id=90660000000CkdgAAC), so I have multiple buttons, depending on which button  is clicked, the correct layer theme and zoom to the specific extent will be selected.
    0

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