Page 1 of 1

Add external values to oxy_combobox options

Posted: Mon Sep 02, 2024 10:54 pm
by vitorhugovm
Hello!

Is there a way fill the values property of oxy_combobox in CSS by using a Java function?
I wanted to receive these options through an HTTP GET.

Thanks!
Vitor

Re: Add external values to oxy_combobox options

Posted: Tue Sep 03, 2024 4:33 pm
by cosminef
Hello,

To achieve dynamic filtering of the values for the oxy_combobox, you can use the SchemaManagerFilter interface. Specifically, you can utilize the filterAttributeValues method [1]. This method allows you to filter the list of attribute values that are proposed by the editor's content completion schema manager.

[1] https://www.oxygenxml.com/InstData/Edit ... teContext)

Best,
Cosmin

Re: Add external values to oxy_combobox options

Posted: Tue Sep 03, 2024 11:07 pm
by vitorhugovm
Hello Cosmin!

In this case I'm editing the text inside the element, not an attribute.
I used the class you mentioned, but altered the filterElementValues function instead, it worked!

Thank you very much!
Vitor