Adding Attributes to an Excel Input Sheet

Post Reply
youngjedi
Posts: 19
Joined: Thu Apr 26, 2012 10:52 pm
OLAP Product: TM1
Version: 9.5 - 10.1
Excel Version: Microsoft Excel 2010

Adding Attributes to an Excel Input Sheet

Post by youngjedi »

I have a TM1 input sheet in Excel and I would like to add a new element along with 2 attributes for the newly added element. So essentially, I would like to prompt the user for 3 pieces of information

1. Company Name
2. Date
3. Individual's Name

The company name is an element and the date and individual's name are attributes of the company. How do I collect this in Excel and have this populate back to TM1???

Thanks in advance.
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Adding Attributes to an Excel Input Sheet

Post by declanr »

Have you read the user guides?
If you want to create an element from a workbook you will need to have an action button that runs a TI looking at parameters in the book.

DimensionElementInsert()
DimensionElementComponentAdd() (Maybe... you haven't explained your task fully)
AttrPutS()


If you have a more specific problem with the task then please elaborate.
Declan Rodger
Duncan P
MVP
Posts: 600
Joined: Wed Aug 17, 2011 1:19 pm
OLAP Product: TM1
Version: 9.5.2 10.1 10.2
Excel Version: 2003 2007
Location: York, UK

Re: Adding Attributes to an Excel Input Sheet

Post by Duncan P »

Don't forget that the DimensionElementInsert needs to be in the Prolog and the AttrPutS needs to be in the Epilog.
youngjedi
Posts: 19
Joined: Thu Apr 26, 2012 10:52 pm
OLAP Product: TM1
Version: 9.5 - 10.1
Excel Version: Microsoft Excel 2010

Re: Adding Attributes to an Excel Input Sheet

Post by youngjedi »

Ok I'm going to give that a try using TI. I'm still not sure how the user will be prompted to enter the three bits of information. All I need the user to return to TM1 is

Company (Element)
Date (attr of Company)
Individual/Name (attr of Company)
declanr
MVP
Posts: 1831
Joined: Mon Dec 05, 2011 11:51 am
OLAP Product: Cognos TM1
Version: PA2.0 and most of the old ones
Excel Version: All of em
Location: Manchester, United Kingdom
Contact:

Re: Adding Attributes to an Excel Input Sheet

Post by declanr »

When you add a TI into excel via an action button you (normally) link the parameters to cells within the excel sheet.
Update the contents of these cells in excel and then run the action button.
Declan Rodger
Post Reply