Creating Workflow Form Fields

OpenKM a de nombreuses fonctionnalités interessantes, mais demande un minimum de configuration pour être pleinement exploité.

Moderator: dedisoft

Forum rules
Avant de poser une question, merci de regarder la documentation du wiki ou d'utiliser la fonction recherche du forum. Et rappelez vous que nous n'avons ni boule de cristal ni possibilité de lire dans les pensées, aussi pensez à spécifier quelle version d'OpenKM vous utilisez ainsi que la version du navigateur web et du système d'exploitation. Pour de plus amples informations lisez Comment reporter un bug efficacement (anglais).
Post Reply
kouadio
Expert Boarder
Expert Boarder
Posts: 84
Joined: Wed Jan 09, 2019 9:26 am

Creating Workflow Form Fields

Post 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
jllort
Moderator
Moderator
Posts: 11443
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Creating Workflow Form Fields

Post 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
Post Reply