Form control - how to replace text using Author Mode Operations?
Posted: Wed May 04, 2022 6:38 pm
Hi,
I want to use the combobox that changes simultaneously two different values (I am using Oxygen 20.1):
1) A @key value of the <author> - this works perfectly with label and value
2) Name of the author within the element <author> - and I cannot achieve that.
What I tried was to add onChange parameter to the oxy_combobox, and then pair oxy_action with onChange with operation, 'InsertOrReplaceFragmentOperation'. However, this does not work:
(My third future step is to replace "Placeholder name" with oxy_xpath that would find the name of the author in another .xml file using @key.)
I also tried other insertLocation xpaths but without success.
Any idea?
Thank you very much in advance!
Jan
I want to use the combobox that changes simultaneously two different values (I am using Oxygen 20.1):
1) A @key value of the <author> - this works perfectly with label and value
2) Name of the author within the element <author> - and I cannot achieve that.
What I tried was to add onChange parameter to the oxy_combobox, and then pair oxy_action with onChange with operation, 'InsertOrReplaceFragmentOperation'. However, this does not work:
Code: Select all
onChange, oxy_action(
name, 'Replace ',
operation, 'InsertOrReplaceFragmentOperation',
arg-fragment, 'Placeholder name',
arg-insertLocation, './text()',
arg-insertPosition, 'Replace' )
);
I also tried other insertLocation xpaths but without success.
Any idea?

Thank you very much in advance!
Jan