TI process to add new element to dimension

Post Reply
JFerguson
Posts: 9
Joined: Fri Jan 08, 2010 7:04 am
OLAP Product: TM1
Version: 9.5.1
Excel Version: 2007
Location: UK

TI process to add new element to dimension

Post by JFerguson »

I am new to TI so thank you in advance for your help...

We predominantly use TM1 Web for our international users. I would like the users to be able to add a new element to a dimension by clicking an action button in a websheet, after they have inserted into a cell the element name. I have read the TI Guide, but can't see any reference to the data source being a websheet/application.

Does anyone know if this can be done & if so how?

Also, how do I use TI to set the security for the new element?

We are running 9.1.3 U2 on x64 windows server.
Wim Gielis
MVP
Posts: 3118
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.9.18
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: TI process to add new element to dimension

Post by Wim Gielis »

Hi there

Welcome on-Board!

Create a new process, and set the Data source to None.

In the Advanced tab, setup a new parameter to "ask" for a String input. That should become the name of the element. Call the parameter pElement.

In the Prolog tab:

This inserts the element as an N-level one:

Code: Select all

DIMENSIONELEMENTINSERT('DimensionName','',pElement,'N')
This is the most basic you can go - but you do need it in one form or another ;)

Optionally, add the element to an existing consolidation:

Code: Select all

DIMENSIONELEMENTCOMPONENTADD('DimensionName',pConsolidatedElement,pElement,1)
Then, on the websheet change the Action button properties (rightclick it) to fill in the parameter pElement with a cell reference.

For the security on that element, based on the info you give, I would use rules in the respective }ElementSecurity cube. But it might not be needed depending on the actual case at hand.

Wim
Best regards,

Wim Gielis

IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
JFerguson
Posts: 9
Joined: Fri Jan 08, 2010 7:04 am
OLAP Product: TM1
Version: 9.5.1
Excel Version: 2007
Location: UK

Re: TI process to add new element to dimension

Post by JFerguson »

Thank you very much. :)
Post Reply