Overriding / Enrich arguments in defined actions
Posted: Thu Oct 05, 2023 8:21 pm
Hello,
We're using Author web 25.1.0.0 version.
From the javascript, we want to call an operation
https://www.oxygenxml.com/doc/versions/ ... soperation
Its purpose is to perform a sequence of operations defined in the framework via the list of actionIds passed as parameter.
This works well for fragment insertion actions with fixed arguments.
The complexity of our requirement is that the various operations to be performed depend on the input data carried by the javascript.
In fact, we need to enrich certain fragments to be inserted with javascript information.
Example of a called XML operation defined in the framework:
We want to take advantage of the framework's existing mechanism for defining actions and operations, but also be able to override certain arguments OR enrich certain arguments with information contained in the javascript.
Does this sound feasible?
Thanks for your help,
Johann
We're using Author web 25.1.0.0 version.
From the javascript, we want to call an operation
https://www.oxygenxml.com/doc/versions/ ... soperation
Its purpose is to perform a sequence of operations defined in the framework via the list of actionIds passed as parameter.
This works well for fragment insertion actions with fixed arguments.
The complexity of our requirement is that the various operations to be performed depend on the input data carried by the javascript.
In fact, we need to enrich certain fragments to be inserted with javascript information.
Example of a called XML operation defined in the framework:
Code: Select all
<a:operationid="InsertFragmentOperation">
<a:arguments>
<a:argumentname="fragment"><entry><para>${valueFromJavascript}</para></entry></a:argument>
<a:argumentname="insertLocation">ancestor-or-self::entry[1]</a:argument>
<a:argumentname="insertPosition">After</a:argument>
</a:arguments>
</a:operation>
Does this sound feasible?
Thanks for your help,
Johann