Replies: 1 comment
-
Hi @ubihw, TM1py treats attribute values as cell values. So to write attribute values you can write directly to the Regarding the attributes parameter in the
Unfortunately, TM1py can't send the attribute values in one operation together with the element updates to TM1. Yes. I think the way you use the attributes property to store the attribute values in the elements makes sense. You can read more about dimension updates here: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
https://github.com/cubewise-code/tm1py-samples/blob/master/Metadata/dim_create.py shows how to create a dimension, including attributes. What is missing, is, how the attribute values are written. I noticed, that the Element Object accepts an attributes list as additional parameter, and extended the example like follows:
It worked for me, but I dont know, if I used the attributes parameter in the way it was intended for. If there is a more TM1py-ish way to populate the attributes, please let me know. And, maybe dim_create.py could be extended with the right way to populate attributes?
Beta Was this translation helpful? Give feedback.
All reactions