Annotation to load combobox items from a external file datasource
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2014 08:29 PM
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:
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....
https://www.dropbox.com/s/282j3tnng7uysws/0002-Annotation-to-load-combobox-items-from-a-external-fi....
Regards,
André Macedo.
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....
https://www.dropbox.com/s/282j3tnng7uysws/0002-Annotation-to-load-combobox-items-from-a-external-fi....
Regards,
André Macedo.
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2014 02:32 PM
Patches are easiest to discuss using pull requests on https://github.com/Activiti/Activiti-Designer