I have posted this as a Feature Request on GitHub, but would be interested in hearing other feedback or workarounds here
I would like a Sequential Integer block like the Random Integer Block in Math
The reason is to assist the use of Buckets in Firebase. When Creating Buckets on firebase, I need a way to access sequential buckets. If I create a Bucket with text I can have individualized buckets, but cannot access those buckets on another screen as the key is linked to specific text on the other page. (See 2 Below)
As I cannot access unique text from one page on another (saving as a Stored or App Var would have the information not accessible on multiple devices) I tried to use the Random Integer from x-x Block. This gets part way there it saves as a bucket within a bucket AND allows me to access the information on a different screen. The issue is the number selection is random. As such I can only access the data by knowing the random value selected. (See 4 Below)
Firebase does not like the Seconds Since 1970 block so I cannot attempt that. I think that if I could set a Sequential Integer from x-x block, I could set the key on the other page to expect a sequential set of values and access buckets within buckets. The randomness of the Random Integer Block makes that difficult unless I know the random number chosen.
If you use the cloud variable blocks with the list blocks, you’ll achieve what you’re going for. Thunkable handles the incremental numbering of the collection name (field names).
@drted has posted on this in the past. Do some searching and you’ll surely find the threads.
The numbering is maintained by thunkable. Big IF here tho. iF you delete a numbered node, your list won’t work anymore. Instead, add a property to each terminal node called deleted:no
When you delete a value, you’ll actually only switch deleted to :yes and filter any result whose property of deleted = true