Is there maybe a bug in GLide or is there something else going on?
In my last reply I mentioned that even after re-creating my app in the “New” Glide, it was still not working the way it should.
That maybe there is some kind of refresh needed to get the correct information on the screen.
As I expected, there is no refresh option in the custom actions.
What I first tried was the “Go Back” feature.
This had no effect.
Then I thought, maybe stupid but I will give it a go anyway, I used the “Go To Screen” feature and I let it go back to the screen I wanted.
This had some effect.
The first few days I tried this, it was updating the screen with the correct information.
But after a few days, it was showing the incorrect information again.
I waited several seconds but nothing happened.
I even switched to a different tab and went back, but still, the wrong information was there.
I also tried closing the app fully and restarting it, sometimes the info was correct, and other times it was still wrong.
I also tried to look at the details of one input, to see how the stock was shown there.
There it showed the correct stock, but in the tab, the info was wrong.
Today I tried to make a screen shot and I wanted to show it here.
As soon as I had made the screenshot, the info on the screen was shown correctly.
In this screenshot, the stock should be shown as 94. Because I had just tapped the button to take 3 capsules.
But as you see, it is still showing 97
After taking the screenshot, the stock suddenly was changed to 94. This is what it should be.
My thoughts were to show you the details of the last “Take 3 capsules”
Because in there it is always showing the correct stock.
I have no idea what is going on here.
The first few days, it went okay.
Then I placed the “Go To Screen” feature, and again, for a few days, it was okay.
The custom action is as followed;
Add a new row, with updated info.
Show notification
Wait 3 seconds
Play sound
Delete row (This will delete the first row in the table)
Go To Tab Kalium-Citraat
When the new row is added, the correct info is stored in the table, so the stock should show the correct number. But it isn’t
Can the cause maybe be that the other tabs are connected to a Google Sheet? And that this slow down or cause any problem with the Glide table?
But for the Kalium-Citraat, the Google Sheet is not used. Only the Glide Table.
Maybe anyone has any idea what is going on here.
Right now I am thinking of re-creating the app again, and maybe creating a separate table in which I place the stock only.
This morning it was acting up.
But this afternoon, the right stock was shown within 3-5 seconds.
Update:
I created a separate Stock Table. In there, I have my Stock and a math column that calculates how many days are left for the stock to finish.
Maybe a stupid or dumb question, but how can I, in my custom action, open that separate Stock table and deduct 3?
I only see the option for This Item, User, and a roll-up I have to a different table.
Also when I choose, Set Values, I only see the same tables.
(This is the problem if you don’t work with something for almost a year. You forget things
)