To keep things simple for now, you could initialize a property (any property - you get to pick a name for it) in Page Data when the page is being loaded. Set the initial value to 1.
When the button is clicked, get the value from Page Data, increment it and save in the database.
Once that is working, change the logic in the On Page Load event to read the current value from the database and initialize the property in Page Data with the value from the database.
Did you login?
Can you enable âreloadâ checkbox and retry?
What object you are updating? Did you debug(print values) or check in database if needed user were updated?
Youâre making good progress, but there are a few problems with the logic you shared:
The following logic will save an incremented value, however the value in Page Data will remain the same - you need to add additional logic to increment the value stored in Page Data
In the following logic you will fetch 10 records from the Users table and store them all in the Points property in Page Data. This is not what you want⌠You need to retrieve a specific record from Users - the record that corresponds to the currently logged in user. Keep in mind that the Load Table objects block always returns a collection of objects (even if it is a collection of one). So you need to fetch one specific record/object add logic to extract that object from the collection. Then you need to get the Points property from that specific object:
I wanted to reach out as part of the Pocket Perks development team regarding the page size settings for retrieving items from the âUsersâ table. It seems that when I set the page size to 10, it returns only 11 items, and Iâd like to retrieve all entries. Here is the block:
When you set it to 10, it should return up to 10. The maximum value supported in the Cloud version is 100; you can use paging to retrieve more. Hereâs a doc on paging:
@Tomdabom , also, please create a new topic for every new question. It will help keep the conversations on topic, and others can benefit from finding answers faster.