Page 1 of 1

TI process to read out a string-calculated cell

Posted: Fri Jul 01, 2011 8:46 pm
by Wim Gielis
Hello all,

Had a busy week at customers and my brain doesn't work at full speed anymore I'm afraid.

I have a simple cube, 2 dimensions. Last dimension contains a string element called 'String'. Then, I have a very basic rule like:

['Elem','String']=S:'10';

'Elem' is just a simple element in the first dimension of the cube. If I just put this line of code in a TI process:

AsciiOutput('testfile.cma',CellGetS('MyTestCube','elem','String');

the file is indeed created, but with no contents (except for the 2 double quotes). The 10 does not show up in the file.
I also tried by feeding, including feedstrings and so on (cell is indeed fed), to no avail.

What am I missing here please?

Best regards, have a good weekend,

Wim

Re: TI process to read out a string-calculated cell

Posted: Fri Jul 01, 2011 9:23 pm
by jstrygner
This ASCIIOutput is in Prolog/Epilog, or is on Metadata/Data and cubeview is the source for TI?

Re: TI process to read out a string-calculated cell

Posted: Sat Jul 02, 2011 6:28 am
by Wim Gielis
Hello,

The line of code is in the Prolog (or Epilog) of a process with data source 'None'.

If I do the same but the 10 is written directly (not rules-calculated) in the cube, it works perfectly and it appears in the text file.

Wim

Re: TI process to read out a string-calculated cell

Posted: Sat Jul 02, 2011 12:36 pm
by lotsaram
Which version? Sounds like a bug.

Re: TI process to read out a string-calculated cell

Posted: Sat Jul 02, 2011 1:34 pm
by Wim Gielis
lotsaram wrote:Which version? Sounds like a bug.
Hmmm, very strange, now it works again as it should...
I swear yesterday it didn't ;-)

Anyway many thanks for the attention.

Wim