Zum Hauptinhalt gehen

How to call a command in the HTML viewer using ExternalActivityBase

Kommentare

1 Kommentar

  • Berend Veldkamp
    So, I found out how this works just after I posted this :-)

     

    What you need to do is register an external handler, e.g. var dispatcher = <geocortex.workflow.DefaultActivityDispatcher>this.app.getWorkflowActivityDispatcher(); dispatcher.registerExternalIdHandler("MyCommand", this.executeMyCommand); The called method gets two parameter passed in: the context and the dispatcher: private executeMyCommand(context: geocortex.workflow.ActivityContext, dispatcher: geocortex.workflow.ActivityDispatcher) { }

     

    Now I have just one more question: What is the best way to implement this? Currently I have everything inside the module class, but I'm not sure if that's the recommended way to do it.
    0

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