How to add list of properties to object

I have a list and an object defined this way


I am trying to iterate through the list to add each as a property in tempobject

image
I am getting this error

image

I see this is a type error, but I’m not sure what I need to convert “columncount” to as it is set to each item in the list. in the demos I have seen set property filled in with a get property block, but “columncount” is text (I think) so I don’t understand what I need to do to make this work.

Thanks,
H

Looks like the value assigned to the tempobject property in Page Data is not defined. Try using the print block to see what it has.

I added the print block

image

which gave me this
image

which I don’t understand since I do set property for “tempobject” in the block just before the for loop

I also tried changing the block where I define tempobject to this

image

adding a “” to the value

this did prevent the type error but the print block

image

gave
image

so no error but it did not have the properties I was trying to add with the loop.

H

The value for the tempobject in your logic is a string. You cannot add properties to a string. Adding properties works only with objects.

Thanks for the response.
Just in case anyone need it, here is what worked for me

image

everything is now working!

thanks
H