Page 1 of 1
Search with switch case
PostPosted:Wed Nov 04, 2015 8:36 am
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!
Re: Search with switch case
PostPosted:Thu Nov 05, 2015 7:20 pm
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 ?
Re: Search with switch case
PostPosted:Fri Nov 06, 2015 10:02 am
by Lapo
YEs,
this my example :
Immagine.JPG (27.85 KiB) Viewed 4285 times
I would like that,if you choose "Masterplanning" ,automatically open only the "Masterplanning type" window.
Thank you!
Re: Search with switch case
PostPosted:Sat Nov 07, 2015 10:21 am
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 ?
Re: Search with switch case
PostPosted:Wed Nov 11, 2015 10:10 am
by Lapo
Hi,
I will try to explain better.
My project's schema is :
schema2.JPG (31.81 KiB) Viewed 4267 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 (72.97 KiB) Viewed 4267 times
Therefore, I want if I choose "master planning" in the "add group property" appears only "Masterplanning type"
Okm3.JPG (57.23 KiB) Viewed 4267 times
Thank you very match!
Re: Search with switch case
PostPosted:Fri Nov 13, 2015 3:01 pm
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 ?
Re: Search with switch case
PostPosted:Mon Nov 16, 2015 8:51 am
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.
Re: Search with switch case
PostPosted:Wed Nov 18, 2015 12:52 pm
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" )