OnDemand User Group

Support Forums => OD/WEK & JAVA API => Topic started by: teera_aoo on June 08, 2018, 06:24:21 AM

Title: CMOD/ICN view Line Data report via HTML5 viewer
Post by: teera_aoo on June 08, 2018, 06:24:21 AM
Does anyone can config CMOD to view Line Data report via HTML5 viewer instead of Applet Viewer? (Released since CMOD 10.1.0.2)

I need to known actual steps to setup it with ICN.

Currently, I tried to followed this technote, but still not work.
https://www-01.ibm.com/support/docview.wss?uid=swg22008705
Title: Re: CMOD/ICN view Line Data report via HTML5 viewer
Post by: bruce.mchendry on June 19, 2018, 11:22:50 AM
Hi,
Sorry I can't help but I'm interested in this too. Our java team is pushing an update that is causing an ICN issue that has me looking at migrating v9.5 up to 10.1.0.3. I also saw the HTML5 info. I've asked my developers to take a look at this along with our ICN support team. If I find anything I'll share and also keep an eye on your post. Good luck
Cheers
Title: Re: CMOD/ICN view Line Data report via HTML5 viewer
Post by: B.Rivers on June 20, 2018, 10:03:48 AM

Hello,

Found this:
This new line data HTML5 viewer will only work with ODWEK version 10.1.0.2 or later, so make sure to upgrade ODWEK before attempting to enable this new viewer.
http://www-01.ibm.com/support/docview.wss?uid=swg27050357

Problem
 Edge browser will not be able to open line data files using IBM Content Manager OnDemand HTML viewer.

Resolving the problem
 Use another browser to open line data files if ICN is configured to open the MIME type using IBM Content Manager OnDemand HTML viewer.
Problem
 In IE 11.0.10240.16384 on Windows 10, img tags whose src is a base64 encoded svg will not apply styles embedded in the svg.

Resolving the problem
 Use a browser other than IE11 on Windows 10 systems to avoid this known IE 11 limitation.

Will also be trying this very soon. Brian


Title: Re: CMOD/ICN view Line Data report via HTML5 viewer
Post by: bruce.mchendry on June 20, 2018, 11:38:53 AM
One of the challenges we've had is the fact we use Java with our ICN for viewing reports. We skipped Edge and in the soon-to-be-started Win 10 migration we opted to use IE 11. We also have Chrome but without Java support we turned to IE 11. Now it sounds like that might not work either ? Really makes this a challenge ! I'll be curious to see what guys come up with. I'm trying to engage our browser SME as well.
Cheers
Title: Re: CMOD/ICN view Line Data report via HTML5 viewer
Post by: Karole on November 09, 2018, 08:12:24 AM
Hello All!   Phillip pointed this post out to me and I've just updated him through a PMR and wanted to update here as well for clarification. 

The HTML5 LineDataViewer only works with Safari, Chrome, Firefox, and Microsoft Edge.
Microsoft is not updating the javascript engine in IE11 and because of this, it does not support the HTML5 LineDataViewer.                     
Title: Re: CMOD/ICN view Line Data report via HTML5 viewer
Post by: teera_aoo on March 06, 2020, 12:10:01 AM
Greeting on Y2020.

After I tried with ICN CMOD with LineDataHTML5Viewer on Y2018, we decision to use other solution to view LineData (Maintain LineDataApplet) because I have no time to open PMR with IBM Support.

Good news, in this year I have some more progress on setup this.
After I extract ...\www\viewers\LineDataHTML5Viewer.zip into ICN deployed path ...\WebSphere\AppServer\profiles\AppSrv01\installedApps\mynode\navigator.ear\navigator.war\viewers\LineDataViewer\js and rename Folder to "LineDataViewer"

Configure ICN's viewermaps to use LineDataHTMLViewer.

The viewer has been launched successful but has only black square picture on that. Very funny  ::) :o

Do you have anyone success to deploy LineDataHTML5Viewer? Please share with us, what am I wrong?

Title: Re: CMOD/ICN view Line Data report via HTML5 viewer
Post by: bkhoyt on March 10, 2020, 12:58:21 PM
Do you know how to show the javascript console? There will be some debug information in there that will be useful. You can google how to do this for your browser version.
Title: Re: CMOD/ICN view Line Data report via HTML5 viewer
Post by: rjchavez on March 29, 2021, 10:51:59 AM
I was able to get the HTML5 data line viewer working with ICN 3.0.6 and ODWEK 10.1.0.7 and using Edge/Firefox for vowing line data output.  If anyone is interested, let me know.
Title: Re: CMOD/ICN view Line Data report via HTML5 viewer
Post by: Justin Derrick on March 30, 2021, 10:22:02 AM
We're interested.  Please post more info on the process.  :)
Title: Re: CMOD/ICN view Line Data report via HTML5 viewer
Post by: rjchavez on March 30, 2021, 11:01:18 AM
Note that this installation is on AIX.

My basic process was to upgrade to the latest ODWEK (10.1.0.7) as the HTML5 viewer is included in the update (I was running with ODWEK 9.5).  As you probably already know, ODWEK is no longer provided separately but is part of the CMOD install tar installation.  The readme.txt file included in the CMOD (untared) installation directory details some additional steps required for the new release (https://cmod.wiki/dox/CMOD-v10.1-README.txt).

Steps taken:

1.   Download and install CMOD 10.1 base code (/opt/IBM/ondemand/V10.1) <=== may not be required if already installed.
2.   Download and install CMOD 10.1.0.7 from FixCentral
3.   Update ICN configuration (configmgr.sh) and change ODWEK installation directory to newly installed release (/opt/IBM/ondemand/V10.1/www) then build and deploy
4.   Included in the CMOD installation readme.txt:
     a.   Copy /opt/IBM/ondemand/V10.1/jars/gson-2.8.1.jar to /opt/IBM/ondemand/V10.1/www/api
     b.   Update WAS configuration and add /opt/IBM/ondemand/V10.1/jars/gson-2.8.1.jar to CLASSPATH
     c.   Update CLASSPATH (LIBPATH) in WAS to /opt/IBM/ondemand/V10.1/www
5.   Install GSKIT8.  Instructions included in ODWEK installation readme.txt.  This was an important step for me as ICN was unable to open the repository without it.
6.   Update ICN Customer Property ODWEK_INSTALL_DIR to new /opt/IBM/ondemand/V10.1 directory

To activate the HTML5 viewer:
1.   Create a directory in the WAS infrastructure to hold the new viewer contained in LineDataHTML5Viewer.zip (e.g. <WAS install>/AppSrv01/installedApps/TEST/navigator.ear/navigator.war/viewers/LineDataViewer)
2.   Unzip the /opt/IBM/ondemand/V10.1/www/viewers/LineDataHTML5Viewer.zip file into the …/navigator.war/viewers/LineDataViewer directory previously created

3.     Finally, update ICN Viewer Map using ICN admin to use Line Data HTML Viewer

I've been able to view line-data reports in both Edge and FireFox (something I was never able to do with the java line data applet  :) )

Of course, this is a summary of the install/implementation process.  There are many details left out such as WAS cleanup, bounce, etc.
Title: Re: CMOD/ICN view Line Data report via HTML5 viewer
Post by: spond on March 31, 2021, 06:38:36 AM
Thanks for the thorough instructions!

Just a note - if you have installed OnDemand to the default installation directory as it appears you have (/opt/IBM/ondemand/V10.1), there is no need to add the ODWEK_INSTALL_DIR in the ICN Custom Properties section.
Title: Re: CMOD/ICN view Line Data report via HTML5 viewer
Post by: jsquizz on March 31, 2021, 03:48:57 PM
Note that this installation is on AIX.

My basic process was to upgrade to the latest ODWEK (10.1.0.7) as the HTML5 viewer is included in the update (I was running with ODWEK 9.5).  As you probably already know, ODWEK is no longer provided separately but is part of the CMOD install tar installation.  The readme.txt file included in the CMOD (untared) installation directory details some additional steps required for the new release (https://cmod.wiki/dox/CMOD-v10.1-README.txt).

Steps taken:

1.   Download and install CMOD 10.1 base code (/opt/IBM/ondemand/V10.1) <=== may not be required if already installed.
2.   Download and install CMOD 10.1.0.7 from FixCentral
3.   Update ICN configuration (configmgr.sh) and change ODWEK installation directory to newly installed release (/opt/IBM/ondemand/V10.1/www) then build and deploy
4.   Included in the CMOD installation readme.txt:
     a.   Copy /opt/IBM/ondemand/V10.1/jars/gson-2.8.1.jar to /opt/IBM/ondemand/V10.1/www/api
     b.   Update WAS configuration and add /opt/IBM/ondemand/V10.1/jars/gson-2.8.1.jar to CLASSPATH
     c.   Update CLASSPATH (LIBPATH) in WAS to /opt/IBM/ondemand/V10.1/www
5.   Install GSKIT8.  Instructions included in ODWEK installation readme.txt.  This was an important step for me as ICN was unable to open the repository without it.
6.   Update ICN Customer Property ODWEK_INSTALL_DIR to new /opt/IBM/ondemand/V10.1 directory

To activate the HTML5 viewer:
1.   Create a directory in the WAS infrastructure to hold the new viewer contained in LineDataHTML5Viewer.zip (e.g. <WAS install>/AppSrv01/installedApps/TEST/navigator.ear/navigator.war/viewers/LineDataViewer)
2.   Unzip the /opt/IBM/ondemand/V10.1/www/viewers/LineDataHTML5Viewer.zip file into the …/navigator.war/viewers/LineDataViewer directory previously created

3.     Finally, update ICN Viewer Map using ICN admin to use Line Data HTML Viewer

I've been able to view line-data reports in both Edge and FireFox (something I was never able to do with the java line data applet  :) )

Of course, this is a summary of the install/implementation process.  There are many details left out such as WAS cleanup, bounce, etc.

Thank you for these steps. I'm actually in the process of implementing this myself. You gave me a head start haha!

Can confirm that your steps work perfectly