how to hide or show some nifi property when i change drop-down box value ?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to hide or show some nifi property when i change drop-down box value ?

guangjianwu
How could i do ?




how to hide or show someone nifi property when i change drop-down box value ?
Reply | Threaded
Open this post in threaded view
|

Re: how to hide or show some nifi property when i change drop-down box value ?

Matt Burgess-2
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 <[hidden email]> wrote:
>
> How could i do ?
>
>
>
>
> how to hide or show someone nifi property when i change drop-down box value ?