Servoy Bean Selector Views

Hey,

is it possible to use the Servoy selectors (Editors) like the Dataprovider selector, media selector or method selector, which are accesible via usual view elements (Label, Textfield, etc.) in a Bean? Is there any support for these kind of selectors with the help of PropertyDescriptorArray of a custom BeanInfo Class? How can I use them?

Kind Regards,
Felix Willnecker

Hi Felix and welcome to Servoy,

you might be interested in my pre-conference Servoy World session about how to build plugins and beans for Servoy.
What you are looking for is in the public API (for Servoy 5.x) http://www.servoy.com/docs/public-api/5xx/index.html

PropertyEditorHint (there is even an example in here!!!)
http://www.servoy.com/docs/public-api/5xx/com/servoy/j2db/dataui/PropertyEditorHint.html
PropertyEditorClass:
http://www.servoy.com/docs/public-api/5xx/com/servoy/j2db/dataui/PropertyEditorClass.html

Hope this helps,

Hey Patrick,

thanks for this great advice. The editor shows up and works great, but I’m having some difficulties setting the variable.

My variable, which should store the form selected by the editor is a String so far. When I set a Form to the property I get an error: “object is not an instance of declaring class”. I tried it with an Object as receiving variable, but then the property does no longer appear in the Servoy developer.

Can you point me to the documentation or explain this error to me?

ignore the last post, the error was something else.

String for the Formname is fine and works