I come back with another problem developing my cookbook app:
I work with 20 tables in a mysql database on my server. These tables contain recipes and the main rows are the name of a recipe, the needed ingredients and the preparation. The app user clicks on several buttons for making a choice “what kind of a recipe”. Then he enters a keyword for an sql select (i.a. within baking: “pizza”) He gets the number of found recipes and the names of the relevant recipes for the keyword. Now he can choose the number of a wanted recipe and gets back the ingredients and preparation description for this recipe.
My problem is the amount of the answers . If you use as a keyword only “blank”, you get some 515 answers of baking recipes or some ingredients and preparation cells are larger then my smartphone display (and I cannot use the “next”-button)
How can I handle/control the amount of response, i.e. with a scrolling technique on the display or what else??
I would test the filter field for blank before allowing the user to issue the query.
Alternatively, when the download arrives and has been loaded into a global variable table, test its length of list (number of rows) and if it's too high, just announce the number of rows.
Alternatively, offer a Divide and Conquer search into the downloaded cookbook, by alphabetic recipe name.
I understand them as solution to control the number of records in the result.
How could I control/identify the amount of only one cell of the table? I will try it with a string-function
And how can I find out the possible number of characters what my smartphone can display (in relation to some font size)?
How can I divide the result in portions (let me say 80% of the display) and store the portions temporarily in a TinyDB? The division will also be tried with a string-function...
How can I manipulate the font size of the display of the sql result?
Meanwhile I am successfully testing to control the number of displayed records and counting the string_length of cells. So I am testing the display capacity of my smartphone. by trial and error.
Now I stuck in producing an integer variable out of an sql result, concerning the number of characters of a string (in a table cell). I get the right number with the procedure blocks, but it is no number I can process as an integer number. The number comes out together with an sql variable called Laenge. I tried to feed the integer variable "global RezStringLaenge" width the "global result" of the query, but the result is a list...