Hi,
I'm trying to save an array value to a local variable, it looks like getting saved, but when I check for the length of the local variable, I'm getting as 0. Where as when I save the same array during declaration of the local variable, I'm getting the length as expected.
What I'm missing here ? what is the proper way of saving into local variables after declaring them. I've tried using a!save() but no luck.. :(
Below are the snaps for your reference.
Assigning array after initialization
Assigning array during initialization
TIA :)
Discussion posts and replies are publicly visible
I think maybe having that variable being the key in the dictionary might be doing weird things.
Try this:
a!localVariables( local!parts: { a!map( partName: "part1", quantity: 1, unitCost: 1 ), a!map( partName: "part2", quantity: 1, unitCost: 1 ) }, { parts: local!parts, length: length(local!parts) } )