Hello DOJO
I am struggling with the design of a view
I want to filter dynamically the shapes that will be displayed by using the value of a parameter for each element
I want only the elements that have a parameter set to "Manager" and hide those where the parameter is set to "Monitor"
the view without filtering is :
I am able to hide shapes with this config ,
it works, but the space is not freed,
I tried also with childrenfilter ( [Param:*,110]=Manager or [Param:110]=Manager) with no success, subscriptionfilter is only for table parameter so I am stuck
is it a way i didn't view ?
regards
Hi Joel,
Hiding shapes by using a show/hide condition will indeed still reserve the space for that shape. This is because the shape is created and it is then hidden from the view.
The children filter prevents certain items from being created and thus prevents them from being added to the view. This means that no gaps will be visible. Unfortunately, you can't filter on element properties in the ChildrenFilter syntax.
Indeed, so placeholders are now supported for the ChildrenFilter. However the ChildrenFilter only allows specific filters to be provided (by protocol, by severity, by name, …). Filtering by parameter value is not supported at this moment.
Thank you Sebastiaan
It’s what I understood, I have also tried to sort, for placing the hidden shape to the end of list, but apparently It’s the same restriction than with childrenfilter
I had a hope with DOJO documentation item for childrenfilter :
Using placeholders such as [var:] and [param:] within ChildrenFilter shape data is supported from DataMiner 9.6.4 onwards. This can for instance be used to filter the child shapes using a session variable in the filter value.
by using the syntax [param:]
would you give me an example of this functionality ?