nifi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Burgess <mattyb...@apache.org>
Subject Re: how to hide or show some nifi property when i change drop-down box value ?
Date Mon, 17 Sep 2018 13:09:04 GMT
I think the general capability you are referring to is called
"dependent properties" and it has not yet been implemented [1].  To
some extent you can do this programmatically by overriding
customValidate() or onPropertyModified() for example, and updating the
list of PropertyDescriptors that are returned by
getSupportedPropertyDescriptors(). However, if you have removed a
property and the user has set a value, it will still appear in the
properties list and the processor will be declared invalid until the
(now unsupported) property entry has been removed. Instead, you may
often see the entire list of properties available to the user, with
documentation on which properties may be set at the same time, which
may not be set at the same time, etc. These constraints are often
validated via customValidate(), although if Expression Language is
supported then the processor may appear valid when at runtime it
resolves to an invalid configuration, at which point the processor
should report an error.

Regards,
Matt

[1] https://issues.apache.org/jira/browse/NIFI-1121

On Mon, Sep 17, 2018 at 7:56 AM guangjianwu <guangjianwu@guandata.com> wrote:
>
> How could i do ?
>
>
>
>
> how to hide or show someone nifi property when i change drop-down box value ?

Mime
View raw message