Page 1 of 1
Formatting Error
Posted: Tue May 10, 2011 3:51 pm
by kgranger
Hello.
Help please!
I am trying to extend our time dimension by another year using a TI process developed for the purpose.
Everything looked fine, until I looked at a metric named, No Specific I_YYYY_WWW. For the prior year (2015), the format is as expected, but for the year 2016 (the year I have added) the space between Specific and I is not there.
Correct original format - No Specific I_2015_P12
Format TM1 reverts to - No SpecificI_2016_P12
Initially I thought this was an issue with the TI, so deleted the 2016 metric and tried manually adding - with the space.
On hitting save, the format reverted to the space being missing. This is causing a problem, as the format is key for certain aspects of our code.
Does anyone know why this is happening, and anyway to resolve it????
I have tried adding a number of different elements into the dimension, but it is only the format No SpecificI_2016_P01 that doesn't work.
No Specific Monkey
No Specific I
No Specific I_
No Specific I_2016_
No Specific I_2016_P
No Specific I_2016_P0
No Specific I_2016_P011
No SpecificI_2016_P01
No Specific I_2016_P1
Thanks in advance.
Kirk
Re: Formatting Error
Posted: Tue May 10, 2011 4:05 pm
by jim wood
I'm not sure why this is happening but have you tried forcing a space using: |' '|
Re: Formatting Error
Posted: Tue May 10, 2011 4:53 pm
by tomok
You should never have elements in a dimension where spaces are important to the system design. This is because as far as TM1 is concerned, spaces do no exist. What I mean by this is the elements:
No Specific I_2016_P01
NoSpecificI_2016_P01
both resolve to the same thing. These may look like two different elements but when TM1 evaluates an element name it strips out all the spaces.
Re: Formatting Error
Posted: Tue May 10, 2011 5:43 pm
by jim wood
Tomok that's a sweeping statement. The spaces may be foreced by the database the information is coming from. Also some people do actually like to see spaces in element names.
Re: Formatting Error
Posted: Tue May 10, 2011 7:17 pm
by lotsaram
kgranger wrote:Hello.
Help please!
I am trying to extend our time dimension by another year using a TI process developed for the purpose.
Everything looked fine, until I looked at a metric named, No Specific I_YYYY_WWW. For the prior year (2015), the format is as expected, but for the year 2016 (the year I have added) the space between Specific and I is not there.
Correct original format - No Specific I_2015_P12
Format TM1 reverts to - No SpecificI_2016_P12
Initially I thought this was an issue with the TI, so deleted the 2016 metric and tried manually adding - with the space.
On hitting save, the format reverted to the space being missing. This is causing a problem, as the format is key for certain aspects of our code.
Does anyone know why this is happening, and anyway to resolve it????
I have tried adding a number of different elements into the dimension, but it is only the format No SpecificI_2016_P01 that doesn't work.
No Specific Monkey
No Specific I
No Specific I_
No Specific I_2016_
No Specific I_2016_P
No Specific I_2016_P0
No Specific I_2016_P011
No SpecificI_2016_P01
No Specific I_2016_P1
Thanks in advance.
Kirk
Kirk - As far as TM1 is concerned the element 'No Specific I_2016_P01' already exists. You would need to first delete the element before you can add it with the space in the element name. But really this isn't important as you can query 'No Specific I_2016_P01' from any UI and TM1 will return the same result as if you queried 'No SpecificI_2016_P01' as element names are case and space insensitive.
Jim - I don't think Tomok ment that element names should not contain spaces only that it is not possible to have a design in TM1 where spaces are used to differentiate between elements (eg. you can't define "MeasureA" and "Measure A" as being 2 distinct elements).
Re: Formatting Error
Posted: Tue May 10, 2011 8:34 pm
by tomok
jim wood wrote:Tomok that's a sweeping statement. The spaces may be foreced by the database the information is coming from. Also some people do actually like to see spaces in element names.
That's why I specifically highlighted the word
important, meaning it has a significance other than just cosmetic. As far as TM1 is concerned, spaces are only cosmetic because they are ignored for everything except display purposes.
Re: Formatting Error
Posted: Tue May 10, 2011 9:27 pm
by jim wood
Apologies. I mis-understood your point.
Re: Formatting Error
Posted: Wed May 11, 2011 1:28 am
by Andy Key
kgranger wrote:Initially I thought this was an issue with the TI, so deleted the 2016 metric and tried manually adding - with the space.
On hitting save, the format reverted to the space being missing. This is causing a problem, as the format is key for certain aspects of our code.
If you are deleting and then adding what TM1 considers to be the same element in the same Dimension Editor session, and you only hit save after adding the element again, then the change to the dimension where you deleted the element would not have been registered before you added it again.
Delete the element, then hit save (and just for good measure close and re-open the Dimension Editor) then add the element again (with the space) and you should be fine.
Re: Formatting Error
Posted: Wed May 11, 2011 8:08 am
by kgranger
Thanks Andy Key, that solution worked.
I didn't realise that TM1 'ignored' spaces, so my actual coding would probably have worked fine.
The problem is when searching a subset for *No Specicic I_*, as it didn't return any values for 2016 due to the different format.
Thanks for all your replies.
Kirk
Re: Formatting Error
Posted: Thu May 12, 2011 1:21 am
by stex2727
TM1 ignores spaces except ...........
....... when using filter by wildcard in the subset editor.
Stex
Re: Formatting Error
Posted: Thu May 12, 2011 2:21 am
by Martin Ryan
And with functions like "scan", "subst" and "long".