Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Annotation to load combobox items from a external file datasource#23

Open
cortelos wants to merge 2 commits into
AlfrescoArchive:masterfrom
cortelos:master
Open

Annotation to load combobox items from a external file datasource#23
cortelos wants to merge 2 commits into
AlfrescoArchive:masterfrom
cortelos:master

Conversation

@cortelos

Copy link
Copy Markdown

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?

Regards,

André Macedo.

@CLAassistant

CLAassistant commented Jul 31, 2019

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Andre Macedo seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants