Filter Not Recognized by Servoy

For Servoy’s very own toolbarFilter object, it uses a Filter object type. However, if you try to define variables as Filter, Servoy doesn’t recognize it.

EXAMPLES
FILTER TYPE
code

@param {Filter} Filter 

warning

Unknown type Filter

SETFILTERVALUE - USER
code

toolbarFilter.setFilterValue( Filter, Value, Operatr )

warning

The function setFilterValue(Filter,Array,String) is not applicable for the arguments (?,Array,String)

SETFILTERVALUE - SERVOY
code

Sets a filter value for the given filter 
Parameters:
{Filter} filter
{Array} values
{String} operator
Public
This:
{AbstractToolbarFilterUX}

SCREENSHOTS
[attachment=2]nofilter-1.png[/attachment]

[attachment=1]nofilter-2.png[/attachment]

[attachment=0]nofilter-4.png[/attachment]

HELP
Servoy should recognize the Filter type since that’s what is being used in the toolbarFilter object, but it isn’t for some reason.

nofilter-2.png

Hi John,

As visible from the build marker in the JSDocs ‘Filter’ isn’t recognised as a valid type.
This is probably, because this function is outside of the svyToolbarFilter scope.

In order to let Servoy find that type, you should point to Filter using the full path, so:

@param {scopes.svyToolbarFilter.Filter} Filter

Hope this helps

mboegem:
Hi John,

As visible from the build marker in the JSDocs ‘Filter’ isn’t recognised as a valid type.
This is probably, because this function is outside of the svyToolbarFilter scope.

In order to let Servoy find that type, you should point to Filter using the full path, so:

@param {scopes.svyToolbarFilter.Filter} Filter

Hope this helps

That worked! Thanks!