Hi All,
I’ve noticed that once a field has been created on the new m.global scope I can no longer add or modify its contents.
Example:
m.global.addFields({
content: {}
})
I cannot then add to or modify m.global.content
I have tried the following ways to modify with no avail:
m.global.content.addReplace("test", "1")
m.global.content = {"test, "1"}
m.global.content.test = "1"
Is this expected? Or am I doing something wrong?
Modifying the value doesn’t work for me, but resetting it to a new AA does. Your code for that is wrong…
m.global.content = {"test, "1"}
should be…
m.global.content = {"test": "1"}
The latter works for me.
FACE PALM FOR ME.
Ok, so now that a full reset of the field is working is it possible to edit a specific value instead of the whole field?
I guess something like this would work
print m.global.content
newcontent = m.global.content
newcontent.test = "1"
m.global.content = newcontent
print m.global.content
newcontent = m.global.content
newcontent.test2 = "2"
m.global.content = newcontent
print m.global.content