Author Topic: ICN document view url for CMOD reports  (Read 2392 times)

venukotte

  • Newbie
  • *
  • Posts: 2
    • View Profile
ICN document view url for CMOD reports
« on: January 22, 2021, 08:20:31 AM »
Hi Guys,
We are trying to launch icn document view url to view cmod reports from custom application. Here is the test url we are using.

https://server.com/navigator/bookmark.jsp?desktop=testcmod&repositoryId=testcmod&docid=_test_doc_id&template_name=Test_Reports&embedded=true

The question I had is the doc id which we are getting from odwek api from cmod is different than doc id which I found ICN is using to view documents. Is there any encryption ICN uses for doc id to view documents using url?

I really appreciate any insight or help on this?

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: ICN document view url for CMOD reports
« Reply #1 on: January 22, 2021, 12:00:49 PM »
Hi.

Yes, after CMOD v9.5.0.3, DocIDs are now encrypted to not only protect them from view, but also to stop them from being re-used or altered. 

You can find the documentation on ODWEK's ODHit here:  https://cmod.wiki/dox/ODapiDoc/v10.5/com/ibm/edms/od/ODHit.html

-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

rjrussel

  • Full Member
  • ***
  • Posts: 139
    • View Profile
Re: ICN document view url for CMOD reports
« Reply #2 on: January 22, 2021, 02:02:21 PM »
Hello,

OnDemand has two api's to get doc ID's, getDocId() and getOpenDocId(). ICN uses getOpenDocId().

the explanation gets a bit tricky. Forgive me for not going into all the details. The important part is if your trying to build a ICN accessible URL you will need to use the getOpenDocId() api. Also note, be sure that the hostname defined to ICN for the CMOD repository matches what you are using in in your custom applications logon() call, otherwise you will get different doc ids and it will not be accessible by ICN. 

Thanks,
RR

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: ICN document view url for CMOD reports
« Reply #3 on: January 25, 2021, 07:23:23 AM »
And here's a more direct link to CMOD ODWEK's getOpenDocId: https://cmod.wiki/dox/ODapiDoc/v10.5/com/ibm/edms/od/ODHit.html#getOpenDocId--
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

venukotte

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: ICN document view url for CMOD reports
« Reply #4 on: January 27, 2021, 02:40:50 PM »
Thank you all for your responses.

Is there a different icn url for opendocid? if I try to use this url, it is not working.

https://server.com/navigator/bookmark.jsp?desktop=testcmod&repositoryId=testcmod&docid=_open_doc_id&template_name=Test_Reports&embedded=true

rjrussel

  • Full Member
  • ***
  • Posts: 139
    • View Profile
Re: ICN document view url for CMOD reports
« Reply #5 on: February 04, 2021, 08:49:58 AM »
No, same URL. How are you generating the DOCID and creating the URL? I am assuming you have some custom ODWEK application that is generating them?

-RR

CMOD-user

  • Jr. Member
  • **
  • Posts: 15
    • View Profile
Re: ICN document view url for CMOD reports
« Reply #6 on: April 08, 2021, 12:00:34 PM »
Forgive me, but asking the same question.
It used to be
https://www.ibm.com/docs/en/cmofz/9.5.0?topic=reference-document-hit-list-function

http://www.example.com/cgi-bin/arswww.cgi?_function=dochitlist&_server=myzos&_user=web&_password=web&_folder=credit%20card%20statements&account%20number=1000100010009999&date=1%2f1%2f96&date2=12%2f31%2f96&nameOP=256&name=%AA&_sort_field=Account,Account%20Balance,Date&_sort_order=A,D,A&_logoff=1&_html=template.htm

How do we use Navigator URL to view documents or provide a search list based on the following
(a) server name
(b) desktop id
(c)repository ID
(d) Folder ~ docID
(e)search criteria of the fields

https://www.ibm.com/docs/en/content-navigator/3.0.x?topic=client-constructing-url-content-navigator
Example of an IBM Content Manager OnDemand search: http://myserver.mycompany.com:9080/navigator/bookmark.jsp?desktop=AccountsPayable&repositoryId=AP_OD_System&docid=AP_FOLDER&template_name=AP_FOLDER&embedded=true


The example shows docid as "AP_FOLDER"

Using that, I am not getting the URL but an error CIWEB1016.

I have a case on this error and waiting from IBM's help.