WAB: How to run a workflow from a feature popup window?
Which javascript code can I embed in the template property of a Set Feature popup activity in order to run a workflow from a feature popup?
I am close:
- I've added the InPanel widget tot a WAB application. Then I included the same div in the themplate of a Set Feature popup activity:
<div id="dijit__WidgetBase_1" class="jimu-widget-onscreen-icon" widgetid="dijit__WidgetBase_1" title="Workflow" data-widget-name="WorkflowRunner_Panel" style="left: 105px; top: 45px; right: auto; bottom: auto; width: 40px; height: 40px; padding: 0px; z-index: auto;"><img src="/MyApp1/widgets/WorkflowRunner_Panel/images/icon.png?wab_dv=2.8"></div>
When I run the workflow with this activity it wil give me a workflow Icon in the invoked feature popup, but when I click on it, nothing happens. I think I'll have to add an 'onclick' event property to the <div> but I don't know the right code for the event.
It is possible to include an onclick event e.g. onclick="alert('you clicked me');" works.
So I hope it's possible to add code to the event that invokes another workflow.
Is it possible to run another workflow like this and if so, how to do it?
Hope anybody can help me with it. Thanks in advance!
-
I was hoping to do this.
did you have any success and ideally pass a parameter to the workflow
0 -
This is a answer from Geocortex:
I couldn't find any info in our documentation about running a workflow from a popup in Web Appbuilder. However, I did find a note that it does not support run-time inputs, which would be an important part of running a workflow from the context of a popup
· Please post to the Ideas section of the Community or the Partner Portal to recommend this as a useful feature!
I filed an idea fot this: https://communities.geocortex.com/s/ideas#087f20000005Ew1AAE
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer