Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specification Macro Task - Show how to implement an IPropertyEditor #4

Open
thomasguillard opened this issue Sep 3, 2020 · 4 comments

Comments

@thomasguillard
Copy link

An example to show how to create a custom property editor on a Specification Macro Task.

Something like the Barcode Type Property of the Generate Barcode Task from the Image PowerPack.
https://docs.driveworkspro.com/Topic/IppGenerateBarcode

@amaraldev
Copy link

Hi Thomas! I have an issue with the Specification Macro Task properties...

I'd like to be able to create a dropdown property with custom values based on a DW array string (i.e.: "value 1|value 2|value 3") for selecting string values like an enum without to use a numeric value or a typed string.

@thomasguillarddriveworks
Copy link
Member

Hi @amaraldev !
Nice! As you saw we've created this issue earlier this year so we can ship an example on how to create a dropdown-like property.
I'll update this issue when we do so, so you should get notified when it's available.
I saw you sent a message in support before commenting here and that we sent you a few follow-up questions. I'll be monitoring your reply to the support ticket to see what you're after exactly.😉
In the meantime, feel free to check our SDK documentation, what you want to look for is something like implementing the IListPropertyEditor Interface, its dedicated page even has an example to get started if I recall correctly.

@amaraldev
Copy link

Thanks @thomasguillarddriveworks! I created a class for the dropdown and it works! But let me ask another question... the editor has the same behaviour of the standard property (it's static and with double-click get dynamic). Is it possible to force it to be always static?

@thomasguillarddriveworks
Copy link
Member

@amaraldev , good news well done! We'll follow up on your last remark in the support ticket we have with you and your reseller at the moment.
However, please don't get me wrong I do appreciate the chat and I'm very glad you're well on your way with the SDK, I simply don't want to digress too far from our initial GitHub issue for creating a quick dropdown-like task property 😉
If you would like, feel free to create GitHub issues as well, or Pull Requests, they will be welcomed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants