• Creating Workflow Form Fields

  • OpenKM a de nombreuses fonctionnalités interessantes, mais demande un minimum de configuration pour être pleinement exploité.
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).
 #49394  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
 #49428  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

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.