Removing a dropdown in conref

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

Removing a dropdown in conref

Post by mu258770 » Wed Jun 08, 2016 12:33 pm

Hi team,

I have created a dropdown for an element <hazardstatement>.My requirement is to remove the dropdown when conref is added for <hazardstatement> in CSS. I tried many changes but the issue is not solved.My current version is oXygen 17.0 . Please help me in solving this issue.

Thanks,
Shabeer

mihaela
Posts: 220
Joined: Wed May 20, 2009 2:40 pm

Re: Removing a dropdown in conref

Post by mihaela » Wed Jun 08, 2016 2:32 pm

Hi Shabeer,

Can you please give us more details about your requirements?
When you say that you have created a dropdown in an hazardstatement element you mean that you have added a form-control in the CSS?

Best Regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com

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

Re: Removing a dropdown in conref

Post by mu258770 » Wed Jun 08, 2016 3:58 pm

Hi Team,

For hazardstatement dropdown we have used oXygen built in CSS function oxy_combobox.

Code:
oxy_combobox(edit, "@type", columns, 10, editable, true, values, "primary, secondary, ");

Regards,
Shabeer

mihaela
Posts: 220
Joined: Wed May 20, 2009 2:40 pm

Re: Removing a dropdown in conref

Post by mihaela » Wed Jun 08, 2016 5:53 pm

Hi Shabeer,

Here is the way you can set the combobox in a hazardstatement element, only when it does not have the conref set:

Code: Select all


*[class~="hazard-d/hazardstatement"]:not(*[conref]) {
content: oxy_combobox(edit, "@type", columns, 10, editable, true, values, "primary, secondary, ");
}
Best regards,
Mihaela
Mihaela Calotescu
http://www.oxygenxml.com

Post Reply