On-demand values for Form controls

Hi, Would it be possible to get on-demand values for the form controls from a config file? For example: could we have set the values and labels of the oxy_combobox and oxy_editor to receive the string from a java code which reads a config file? If so, how could I go about doing this? Thanks, Nathan

Hello Nathan, Yes, it's possible. By default, a form control gets its possible values from the schema. You can implement a SchemaManagerFilter [1] which reads a configuration file and contributes with values from that configuration file. In Oxygen version 17.0 we've implemented such a SchemaManagerFilter ourselves [1] (it reads an XML configuration file) and we are already using it for DITA (amongt other frameworks). Inside the blog post Controlled Attribute Values for your DITA Project [3] you can see how this support is actually used for DITA and how you can extend it yourself (if you are using DITA). [1] http://oxygenxml.com/doc/versions/17.0/ug-editor/#topics/dg-author-content-c... [2] http://www.oxygenxml.com/doc/versions/17.0/ug-editor/#topics/configuring-con... [3] http://blog.oxygenxml.com/2015/07/controlled-attribute-values-for-your.html Best regards, Alex -- Alex Jitianu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 7/18/2015 3:53 AM, Nathan wrote:
Hi, Would it be possible to get on-demand values for the form controls from a config file? For example: could we have set the values and labels of the oxy_combobox and oxy_editor to receive the string from a java code which reads a config file? If so, how could I go about doing this?
Thanks, Nathan
_______________________________________________ oXygen-sdk mailing list oXygen-sdk@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-sdk
participants (2)
-
Alex Jitianu
-
Nathan