Hello everybody,
is it possible to use a picklist (or a kind of) for TI parameters?
I have to specify a parameter for dimension and the possible values are cryptic strings. My idea ist to provide a selection box (or something similar) with valid values as parameters for the dimension.
Any idea how to realize it.
Thanks in advance
Steve Brenner
Picklist for TI Parameter dialog possible
- Martin Ryan
- Site Admin
- Posts: 2003
- Joined: Sat May 10, 2008 9:08 am
- OLAP Product: TM1
- Version: 10.1
- Excel Version: 2010
- Location: Wellington, New Zealand
- Contact:
Re: Picklist for TI Parameter dialog possible
Not in pure TI. The alternative is to use Action Buttons in Excel and have drop down boxes in cells in Excel.
If you have to use pure TI the closest you can come is checking the parameters in the prolog before proceeding. I tend to write something like this
prolog:
Epilog:
As Alan will tell you, this is a bastardisation of ItemReject (strictly speaking it shouldn't really be used in the epilog), but I find it useful. The other problem with this approach is that only admin users are able to open the error log to see what the problem was.
HTH,
Martin
If you have to use pure TI the closest you can come is checking the parameters in the prolog before proceeding. I tend to write something like this
prolog:
Code: Select all
errMsg='';
if(pParam@<>'Option1' & pParam@<>'Option 2');
errMsg='pParam (' | pParam | ') is invalid. Aborting. Valid options are Option1 and Option2.';
ProcessBreak;
endif;
Code: Select all
if(errMsg@<>'');
ItemReject(errMsg);
endif;
HTH,
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