Skip to main content

Reference another activity from a custom form element?

Comments

2 comments

  • Marc Rempel

    Well, I have found one way to do what I need to do though it might not be the most elegant. I realized that since the custom form element is just a reactjs element, that I can access the viewer window object and then find the needed context that way.

     

    In my case I am using the GVH, so I can do:

     

    0
  • Marc Rempel

    let app = window['geocortex'].framework.applications[0];

     

    And then I am at the app level and can interrogate the map layers, run other workflows, etc.

     

    app.commandRegistry.command("RunWorkflowByUrlAndInputs").execute(workflowArgs);

     

    Anyway, thought that might help someone else in the future.

    0

Please sign in to leave a comment.