Adding 2 attributes

mu258770
Posts: 132
Joined: Mon Aug 18, 2014 4:11 pm

Adding 2 attributes

Post by mu258770 » Wed Mar 30, 2016 2:26 pm

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.

Regards,
Shabeer.

alex_jitianu
Posts: 763
Joined: Wed Nov 16, 2005 11:11 am

Re: Adding 2 attributes

Post by alex_jitianu » Wed Mar 30, 2016 3:08 pm

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,
Alex

Post Reply