Calling a Java class from javascript framework

Post here questions and problems related to oXygen frameworks/document types.
pramanikhimangshu
Posts: 17
Joined: Fri Dec 29, 2017 11:16 am

Calling a Java class from javascript framework

Post by pramanikhimangshu »

Hi,
I have this java class:
ro.sync.ecss.extensions.dita.topic.table.InsertTableOperation

doOperation signature of the java class::

Code: Select all


doOperation(AuthorAccess paramAuthorAccess, ArgumentsMap paramArgumentsMap)
The arguementmap has a argument

Code: Select all

Object localObject1 = paramArgumentsMap.getArgumentValue("cellFragment");
I want to give value to this cell fragment while calling it from javascript framework.js file for dita document.
Current call in java script:

Code: Select all


var insertTableAction = new sync.actions.InsertTable(
originalInsertTableAction,
"ro.sync.ecss.extensions.dita.topic.table.InsertTableOperation",
editor,
[allowed types],
[allowed widths]);
actionsManager.registerAction('insert.table', insertTableAction);
Any help how to pass cellFragment argument value.
Thank You.
Regards,
Himangshu.
cristi_talau
Posts: 496
Joined: Thu Sep 04, 2014 4:22 pm

Re: Calling a Java class from javascript framework

Post by cristi_talau »

Hello,

In order to specify a cell fragment you can try one of the suggestions in this forum topic: topic15398.html .

Best,
Cristian
Post Reply