Skip to main content

Close a form from an external activity

Comments

1 comment

  • Luuk Schaminée
    I solved it with the answer from John Nerge in Michael Bishop's question "Close workflow results in data region".

     

    I added a RunExternalCommand in the workflow that closes the Dynamic External form with the Command "DeactivateView" and the parameter being the Id from the External Activity form which was added in the modules section of the Desktop.json.js.

     

    I added the module configuration for my Dynamic Activity (based on an example which can be found in the support site) which I copied from my desktop.json.js.

     

    {

     

            "moduleName": "CustomForm",

     

            "moduleType": "quickStart.customform.CustomForm",

     

            "libraryId": "CustomForm",

     

            "configuration": {},

     

            "views": [

     

              {

     

                "id": "CustomFormView",

     

                "title": "Wijzigingen",

     

                "viewModelId": "CustomFormViewModel",

     

                "visible": false,

     

                "markup": "Modules/CustomForm/CustomFormView.html",

     

                "type": "quickStart.customform.CustomFormView",

     

                "region": "ResultsRegion",

     

                "configuration": {}

     

              }

     

            ],

     

            "viewModels": [

     

              {

     

                "id": "CustomFormViewModel",

     

                "type": "quickStart.customform.CustomFormViewModel",

     

                "configuration": {}

     

              }

     

            ]

     

          },
    0

Please sign in to leave a comment.