I have this code, which generates weird output. Can someone make any sense out of it ? I would expect simple concatenations of text and a number (converted to text).
Code: Select all
LogOutput( 'INFO', 'z' | numbertostring( HierarchySubsetExists( 'Rp_Company', 'Rp_Company', 'beperking Rp' ) ) );
LogOutput( 'INFO', 'y' | numbertostring( SubsetExists( 'Rp_Company:Rp_Company', 'beperking Rp' ) ) );
LogOutput( 'ERROR', 'pp' | numbertostring( HierarchySubsetExists( 'Rp_Company', 'Rp_Company', 'beperking Rp' ) ) );
AsciiOutput( 'ERROR.txt' ,'pp' | numbertostring( HierarchySubsetExists( 'Rp_Company', 'Rp_Company', 'beperking Rp' ) ) );
The last line gives me a text file called pp.cma ! (shouldn't it be ERROR.txt ?)20960 [4] DEBUG 2020-02-29 18:25:10.970 TM1.TILogOutput Rp_Company1
20960 [4] INFO 2020-02-29 18:25:10.970 TM1.TILogOutput y1
20960 [4] DEBUG 2020-02-29 18:25:10.970 TM1.TILogOutput Rp_Company1
The contents are:
Am I missing something ? Only SubsetExists gives me the correct output."Rp_Company1"
TM1 2.0.8 currently. I am using Architect. I created a subset as we would always do, in the Subset Editor in Architect. Should I need to use PAW for this to work ?
Thanks,
Wim