List is not a list after saving

this is how i was able to combine a list of items, and dictionary into a single file and read from the file, back to a list and object(dictionary)

@TimAI2 how do you change the font for object? i read that in the original introduction but it didnt sink in

also, THANK YOU, THANK YOU, THANK YOU! your explanation fit my question very well and on point.

What am I doing wrong here?



Your blocks lack patience, and this event block: (edit with apology - ABG)
component_event

Don't try to read a file until after the O/S has finished writing to it.

@ABG

I've been fighting this since Friday, so patience not an issue
i read the reply on my cell phone so i didnt see all of it...

Im trying that now

I added that block so im confident that my issue isnt there

also ill add that the issue SEEMS to manifest only after i refresh companion. that is, as I dont close the app, the issue isnt created.

i added a global variable to see what the raw text looks like before and after encoding. it seems full before encoding, but the select list item cant accept it.

after encoding, it returns only the first segment

Here is the code sequence that is impatient:
366e0d2eaa8986e030d5b043465f9d840b1b4ac5_2_690x215

The second block is running before the saveFile data has fully arrived.

Also, clear your block comments to help distinguish new Do It results from leftovers.

2 Likes

Yes, Sir. it seems to work, better .
still debugging. I will mark this as solution as soon as i get past.

TY!

I created a button stop in the FOLLOWING step, that didnt help as it was misplaced.

that seems to help, next piece of the same puzzle

Do you have ShowListsAsJson unticked for a reason ?

i do not. ill tick it now

You are not doing anything with global temp, other than probably checking its contents at the wrong time.

Do we assume you are not getting anything in your list global NameIndex either ?

global temp is just there to provide a window into the passing of data
it seems to show that the ITEM is an empty string while the length of list is 2
Global temp should update 2 times and the last would be visible after the fact

each of the lists starts with NAME

global nameIndex would become a list of the names only for indexing the dictionaries

It remains an empty list

I have emulated your procedure, works for me:

This can be done by Dictionary walk key path block.

I am setting up a new monitor I will be back shortly and give this a try. I do not understand the concept of walking key path yet.

43" samsung smart monitor, I hope its smarter than me :stuck_out_tongue:

This can be done without using dictionaries at all :wink:

bigger monitor done... cant hurt. helps with the zoom issue at least a little

back to work.
@TIMAI2 thank you . I'm going to work on that now

while I still need to know how I'm wrecking this particular train, I'm not opposed to starting over with my entire app to apply some better best practices.

I introduced dictionaries as a matter of efficiency, but i think i can probably manage without. either way the above issue will eventually resurface if I don't understand it. I have studied it. I cant see that there is a reason for the issue.

I will add to this that I had an error that dragging could not accept the arguments. I disable the dragging block to debug. I got the same error even though the blocks were disabled. I then deleted and still got error.

after that I haven't been able to get the app to initialize due to this current bug.

I'm thinking I have something hung up having worked with this app through so many revisions