Has anyone managed to manipulate dimension attributes via the API?
I've managed to create a dimension and add elements to the dimension using the example provided, but am having trouble with adding attributes to dimension (aliases) and then updating these attributes at the child node level.
I am guessing I need to use the TM1ObjectAttributeInsert() function to insert the attribute, and then use the TM1ObjectAttributeValueSet() function to give the attribute a value, but can't seem to find an example on the net.
I'm using tm1 v 9.4 and VBA with Excel 2003.
Any help would be much appreciated.
Dan
VBA to insert dimension attributes
-
- Posts: 20
- Joined: Tue Aug 04, 2009 6:14 pm
- OLAP Product: TM1
- Version: 9.4.1
- Excel Version: Excel 2007
Re: VBA to insert dimension attributes
I've just been through the wringer trying to EXTRACT a value from an attribute using the API. It's horrible and there are no example on the web that I could find either.
What worked for me, which someone here suggested, was to use the RUN(DBSA,server:dimension,value,attributename) macro VBA function.
I hope this helps!
What worked for me, which someone here suggested, was to use the RUN(DBSA,server:dimension,value,attributename) macro VBA function.
I hope this helps!
- Martin Ryan
- Site Admin
- Posts: 1989
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: VBA to insert dimension attributes
Just a minor fix on the above, it's actually run("dbsa", valueToSend, "server:dimension", element, attrName)
Martin
Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Jodi Ryan Family Lawyer