DatasourceNameForServer Question

Post Reply
lynnsong986
Posts: 83
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

DatasourceNameForServer Question

Post by lynnsong986 »

Hello,

I came across this technique of setting up a TI process to read the input file path and name from an information cube.
the example codes are below:
datasourcePath = CellGetS(NameOfInformationCubeName, MeasureNameForCategoryMeasureNameForFilePathName );
dataFileName = CellGetS( InformationCubeName, MeasureNameForCategory, MeasureNameForFileName) ;
# --- set the datasource info for this process
DatasourceNameForServer = datasourcePath | dataFileName;
DataSourceType = 'CHARACTERDELIMITED';
DatasourceASCIIDelimiter = ',';

can someone please let me know where I should put these codes? I suppose in Prolog?

thanks!
Wim Gielis
MVP
Posts: 3234
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: DatasourceNameForServer Question

Post by Wim Gielis »

Prolog, because otherwise you wouldn't be able to access the file contents in Metadata and/or Data tab.
Best regards,

Wim Gielis

IBM Champion 2024-2025
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
lynnsong986
Posts: 83
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

Re: DatasourceNameForServer Question

Post by lynnsong986 »

Thank you so much again!
Wim Gielis
MVP
Posts: 3234
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: DatasourceNameForServer Question

Post by Wim Gielis »

FYI, I tend to specify paths (input files, output files, custom scripts, ...) relative to the TM1 data directory.
You can do this with . and ..
Like that, whenever paths change, you will have less trouble adjusting all the paths.
TI functions like AsciiOutput, TextOutput, AsciiDelete, ExecuteCommand, FileExists, WildcardFileSearch, Datasourcenameforserver, ...
they all support the relative paths.
Best regards,

Wim Gielis

IBM Champion 2024-2025
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
lynnsong986
Posts: 83
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

Re: DatasourceNameForServer Question

Post by lynnsong986 »

sorry dumb question again...

I created a new process and put this in Prolog (haven't created the information cube yet, just to see if these codes work):
DatasourceNameForServer = 'A:\Customer List.csv;
DataSourceType = 'CHARACTERDELIMITED';
DatasourceASCIIDelimiter = ',';


but the Metadata and data are both greyed out, what do I need to do activate them?

thanks!
lynnsong986
Posts: 83
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

Re: DatasourceNameForServer Question

Post by lynnsong986 »

Thanks for the information...that is too advanced for me for now...I'm trying to figure out how to get to Metadata and data at this moment... :oops:
Wim Gielis
MVP
Posts: 3234
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: DatasourceNameForServer Question

Post by Wim Gielis »

Use a dummy file with the correct columns to get yourself a preview and variables. Hence a Metadata and Data tab.

Is it really impossible for you to follow a TM1 course ?
Best regards,

Wim Gielis

IBM Champion 2024-2025
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
lynnsong986
Posts: 83
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

Re: DatasourceNameForServer Question

Post by lynnsong986 »

It is a one day course and they spent half a day going through how to set up dimensions using TI, all very basic material. all I learnt is that metadata is for dimension/subsets; data is for uploading cubes. little was explained about Prolog or Epilog (basically just use the manual input page to browse to the files and did a few SQL to pull raw data in from a SQL server). can you recommend a good online course that covers more details?

thanks!
Wim Gielis
MVP
Posts: 3234
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.1.5
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: DatasourceNameForServer Question

Post by Wim Gielis »

lynnsong986 wrote: Wed Oct 30, 2019 12:09 am It is a one day course and they spent half a day going through how to set up dimensions using TI, all very basic material. all I learnt is that metadata is for dimension/subsets; data is for uploading cubes. little was explained about Prolog or Epilog (basically just use the manual input page to browse to the files and did a few SQL to pull raw data in from a SQL server)
That’s pretty bad I would say.
lynnsong986 wrote: Wed Oct 30, 2019 12:09 amcan you recommend a good online course that covers more details?
I set up my own Turbo Integrator course material with slides and exercises. It’s a 2-day course for those who are not too new with both TM1 and TI - although I can start from the beginning if needed (at the expense of skipping more advanced topics or a 3rd day). Obviously this material isn’t available online, yet my website covers many areas of TI. The material is kept up to date with every new release of the software, like new functions that are introduced or new us of working.

I’m sure others can offer custom training in TI too - of higher quality compared to what you know received. Likewise there are good sites out there as well. It will not be easy to find a site that gives you the same output and quality an experienced trainer can give you.
Last edited by Wim Gielis on Wed Oct 30, 2019 12:51 am, edited 1 time in total.
Best regards,

Wim Gielis

IBM Champion 2024-2025
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
lynnsong986
Posts: 83
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

Re: DatasourceNameForServer Question

Post by lynnsong986 »

I definitely agree that I need a better course, I'd love to take yours but I'm in Canada so my best bet would be an online course with a different provider...good thing is my company pays for it...

Thank you!
lynnsong986
Posts: 83
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

Re: DatasourceNameForServer Question

Post by lynnsong986 »

I visited your site, I went though the MDX statements and have been practicing them. My problem is really with TI, not much with rules (I’m an advanced excel user, I use VBA a lot and have done quite a bit financial modeling in excel, so rules are fairly straightforward once I figure out the syntax). I think TI resembles VBE a lot, I need to find a good trainer for sure...
lotsaram
MVP
Posts: 3703
Joined: Fri Mar 13, 2009 11:14 am
OLAP Product: TableManager1
Version: PA 2.0.x
Excel Version: Office 365
Location: Switzerland

Re: DatasourceNameForServer Question

Post by lotsaram »

There are specialist online TM1 training courses availabe. Just do a search for "TM1 + training" and scroll down the list.
You get what you pay for, the better courses are considerably more expensive than the cheaper offerings.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
lynnsong986
Posts: 83
Joined: Wed Feb 28, 2018 2:20 pm
OLAP Product: TM1
Version: 10.2.2
Excel Version: 2016

Re: DatasourceNameForServer Question

Post by lynnsong986 »

I signed up for a course provided by INTELLIPAAT, just went through 2 sessions but I can already tell this is so much better! They also provide 24/7 support (at least they claimed), I'll see how it goes...

thanks!
Post Reply