Filter Not Recognized by Servoy

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Filter Not Recognized by Servoy

Postby john1598360627 » Thu Dec 07, 2023 2:02 am

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
Code: Select all
@param {Filter} Filter

warning
Unknown type Filter


SETFILTERVALUE - USER
code
Code: Select all
toolbarFilter.setFilterValue( Filter, Value, Operatr )

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


SETFILTERVALUE - SERVOY
code
Code: Select all
Sets a filter value for the given filter
Parameters:
{Filter} filter
{Array} values
{String} operator
Public
This:
{AbstractToolbarFilterUX}


SCREENSHOTS
nofilter-1.png
nofilter-1.png (67 KiB) Viewed 3384 times


nofilter-2.png
nofilter-2.png (27.88 KiB) Viewed 3384 times


nofilter-4.png
nofilter-4.png (147.67 KiB) Viewed 3384 times


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.
john1598360627
 
Posts: 175
Joined: Tue Aug 25, 2020 3:03 pm

Re: Filter Not Recognized by Servoy

Postby mboegem » Thu Dec 07, 2023 9:20 am

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:
Code: Select all
@param {scopes.svyToolbarFilter.Filter} Filter


Hope this helps
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1752
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Filter Not Recognized by Servoy

Postby john1598360627 » Fri Dec 08, 2023 12:28 am

mboegem wrote: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:
Code: Select all
@param {scopes.svyToolbarFilter.Filter} Filter


Hope this helps

That worked! Thanks!
john1598360627
 
Posts: 175
Joined: Tue Aug 25, 2020 3:03 pm


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 16 guests

cron