Add external values to oxy_combobox options

Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
vitorhugovm
Posts: 25
Joined: Fri Jan 26, 2024 3:31 pm

Add external values to oxy_combobox options

Post 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
cosminef
Site Admin
Posts: 160
Joined: Wed Aug 30, 2023 2:33 pm

Re: Add external values to oxy_combobox options

Post 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
Cosmin Eftenie
www.oxygenxml.com
vitorhugovm
Posts: 25
Joined: Fri Jan 26, 2024 3:31 pm

Re: Add external values to oxy_combobox options

Post 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
Post Reply