Calling a Java class from javascript framework

Post here questions and problems related to oXygen frameworks/document types.
pramanikhimangshu
Posts: 17

Calling a Java class from javascript framework

Thu Feb 01, 2018 8:44 am

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: 170

Re: Calling a Java class from javascript framework

Thu Feb 01, 2018 11:05 am

Hello,

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

Best,
Cristian

Return to “SDK-API, Frameworks - Document Types”

Who is online

Users browsing this forum: No registered users and 0 guests