Search Algorithm for Grid?

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

Search Algorithm for Grid?

Postby john1598360627 » Mon Jan 23, 2023 11:35 pm

What is Servoy's intended method for searching in the grids, specifically the data grid.

Before, I was using 'svyPopupFilter' but it doesn't work anymore. I assume it's deprecated now.
viewtopic.php?f=8&t=23690

Did Servoy make a replacement to this, or do we just have to make our own search algorithm now?
john1598360627
 
Posts: 169
Joined: Tue Aug 25, 2020 3:03 pm

Re: Search Algorithm for Grid?

Postby sean » Mon Jan 23, 2023 11:45 pm

Hi Jon,

No it is not deprecated - very much still supported :-)

If you can, please create a support ticket and include an export of a sample solution which reproduces the problem.
https://support.servoy.com/

Best,
Sean
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: Search Algorithm for Grid?

Postby john1598360627 » Tue Feb 14, 2023 2:32 am

With the ticket submitted, my question still stands though.


https://github.com/Servoy/svyPopupFilter/wiki

https://demo.servoy.com/
Working with Data >
Basic Filtering
Text Searching

I'm not really sure which one I'm supposed to use.

The methods of the svyPopupFilter seem to be based around creating a toolbar that is attached to the grid.

But the examples on the demo seem to use I believe what is the basic svySearch.


Similar concept with filtering. Filtering with svyPopupFilter uses the toolbar. While the demo seems to manually enact filters.


To me, the svyPopupFilter system seems better due to it combining everything together with the toolbar. But since there isn't a demo project of how it's supposed to work as a frame of reference, I'm not sure how to setup the Search and Custom Filters properly.
john1598360627
 
Posts: 169
Joined: Tue Aug 25, 2020 3:03 pm

Re: Search Algorithm for Grid?

Postby sean » Fri Feb 17, 2023 12:21 am

Hi John,

There are different approaches for different use cases.
If you want to find something programmatically, then I recommend find mode
If you want to find something programmatically, but need advanced capabilities, then I recommend Query Builder
If you want to do text searching based on user input, then SvySearch is your friend.
If you want to filter, then I recommend using foundset/table filter params.
If you want t combine it all and link it to a grid, then I recommend the SvyPopupFilter :-)

Hope this helps!

Best,
Sean
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: Search Algorithm for Grid?

Postby john1598360627 » Fri Feb 17, 2023 2:37 am

sean wrote:Hi John,

There are different approaches for different use cases.
If you want to find something programmatically, then I recommend find mode
If you want to find something programmatically, but need advanced capabilities, then I recommend Query Builder
If you want to do text searching based on user input, then SvySearch is your friend.
If you want to filter, then I recommend using foundset/table filter params.
If you want t combine it all and link it to a grid, then I recommend the SvyPopupFilter :-)

Hope this helps!

Best,
Sean


Ahhhh I see.

My goal is in fact to do both searching AND filtering at the same time.

As in, Filters will be placed onto the foundset of a grid. But tangentially, the user can search for stuff WITHIN that filtered range of data.

So svyPopupFilter does look to be the best bet! I'm not sure why it has stopped working entirely for me then. Hopefully the sample solution I provided can give some context there.

I only used the code provided on the github wiki though... Is there any Sample Solution that implements svyPopupFilter (with both Filtering and Searching) that I could download and check out?
john1598360627
 
Posts: 169
Joined: Tue Aug 25, 2020 3:03 pm

Re: Search Algorithm for Grid?

Postby sean » Fri Feb 24, 2023 4:45 am

Hi John,

You can see searching and filtering working in concert with the tutorial sample solution, which is downloadable through the package manager.
Also, you can follow the tutorial here:
https://github.com/Servoy/svySampleSolution/wiki

Hope this helps.

Best,
Sean
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA

Re: Search Algorithm for Grid?

Postby john1598360627 » Wed Mar 01, 2023 2:16 am

sean wrote:Hi John,

You can see searching and filtering working in concert with the tutorial sample solution, which is downloadable through the package manager.
Also, you can follow the tutorial here:
https://github.com/Servoy/svySampleSolution/wiki

Hope this helps.

Best,
Sean

Thanks! Although, it doesn't seem to have an example of what I'm curious about. I'll just make a new thread about the specific situation.
john1598360627
 
Posts: 169
Joined: Tue Aug 25, 2020 3:03 pm


Return to How To

Who is online

Users browsing this forum: No registered users and 6 guests