Invoke JS Action through the operation defined in SDK
Posted: Tue Oct 17, 2023 12:38 pm
Hi,
I am trying to implement two things and would like to know if there are any solutions for this.
Karthick
I am trying to implement two things and would like to know if there are any solutions for this.
- I would like to call the JS defined action from the Java code defined on the SDK's authoroperation Below is the snipped that i used and i am not able to determine the JS action in the map
Map<String,Object> map =authorAccess.getEditorAccess().getActionsProvider().getAuthorExtensionActions();.
- I am trying to read a response from the author operation, but the default method uses a "void" return type. And how do i read response if i could use a different class with the below snippet
editor.getActionsManager().invokeOperation(
'com.boeing.rsuite.oxygen.EditContentBear',
function() {
console.log('Done!');
});
Karthick