Hi
I have an input-view in my app where I put info in two fields. One plain text and one a date through the date-picker.
It works fine, but now I would like to put these in a variable to be able to use the data in other processes in the app. But I can’t figure out how to do this.
This is what I am trying at the moment, but it gives me Null.
hm…
It still give me Null though?
Am I doing something wrong in using the “Join”-block for the properties? I just count come up with any other idea for how to point to these fields “Text” and “Date”…
There are TWO blocks with the name length of. One in the Text drawer and one in the List drawer. You should use the one in the List drawer and you should get 1.
I mean currently you have ONE object in the list. The length of will give you the number of elements in the list. If the elements are actually objects with number of properties then the length of will not see the properties inside the objects. It will only see the top object.
ok but I do only have ONE object. This object has TWO Properties.
And I can see these two properties in my test-label now. Put only for one (the last) entry.
I would like the label to show all my entries (included the last one).
The main idea here is that I want to control that this variable is containing what I expect. (my array including the last entry which comes with this klick). I simply want to see what’s inside my variable
I can entry some text and a date.
I want to save this data in a variable so that I can use this information later in the app.
To see that I indeed are saving this data in this variable I have put a label at the bottom to show what’s inside that variable. (at least that’s what I am trying to do.
So, when I click that save-button, this code will run.
And the issue here is that I do only see this last entry in my label, that makes me think that my variable only contains this data (even though maybe that’s not the case)
Why do you need to save the object to a list?
Why not create its own variable if this is not actually part of a list?
You can even save it to Firebase separately.
I wanted to somehow specify these fields “Text” and “Date” so I can use them later in ex a DVL.
I couldn’t come up with any other idea to do that then to make an object with these fields in it.
I guess it doesn’t necessary have to be a list, I just thought that at some point it needs to convert to a list if I want to show it in the DVL later…?
This is how one entry will be shown in one cell in DVL:
I had an idea to use something like this later to add this list/object to the DVL when start the app:
(I haven’t tried this yet, its only an theoretical idea)