Hello! Say you had a note taking app in GS. Is there a way users could search for their notes and for things inside their notes? I'm not very familiar with tables so I'm not sure how to do this.
I would say technically you could, but I don't know how well GS will handle something like that because tables are still new and can cause slowing sometimes. It would need to loop through every single populated table to find every single one. Would take quite a bit of work on your end to get it functioning properly.
*First you would have to use tables.
*Second, you will need another table (Search) to store the cords of every single found search term.
*You would need to run a loop that goes in and checks their inputed search term (text attribute) comparing every row and column with "Contains" (using rule). If it finds the search term it stores those cords in your Search table. If not it continues.
Some tips to keep it from bogging down the system:
*Force their text to be populated in each empty table box and keep track of how many "memos" they have so you don't end up checking a bunch of empty tables boxes.
*Maybe don't let them search for terms like "a" or "." as it will end up finding a LOT of results.
*If they leave a table box empty, force it to be deleted and instead (you may) have to shift each one down from it to move one table up. (Could also slow the system as it is a big looper)
*Do something like, when they clear their search term or modify it you will need to cause your whole Search table to be cleared out. Easiest way to do that is to make another Search table with the same number of rows and columns that is a reset version. However you want the table to look (probably empty boxes). Then just do Copy Reset Search Table to Search Table. That is just a fast way to reset it.
Like I said though. It will take a lot of work on your end to get something like this working properly. Be aware that a loop (especially if they have a LOT of memos) could end up causing big drops in frame rate. I haven't done this so I can't say for sure, but it is likely.
One thing you should consider though, if you are just making another notepad type app, I would recommend doing so. They have TONS of them on the market for free that are very well made. Unless yours is unique in some cool way Apple may not even accept it. They usually stop accepting duplicate apps after a while. Just something to consider.
Comments
*First you would have to use tables.
*Second, you will need another table (Search) to store the cords of every single found search term.
*You would need to run a loop that goes in and checks their inputed search term (text attribute) comparing every row and column with "Contains" (using rule). If it finds the search term it stores those cords in your Search table. If not it continues.
Some tips to keep it from bogging down the system:
*Force their text to be populated in each empty table box and keep track of how many "memos" they have so you don't end up checking a bunch of empty tables boxes.
*Maybe don't let them search for terms like "a" or "." as it will end up finding a LOT of results.
*If they leave a table box empty, force it to be deleted and instead (you may) have to shift each one down from it to move one table up. (Could also slow the system as it is a big looper)
*Do something like, when they clear their search term or modify it you will need to cause your whole Search table to be cleared out. Easiest way to do that is to make another Search table with the same number of rows and columns that is a reset version. However you want the table to look (probably empty boxes). Then just do Copy Reset Search Table to Search Table. That is just a fast way to reset it.
Like I said though. It will take a lot of work on your end to get something like this working properly. Be aware that a loop (especially if they have a LOT of memos) could end up causing big drops in frame rate. I haven't done this so I can't say for sure, but it is likely.
One thing you should consider though, if you are just making another notepad type app, I would recommend doing so. They have TONS of them on the market for free that are very well made. Unless yours is unique in some cool way Apple may not even accept it. They usually stop accepting duplicate apps after a while. Just something to consider.