Page 1 of 1

Creating Workflow Form Fields

PostPosted:Thu Dec 12, 2019 5:23 pm
by kouadio
Hi,
I created a form for my workflow. I am stuck with the implementation of some fields and I ask for a hand.
1) An order field that must contain an automatic incremental value.
<input label="Order" name="order" data="order" readonly="false">
<validator type="num"/>
<validator type="req"/>
</input>


2) The second field must contain the name or login of the workflow iniator and can not be modified by the latter
<input label="Ordonnateur" name="ordonnateur" data="ordonnateur" readonly="true" />

3) The third field displays the list of OpenKM users.
I'm using OpenKM version 6.3.6 with a mariadb database under Debian Linux

Re: Creating Workflow Form Fields

PostPosted:Sun Dec 15, 2019 7:13 pm
by jllort
About first field in professional edition we have a plugin option to set a value in fly when showing a form, in community edition you should make something like I explained below ( second field )
https://docs.openkm.com/kcenter/view/ok ... alues.html

About the second field
In the workflow map of variables you must put and Input object like
Code: Select all
<input label="Ordonnateur" name="ordonnateur" data="ordonnateur" readonly="true" />
The variables should be injected in the transition, when you arrive at the task ( form ) the variable must be present in the variables for mapping.

About the thirth field
There are some limitations with community version in metadata select ( for listing user list )
https://docs.openkm.com/kcenter/view/ok ... field.html

In professional edition we have plugin what allows to dynamically connect with third-party databases ( or OpenKM database ) and list data, that is still not present in CE.
https://docs.openkm.com/kcenter/view/ok ... onSQLquery
https://docs.openkm.com/kcenter/view/ok ... nclassName