Build oxy_combobox based on Content Completion values

Post here questions and problems related to oXygen frameworks/document types.
Isabelle
Posts: 142
Joined: Fri Jan 20, 2017 1:11 pm

Build oxy_combobox based on Content Completion values

Post 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
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Build oxy_combobox based on Content Completion values

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Isabelle
Posts: 142
Joined: Fri Jan 20, 2017 1:11 pm

Re: Build oxy_combobox based on Content Completion values

Post by Isabelle »

Hi Radu,

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

Regards,
Isabelle
Radu
Posts: 9051
Joined: Fri Jul 09, 2004 5:18 pm

Re: Build oxy_combobox based on Content Completion values

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Isabelle
Posts: 142
Joined: Fri Jan 20, 2017 1:11 pm

Re: Build oxy_combobox based on Content Completion values

Post by Isabelle »

Hi Radu,

It works fine.
Thank you.

Regards,
Isabelle
Post Reply