Add Files to Application via process or vba

Post Reply
pobrouwers
Posts: 34
Joined: Mon Aug 11, 2008 7:37 pm
OLAP Product: IBM Cognos TM1
Version: 9.5.2
Excel Version: 2003-2007
Location: France

Add Files to Application via process or vba

Post by pobrouwers »

Hello Everybody,

Is it possible to create a folder and add a file into this folder in Application. This via process or via a script VBA.

Thx
Paul Segal
Community Contributor
Posts: 306
Joined: Mon May 12, 2008 8:11 am
OLAP Product: TM1
Version: TM1 11 and up
Excel Version: Too many to count

Re: Add Files to Application via process or vba

Post by Paul Segal »

Do you mean create a folder and add a file to it from Excel? Then the answer is yes - probably best to google some excel VBA sites for the code for this.

Regards

Paul
Paul
pobrouwers
Posts: 34
Joined: Mon Aug 11, 2008 7:37 pm
OLAP Product: IBM Cognos TM1
Version: 9.5.2
Excel Version: 2003-2007
Location: France

Re: Add Files to Application via process or vba

Post by pobrouwers »

Hello Paul,

No in fact, add a file to Application in TM1 explorer
pobrouwers
Posts: 34
Joined: Mon Aug 11, 2008 7:37 pm
OLAP Product: IBM Cognos TM1
Version: 9.5.2
Excel Version: 2003-2007
Location: France

Re: Add Files to Application via process or vba

Post by pobrouwers »

I've found.
It must to add element in the dimension }ApplicationEnties with this code and create folder and blob into }Applications folder.

Code: Select all

vDir = 'TEST 999';
vBlob = vDir | '\' | 'TEST.blob';
vDimensionName = '}ApplicationEntries';
vTopName = '}Applications';


DimensionElementInsert(vDimensionName,'',vDir,'C');
DimensionElementInsert(vDimensionName,'',vDir,'n');
DimensionElementComponentAdd(vDimensionName, vTopName, vDir, 1.000000);
DimensionElementComponentAdd(vDimensionName, vDir, vBlob, 1.000000);
That's works but the problem is that I must to restart the server to reload all objects.
How refresh the list object in application folder without stopping and starting the server TM1 ?

Thx
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: Add Files to Application via process or vba

Post by Steve Vincent »

Does pressing F5 in the server explorer work? It does when i add a new cube and someone else wants to see it who was already logged in, but not sure if it would in this case...
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
pobrouwers
Posts: 34
Joined: Mon Aug 11, 2008 7:37 pm
OLAP Product: IBM Cognos TM1
Version: 9.5.2
Excel Version: 2003-2007
Location: France

Re: Add Files to Application via process or vba

Post by pobrouwers »

I've tried F5 but it doesn't work...
Any ideas ?
pobrouwers
Posts: 34
Joined: Mon Aug 11, 2008 7:37 pm
OLAP Product: IBM Cognos TM1
Version: 9.5.2
Excel Version: 2003-2007
Location: France

Re: Add Files to Application via process or vba

Post by pobrouwers »

Hello,

Who's an experience with tm1 api and more specialy TM1BlobCreate, TM1BlobPut,...
Do you have some examples ?

Thx
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: Add Files to Application via process or vba

Post by Steve Vincent »

The API in that case is probably all you have left as an option. I've never delved that deep so i can't help on that front i'm afraid...
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
Post Reply