AnsweredAssumed Answered

Annotation to load combobox items from a external file datasource

Question asked by cortelos on Aug 30, 2014
Latest reply on Aug 30, 2014 by jbarrez
Hi,

I build a new annotation which make possible to load combobox property items from a datasource (at this moment only filebased is support, but it's easy to provide new ways). With annotation it's now possible to load values on the combobox wich depends of some external sources. Here is an example:


@Property(type = PropertyType.COMBOBOX_CHOICE, displayName = "Destination Device", required = true)
   @Help(displayHelpShort = "Destination Device", displayHelpLong = "The name of the destination device to transfer the file.")
   @PropertyItems({ "OLD 1", "OLD 2" })
   @PropertyItemsDataSource(filename="D:/valueList.txt")
   private String destinationDevice;


Any interest in include this in the designer source code?

I put two patchs in my dropbox account with the changes I made.

https://www.dropbox.com/s/ioetbuybnm6abxp/0001-Annotation-to-load-combobox-items-from-a-external-fi.patch?dl=0
https://www.dropbox.com/s/282j3tnng7uysws/0002-Annotation-to-load-combobox-items-from-a-external-fi.patch?dl=0




Regards,
André Macedo.

Outcomes