Hello, I was able to decompile the original base DatacapWebPlugin jar and locate some missing files but it did not help much. As IBM has done changes to dojo and ICN package and old custom plugin does not work.
it's sad that there is no documentation about all the IBM changes that has been done so we are still troubleshooting to resolve the custom plugin issue.
Original Message:
Sent: Thu December 07, 2023 04:39 AM
From: Rahul Patidar
Subject: how to determine the JavaScript error in ICN plugin?
Hi Vivek,
I am also facing same issue after Upgrading Datacap to 919 from 916 and ICN to 3.0.13, working copy of custom plugin is throwing error same error batch.js not found.
I tried many things like restructing the custom plugin to DcSamplePlugin provided in datacap installer but nothing worked.
Please let us know if your issue is resolved and steps involved in it .
Thanks,
------------------------------
Rahul Patidar
Original Message:
Sent: Thu October 12, 2023 02:49 PM
From: Vivek Arya
Subject: how to determine the JavaScript error in ICN plugin?
hello, I am getting a similar java script error when i deployed my working custom plugin in 9.1.9 env.
An error occurred when evaluating the JavaScript for the DatacapValidationsPlugin plug-in.
Dev tool says -
GET http://chws6884:9081/navigator/datacap/model/Util.js 404 (Not Found)
I have decompiles the IBM datacap 919 plugin (DatacapWebPlugin.jar) and see that the Util.js files exists.
\WebContent\datacap\model\Util.js
Can someone highlight what am missing.
Thanks,
Vivek
------------------------------
Vivek Arya
Original Message:
Sent: Tue July 13, 2021 08:29 AM
From: Community Support Admin
Subject: how to determine the JavaScript error in ICN plugin?
thanks for the guidance...got it working.
here is the code for myPlugin.js
define(["dojo/aspect"], function(aspect) {
aspect.around(ecm.model.Item, "getBookmark", function (originalGetBookmark) {
return function (item, version, desktopId, repositoryId, repositoryType, templateName, wcProxy) {
var url = originalGetBookmark(item, version, desktopId, repositoryId, repositoryType, templateName, wcProxy);
url = url.replace(/repositoryType=p8($|&)/, "");
url = url.replace(/template_name=\w*($|&)/, "");
if (url.indexOf("vsId=") >= 0) {
url = url.replace(/docid=[\w|%|-]*($|&)/, "");
}
url = url.replace(/&$/,""); //above occasionally leaves trailing amper
return url;
}
});
});
empty myPlugin.css
#IBMContentNavigator(ICN)
#Support
#SupportMigration