Hi Christopher, Thank you for your reccemend on debugging, I will try this.
Hi Ramakopal, You can use normal linux's gzip to do that.
.
Original Message:
Sent: Mon April 14, 2025 08:06 AM
From: Ramagopal Medam
Subject: ICN Plugin does not updated from fist version
Hello Christoph,
How to do compress JS files in plugin? Do you recommend any specific library for this ?
------------------------------
Ramagopal Medam
Original Message:
Sent: Mon April 14, 2025 02:15 AM
From: Christoph Sünderkamp
Subject: ICN Plugin does not updated from fist version
Hi Teera,
great that you have found the error your plugin.
It's a good idea to compress the Javascript sources. However, you can also load the js sources directly for development. This also makes debugging easier.
To do this, specify the URL parameter ...navigator/?debug=true.
You can specify which script is loaded in which mode in your plugin main class (in PluginSample this is the following: com.ibm.ecm.extension.sample.SamplePlugin):
getScript and getDebugScript.
For small plugins, where compression may not be appropriate, you can also load the js source directly:
public String getScript() {
return getDebugScript();
}
------------------------------
Christoph Sünderkamp
Original Message:
Sent: Fri April 11, 2025 01:58 AM
From: Teera Wattanapongsakorn
Subject: ICN Plugin does not updated from fist version
Thank you everyone.
I have founded root cause of this issue.
When I modified SamplePlugin.js, I need to re-gzip the javascript into SamplePlugin.js.jgz again. Because ICN Plugin execute from SamplePlugin.js.jgz, not from SamplePlugin.js.
------------------------------
Teera Wattanapongsakorn
Original Message:
Sent: Tue March 25, 2025 04:18 AM
From: Teera Wattanapongsakorn
Subject: ICN Plugin does not updated from fist version
I have tried to develop ICN Plugin to add new context menu action. This's for get meta-data in FileNet document and call to external application with parameter. (Ex. Document number)
I used sample in https://github.com/ibm-ecm/ibm-content-navigator-samples/tree/master/samplePlugin
It can test this sample plugin, and it can show menu action properly. But when I tried updated code inside plugins jar and upload to ICN.
It seems plugin always use previous version of code, it's not updated to my new code. I'm not sure how I complete upload new code.
I tried both update jar / delete and upload jar in ICN's admin but it still not updated to new one.
For more question, where is uploaded ICN plugin stored in WebSphere application server? (I tried to find entire WebSphere's directories but can't find it)
ICN Plugin screenshot:

I have upload and save:

I already have commented this line of code in new jar:

------------------------------
Teera Wattanapongsakorn
------------------------------