Re: [oXygen-user] [OXYGEN-9493] Load external data into form control?

2023-10-20 Thread Scott Prentice

Thanks, Radu!

That looks like an interesting solution .. will give it a whirl.

...scott


On 10/18/23 8:33 PM, Oxygen XML Editor Support (Radu Coravu) wrote:


Hi Scott,

If you just configure using the CSS a combo box to edit the values of 
an attribute, by default those values will be gathered either from the 
DTDs (if you have defined a choice of values for the attribute in the 
DTDs) or from our content completion configuration file which can use 
XSLT to gather values from another location. Maybe this blog post by 
my colleague Alex will help:


https://blog.oxygenxml.com/topics/controlledAttributeValues2.html

Regards,

Radu

Radu Coravu
Oxygen XML Editor
On 10/19/23 03:06, Scott Prentice wrote:


I'm refining some metadata form controls for a custom framework, and 
it would be ideal if I was able to load the values and labels for a 
combobox from an external file (XML or preferably, JSON) rather than 
hard-coding these values into the CSS. It seems that this may be 
possible with xpath_eval(). Is anyone aware of any examples of this, 
or am I heading down a rabbit hole?


I'll keep poking at this, but thought I'd see if anyone had thoughts 
on this effort.


Thanks!
...scott



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user


Re: [oXygen-user] [OXYGEN-9493] Load external data into form control?

2023-10-18 Thread Oxygen XML Editor Support (Radu Coravu)

Hi Scott,

If you just configure using the CSS a combo box to edit the values of an 
attribute, by default those values will be gathered either from the DTDs 
(if you have defined a choice of values for the attribute in the DTDs) 
or from our content completion configuration file which can use XSLT to 
gather values from another location. Maybe this blog post by my 
colleague Alex will help:


https://blog.oxygenxml.com/topics/controlledAttributeValues2.html

Regards,

Radu

Radu Coravu
Oxygen XML Editor

On 10/19/23 03:06, Scott Prentice wrote:


I'm refining some metadata form controls for a custom framework, and 
it would be ideal if I was able to load the values and labels for a 
combobox from an external file (XML or preferably, JSON) rather than 
hard-coding these values into the CSS. It seems that this may be 
possible with xpath_eval(). Is anyone aware of any examples of this, 
or am I heading down a rabbit hole?


I'll keep poking at this, but thought I'd see if anyone had thoughts 
on this effort.


Thanks!
...scott



___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user
___
oXygen-user mailing list
oXygen-user@oxygenxml.com
https://www.oxygenxml.com/mailman/listinfo/oxygen-user