How to execute RunWorkflowByUrlAndInputs command from Markdown hyperlink?
I am trying to run a workflow from within another workflow, preferably from a markdown hyperlink.
It works fine to execute other workflows by using a form button and a RunWorkflow activity. However, to create a more pleasent Form Layout, I want to use markdown image hyperlink instead of buttons. Is it possible to execute the RunWorkflowByUrlAndInputs (GVH) or workflow.run (GWV) commands from hyperlinks? I also need to pass input arguments along with the command.
I am looking for solutions both for GVH and GWV, GVH being the main priority.
Regards, Martin
-
Hi Martin,
It's not possible to run a workflow via a hyperlink. It has to be a button. However, you can use markdown for the button caption. You could make the button appear as a hyperlink using CSS. The Inject CSS activity can be used for this.
In GVH, you could do something like this:
.gcx-forms-buttonBar1 Button { background: none!important; border: none; padding: 0!important; font-family: arial, sans-serif; color: #069; text-decoration: underline; cursor: pointer; }(Where "buttonBar1" is the id of your button bar in the form.)
Note that Geocortex Web uses a different HTML structure. I don't think it includes the IDs of the elements, but perhaps you could select the appropriate button another way.
0 -
@Martin Simonsen Bjørkenes? , I learned today that Geocortex Web 5.11 introduced the id on the elements, so you can target that as well.
There is also a styleName property which you can set on a Form Element to specify a CSS class to add to it. This is currently supported in GVH but not Geocortex Web. It will be added in an upcoming release.
0 -
Thank you Ken! I was not aware of the markdown capabilities of the button caption. It works just great to display icons on the buttons. I will experiment with injected css as well to see what we can achieve there.
0 -
You're welcome. Glad I could help!
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
4 Kommentare