aiasp
1
Hello, I have a function that create new rows in Airtable db, getting data from a list I previously populated.
Well, If I run the app into the editor, using Web preview, it works correctly and Create 1 row for each instance,
but
if I run the app using Web App Publish or iOs download, it create 2 rows for each instance and not 1.
hope someone will help me thanks
What is the length of the list app variable OggetoLista
when you preview the project on various devices and in a browser?
And what do the blocks look like where you are calling the CaricaGiocatori function?
If it’s not confidential, can you post the full JSON response as text?
aiasp
6
response is correct in both cases, 3 records in this case for both Web App and Live App
but in Web App Published it writes 2 times the new records


Function is called one time from other blocks
other ideas ? thanks
I actually need the response formatted as text, not as screenshots. But I’ll take your word that it’s 3 records.
I’m not sure why you’re hiding the other blocks. I can’t help you without seeing how the function is called.
aiasp
8
OMG ! your words helped me to discover the issue
I called the function from START and from OPEN screen blocks.
Now I removed that call from OPENS and it runs only 1 time !!! I love u !
But Why when I used web preview it worked the same only one time ? What is the MAIN different from OPEN and START ?
Thank you !!
Guido from Italy
1 Like
tatiang
9
Guido,
When screen starts → run this code the first time the screen opens
When screen opens → run this code every time the screen opens
I know there is a bug with these blocks but I thought it only applied to Android devices.
1 Like
system
Closed
10
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.