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

Allow support for "contains" condition for checkbox control type #1164

Open
tristantyler opened this issue Sep 1, 2022 · 3 comments
Open

Comments

@tristantyler
Copy link

Contains is disabled for checkboxes here .

DataStage Canvas is adding functionality that allows a user to change a properties control type. For example, a checkbox can become a textfield if a user wants to parameterize that property.

Parameterize refers to replacing a properties value with something like "#MyParameter#". This MyParameter can refer to any value. Certain conditions that use "contains" are needed to process logic related to this, but since "contains" isn't allowed for checkboxes we cannot do this processing.

@tristantyler
Copy link
Author

Example of a similar usecase but with oneofselect as the original control type instead
elyra-show-param

@caritaou
Copy link
Member

caritaou commented Sep 1, 2022

Hi @tristantyler, we don't support contains for checkbox controls because checkboxes are of type boolean while contains validates against strings or arrays. This looks like a very specific use case for your application. Can you take a look at using custom conditions? https://github.com/elyra-ai/canvas/wiki/3.5-Common-Properties-Custom-Components#custom-condition-operators

@tristantyler
Copy link
Author

@caritaou Thanks for the quick response. I'll look into that. Thank you!

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

No branches or pull requests

2 participants