Hello everyone…
How can i make the below process…
The user will put an unique number he got from a screen in a text input… the app will search in a list of values for this number … once it found the app navigate the user to another screen and show him all informations related to that unique number.
I made a list containing unique numbers … and the row of this numbers stored in a cloud variable … but once it found the number and navigation done it just get value from last entered row not the values related to the entered numbers.
Use the find first occurrence of block instead of the does list contain
block. The value you get will be the row number of the cell containing the text input value. A row number of zero indicates it was not found. Save that row number in a variable. I would not use a cloud variable for that, but it’s up to you. I would use an app variable or if you need to save it to the device then a stored variable.
On the next screen, use the variable as your row id in the get value
blocks.
There’s no ability to add Find first block… it automatically replaces
If blocks require a true or false value which means you need to use a Logic block there. The reason you can’t connect those blocks is because the find first occurrence
block returns an integer value not a true/false value. So you need to do something like If find first occurrence
= 0 do…
1 Like