Page 1 of 1

Adding 2 attributes

Posted: Wed Mar 30, 2016 2:26 pm
by mu258770
Hi team,

We are facing an issue when adding 2 attributes for a dropdown in oxy_combobox().We have done this with single attribute and it worked.

Consider the following example:
A note element has a dropdown with do,stop.When do is selected,in CSS it should reflect as type="other" othertype="Do" (this has to be done dynamically). Please help us in solving this.


Re: Adding 2 attributes

Posted: Wed Mar 30, 2016 3:08 pm
by alex_jitianu
Hi Shabeer,

To make sure I understand it correctly, you want the selection in the combo to set TWO attributes, right? The built-in combo is not able to do that. There are two possibilities that come to mind:
1. a custom form control can alter the document as it desires
2. instead of a combo box use two button form controls, one for "DO" and one for "STOP". Each button is linked to an author action based on the ExecuteMultipleActionsOperation. This operation will execute two ChangeAttributeOperation-based actions (one to update @type and another to update @othertype)

Best regards,