Author Topic: Pass CMOD Folder search parameters in URL to Content Navigator 2.0.3?  (Read 4841 times)

Mattbianco

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Hello!

I'm having trouble finding documentation about how to pass search parameters to an OnDemand folder in the URL to Content Navigator. I run ICN 2.0.3 (located behind a separate http(s) proxy (running apache), don't ask me why).

What I would like to be able to do is to from another web application redirect the user to a search/result in a folder. I assume it can be done, at least under normal circumstances (if the user is already logged in to Content Navigator)?
So far, I've found https://www.ibm.com/support/knowledgecenter/en/SSEUEX_2.0.2/com.ibm.developingeuc.doc/eucbd001.html which doesn't tell me enough about Content Manager OnDemand folders.

Has anyone else done this? How?

Kind regards
Matt

lgartside

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Pass CMOD Folder search parameters in URL to Content Navigator 2.0.3?
« Reply #1 on: September 15, 2017, 07:49:28 AM »
Hi Matt

Are you trying to redirect the user directly to the search results? 

The documentation for ICN 3.0+ has additional information about directing to a search screen for CMOD and I have just tested that on my 3.0.1 ICN instance so I think further 'bookmark' support was added for CMOD in ICN 3.0.

I used the following URL: http://myserver:9080/navigator/bookmark.jsp?desktop=BBAdmin&repositoryID=CMOnDemand&docid=aa_Line1&template_name=aa_Line1

The desktop and repositoryID values are self-explanatory the docid and template_name both need to be set to the folder name (which wasn't entirely obvious to me from the documentation).  Using the URL above I was able to open the search screen (folder) directly in the browser window but I had to then populate the search fields and run my search which I think you want to bypass.

The documentation I followed is here: https://www.ibm.com/support/knowledgecenter/en/SSEUEX_3.0.0/com.ibm.installingeuc.doc/eucco106.htm

I think what you are actually looking for is this: https://www.ibm.com/support/knowledgecenter/en/SSEUEX_3.0.0/com.ibm.installingeuc.doc/eucco107.htm - the documentation is a little bit unclear as to whether it would work for CMOD. 

There is a note on the first step that says the step it isn't valid for CMOD (I assume it refers to just the first step) but I noticed that further down the instructions in Step 5, the URL includes repositoryID=P8_or_CMSystem. This could just be something that hasn't been updated for the latest version of ICN as there is an earlier version of this page in the 2.0.3 documentation: https://www.ibm.com/support/knowledgecenter/en/SSEUEX_2.0.3/com.ibm.installingeuc.doc/eucco107.htm  I haven't got time to test this today, but if I have time next week I will try it on my ICN 3.0.1 as I suspect it might not work at all for CMOD on 2.0.3.

Hopefully this is some help - even if it just points you to some useful documentation.

Lisa


lgartside

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Pass CMOD Folder search parameters in URL to Content Navigator 2.0.3?
« Reply #2 on: September 15, 2017, 08:17:40 AM »
Update: My meeting was cancelled so I managed to test the URL with the search parameters (on ICN 3.0.1).  It worked  :D

I built the URL following the instructions in the link that I provided earlier and just added searchCriteria and autoRunSearch onto my previous URL.

http://myserver:9080/navigator/bookmark.jsp?desktop=BBAdmin&repositoryID=CMOnDemand&docid=aa_Line1&template_name=aa_Line1&searchCriteria=[{%22property%22%3A%22Employee+Last+Name%22%2C%22value%
22%3A%22JOHNNY%22}]&autoRunSearch=true

This opened ICN with the search results for where Employee Last Name = JOHNNY displayed (see Image)

Please let me know if it does work in 2.0.3. If not, I'm afraid you may need to wait until you can upgrade to 3.0.

Lisa

Mattbianco

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Pass CMOD Folder search parameters in URL to Content Navigator 2.0.3?
« Reply #3 on: October 02, 2017, 07:53:04 AM »
Thank you so much, lgartside, for taking the time to respond!
I will look into this shortly and share my results.

Mattbianco

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Pass CMOD Folder search parameters in URL to Content Navigator 2.0.3?
« Reply #4 on: October 03, 2017, 01:36:19 AM »
Thank you Lisa!
It was indeed the "docid" and "template_name" parameters that was confusing.

I can confirm that it works excellent in ICN 2.0.3 with a CMOD 9.5 backend.

Opening of the search dialog: works just as you describe (calling bookmark.jsp with the folder name as docid as well as template_name).
Populating it with search parameters: works just as you describe (JSON format, but I didn't need to urlencode it when testing from my browser).
Immediately starting the search: works just as you describe (passing autoRunSearch=true).

Kind regards
Matt

Mattbianco

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Pass CMOD Folder search parameters in URL to Content Navigator 2.0.3?
« Reply #5 on: March 14, 2018, 12:25:18 AM »
I have a follow-up question regarding Content Navigator in front of Content Manager OnDemand (for multiplatforms).

How do I pass a Date range, or an exact date, to folders that default to Between (but also allow Equals)?
If not passing the date, the search will be limited to the last month, which is not what I want.

Anyone have experience with this?

Thanks!
Matt

Mattbianco

  • Jr. Member
  • **
  • Posts: 17
    • View Profile
Re: Pass CMOD Folder search parameters in URL to Content Navigator 2.0.3?
« Reply #6 on: March 14, 2018, 01:15:21 AM »
I found the answer here: https://www.ibm.com/support/knowledgecenter/en/SSEUEX_3.0.3/com.ibm.installingeuc.doc/eucco107.htm
Just submit an array with the two date values:

{"property":"Fakturadatum","value":["2017-09-04","2017-09-04"]}

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Pass CMOD Folder search parameters in URL to Content Navigator 2.0.3?
« Reply #7 on: March 14, 2018, 07:47:48 AM »
It's so awesome when people ask a question, answer it on their own, and post it back to the forums for everyone to benefit from in the future.

Thanks!

-JD.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR