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

Mattbianco

  • Newbie
  • *
  • Posts: 8
    • 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

  • Newbie
  • *
  • Posts: 8
    • 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

  • Newbie
  • *
  • Posts: 8
    • 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