I don't know your app's logic or what it does. But I changed some wrong things. In initialize blocks you load text from TextBoxes into a list which is wrong because when initialize block is executed then TextBoxes are empty.
Google_Sheet_2 (1).aia (1.1 MB)
think you very much !!! my application will be used by a researcher to record characteristics observed on seagrass beds to see if they are in good health and see their evolution over time. >The analysis of the data will be done in a second time in a Google Sheet .
I will look at your proposal I hope it will help me to finish this first work I spent a lot of time there because I did not know anything to App inventor
Good evening and thanks again
Franchement je m'arrache les chevexu avec cette appli car je ne comprend vraiment pas les résultats que j'obtiens qui sont illogiques.
dans le premier écran je choisis un bouton parmi une liste. Le bouton cliqué est transmis par l'intermédiaire d'une liste, en tant qu'index 1, à un autre écran.
Cela fonctionne
Mais si , en utilisant la même commande ( !) ,
je veux l'afficher dans l'écran de départ pour vérifier ce qui est enregistré dans ma liste de données j'obtiens un message d'erreur.
Puis-je encore une fois avoir votre aide ? pour moi ceci est complètement illogique
You are trying to remove the 0th element from the list, but App Inventor is indexed from 1, not 0. This can happen if the component you are looking for isn't found in the list.
mais je ne vois pas du tout où intervient l'index 0 dans mon programme dans le dernier ecran j'affiche la liste de données avec la même commande et cela fonctionne
il apparait lors de l'initailisation d'un ecran mais pas après la validation par un bouton j'ai du mal à comprendre mais je vais creuser !
Not all buttons are in global list SITE, for example Bt_VALIDER.
So because you do not check for list membership or check for notAlreadyHandled in the generic Any Button.Click event, you will get a zero index.
You need to add an if notAlreadyHandled/then around your AnyButton.Click logic.
ok j'ai compris merci beaucoup je vais corriger j'avais oublié le bouton VALIDER effectivement
J'ai un autre problème que je n'arrive vraiment pas à résoudre : dans le 2ème écran je dois saisir des valeurs numériques et les ajouter à ma liste de données
J'ai vérifié les valeurs sont bien enregistrées dans la liste puisque je peux les afficher mais je n'arrive pas à les transmettre à l'écran suivant ou l'écran final. Ces derniers deviennent tout verts
Lorsqu'il s'agit de boutons tout est ok mais pour les valeurs saisies dans les texbox cela ne passe pas .
Pouvez-vous me donner l'explication ? j'ai cherché longtemps mais je n'ai pas trouvé
Excusez mon inexpérience j'ai commencé à programmer sur App inventor la semaine dernière
les boutons vides servent, bien sur, juste à vérifier que les valeurs sont dans la liste
personne pour m'aider pour ce problème ?
In some of your screens you test 'is a list' against the initial value of a global variable instead of the incoming start block.
Does that make sense to you, considering that you have global init blocks that initialize that variable to a list anyway?
Your list check does not complain if the start value is not a list.
Complaining would help debug your app.
Merci je vais chercher dans ce sens
I can't stand this application anymore, I wonder if it's not coming from my phone!
Please, I really need your help to finish this work.
I've tried a thousand solutions, the last one being: I save the data entered in each screen in a tinyDB database with different tags and I want to confirm all the entries in a last screen.
the code seems to be very simple but as soon as I get to screen N° 3 nothing is displayed again like when I tried to switch lists from one screen to another; I don't understand why, I seem to have checked everything.
I join my application I hope to find someone to find me finally a solution thank you all for your help so far
Google_Sheet_tinyDB.aia (1.1 MB)
NB : Do not take into account the first 2 screens
My other program which seems to be correct with the passage of a list from one screen to the other: I have the same result: the 3rd screen displays nothing
Google_Sheet_Start value_Value.aia (1.1 MB)
Thank you for help !!!!
You are using ios. So you may have an error when switching screens with a value. Look here:
Use TestFlight 2.64.2 build 7
oh I spent a lot of time trying to figure out where the problem was coming from I prefer that!! at least I made some progress in programming
thank youI hope this will solve my problem
I did not understand how to use Test Flight, is there any other solution?
I have no idea as I don't use iOS. I think it's probably a companion app from your ios store. Maybe just update the companion.