Page 1 of 1

Implementing if clause in Metadata

PostPosted:Fri Apr 16, 2021 8:21 am
by omegaites
HI,
We want if clause in Metadata. Please let us know how to do that.
Example:-
Document type (DropDown)
a) NEW
b) Old
Now if someone closes Old, a text box will open for manual entry. But if someone chooses NEW, no box will be opened. So, if choose old, a text box will be added with Value “OLD”

Please help.

Re: Implementing if clause in Metadata

PostPosted:Sun Apr 18, 2021 6:47 am
by jllort
I think you are talking about select hierarchical relationships https://docs.openkm.com/kcenter/view/ok ... lationship ( but currently we only have implemented in professional edition still not shared in the community edition ).

Anyway if you have more complex logic, then should build your own form screen with JSP and apply there the complex logic. The forms always will come with basic logic, trying to do an implementation that cover all the possible logic is insane ( and a bad idea for the code and probably will not success with all the cases in the world ) ... better - for our point of view - implement the standard and complex logic be implemented as customization -> will work better and fit exactly your requirement

My suggestion is build your own jsp and integrate it with OpenKM with https://docs.openkm.com/kcenter/view/ok ... nsion.html ( how to enable here https://docs.openkm.com/kcenter/view/ok ... sions.html )

I have added an issue to implement extra tab in document, email and folder for better integration https://github.com/openkm/document-mana ... issues/281

Re: Implementing if clause in Metadata

PostPosted:Sat Apr 24, 2021 8:09 am
by jllort
We have implemented extra tab document etc... in the CE ( just added in this pull request https://github.com/openkm/document-mana ... m/pull/282 ), in the rest release you'll get available or you can compile current code to get it.