• Search with switch case

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #40815  by Lapo
 
Hello,
I would like to include in the property group, one or more switches homes, so that you can perform searches enforced.
If I choose "A" I want to open automatically only a search window for options "A" and not the other.

Is possible to do?

Thank you so match!
 #40822  by jllort
 
You are talking about a select like:
select 1 -> values A, B
select 2 -> values A1, A2 ( when selected A on previous select ) values B1,B2 ( ... )

Is that ?
 #40824  by Lapo
 
YEs,
this my example :
Immagine.JPG
Immagine.JPG (27.85 KiB) Viewed 3094 times
I would like that,if you choose "Masterplanning" ,automatically open only the "Masterplanning type" window.

Thank you!
 #40830  by jllort
 
What you want is showing "master planing type" or not depending on "document type" selection. Is not a problem of values into, is a problem on showing the select or not ? is that ?
 #40840  by Lapo
 
Hi,

I will try to explain better.

My project's schema is :
schema2.JPG
schema2.JPG (31.81 KiB) Viewed 3076 times
So,i would like that the search follows this "road"

I wish they would open the windows so you can take a guided search.
I do not want that you can choose "construction type" if you selected "masterplaning", because it 's an error in relation to the scheme.


Okm2.JPG
Okm2.JPG (72.97 KiB) Viewed 3076 times

Therefore, I want if I choose "master planning" in the "add group property" appears only "Masterplanning type"
Okm3.JPG
Okm3.JPG (57.23 KiB) Viewed 3076 times
Thank you very match!
 #40851  by jllort
 
The kind of feature you're looking for ( search follow your diagram ) actually is not possible.
My suggestion is you create your own search and integrate into OpenKM. With 1-2 jsp I think you can have it. I can give you the clues for doing it, do you have skill on Java ?
 #40868  by Lapo
 
Thanks,
i would be grateful.
I am not very expert, but i can try with a help from my associate,expert in Java.
 #40882  by jllort
 
First must create a new tab, I suggest a http://wiki.openkm.com/index.php/TabWorkspaceExtension and into set and iframe to load your jsp files.

For building the jsp you should take a look at OKMSearch api, basically the method findPaginated
http://docs.openkm.com/apidoc/com/okm/6 ... earch.html

The most important thing when working with this method is QueryParams bean ( http://docs.openkm.com/apidoc/com/okm/6 ... arams.html ). Start with a basic query and then increase the complexity ( for example start with a query based on "name" with value "*.doc" )

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.