How to reference the oxy_combobox list by button
Posted: Mon Sep 30, 2019 7:19 pm
Hi all,
I want to change the combobox values based on a button.
Button A should trigger a different xslt query for the combobox and button B should trigger another query.
The comboboxes are at the text level and not for an attribute.
For eg:-
Oxy combobox:- It has to be by default
Code for button 1:-
Code for button 2:-
Now if anyone clicks on Button E it has to update the combobox xpath
whereas if Button S is clicked , it has to update the xpath fetching S values
Please highlight how to achieve it .
Many thanks in advance for the solution..
Warm regards,
Sia
I want to change the combobox values based on a button.
Button A should trigger a different xslt query for the combobox and button B should trigger another query.
The comboboxes are at the text level and not for an attribute.
For eg:-
Oxy combobox:- It has to be by default
Code: Select all
book:{
content: oxy_combobox(edit, '#text', values, oxy_xpath('string-join(doc("abc.xml")//meta:v[not(matches(.,\'E$\'))],",")'),columns, 30) ;
}
Code for button 1:-
Code: Select all
book:after(101){
content:
oxy_button(
color, #AAAAAA,
action,
oxy_action(
name, 'E',
description, 'E',
operation, 'ro.sync.ecss.extensions.commons.operations.ChangeAttributeOperation',
arg-elementLocation,'//book',
arg-values, 'string-join(doc("def.xml")//meta:v[not(matches(.,\'E$\'))],",")',
arg-removeIfEmpty, false
),
transparent, true,
actionContext, element,
showIcon, true
);
}
Code: Select all
book:after(102){
content:
oxy_button(
color, #AAAAAA,
action,
oxy_action(
name, 'S',
description, 'S',
operation, 'ro.sync.ecss.extensions.commons.operations.ChangeAttributeOperation',
arg-elementLocation,'//book',
arg-values, 'string-join(doc("abc.xml")//meta:v[not(matches(.,\'S$\'))],",")',
arg-removeIfEmpty, false
),
transparent, true,
actionContext, element,
showIcon, true
);
}
whereas if Button S is clicked , it has to update the xpath fetching S values
Please highlight how to achieve it .
Many thanks in advance for the solution..
Warm regards,
Sia