Page 1 of 1

Build oxy_combobox based on Content Completion values

Posted: Thu Jul 25, 2019 4:57 pm
by Isabelle
Hello everyone,

I am using the Oxygen SDK 21.1.0.2 and I wondered if it is possible to create an oxy_combobox with the values provided by Content Completion.

In the post
Configuring Proposed Values in the Context that the Content Completion was Invoked - SAXON
, we have filter an element regarding the value of an other one.
And now, we want to display those filtered values in a combobox via an oxy_combobx element.

Is it possible or not ?

Regards,
Isabelle

Re: Build oxy_combobox based on Content Completion values

Posted: Fri Jul 26, 2019 8:40 am
by Radu
Hi Isabelle,

If this is for an element's text value (and not for an attribute) probably something like this should work in the CSS:

Code: Select all

element {content: oxy_combobox(edit, "#text");}
because if explicit values are not provided in the combo box it should fallback on the content completion values.

https://www.oxygenxml.com/doc/versions/ ... ditor.html

Regards,
Radu

Re: Build oxy_combobox based on Content Completion values

Posted: Fri Jul 26, 2019 11:15 am
by Isabelle
Hi Radu,

Thanks for your answer but unfortunately it is for an attribute.

Regards,
Isabelle

Re: Build oxy_combobox based on Content Completion values

Posted: Fri Jul 26, 2019 3:05 pm
by Radu
Hi Isabelle,

This should work:

Code: Select all

element {content: oxy_combobox(edit, "@attributeName");}
If you go to the Oxygen Attributes view and double click on the attribute name are there in the editing combo box the values that you expect?

Regards,
Radu

Re: Build oxy_combobox based on Content Completion values

Posted: Fri Jul 26, 2019 3:34 pm
by Isabelle
Hi Radu,

It works fine.
Thank you.

Regards,
Isabelle