Sei sulla pagina 1di 4

OUtput from Cube view

ASCIIOutput(vFile, vVersion,vCustomer,vCompany,vAccount,vExpenseLine,vIS_Departm
ent,vCategory,vBrand,vBudgetTime,vValue);
File path
vFile = 'C:\TM1\Data Sources\Outputs\Budget Expenses 2012 Brand Change Backup';

ATTRS(dimension, element, attribute)


Argument

Description

dimension
element

A valid dimension name.


An element of the dimension.

attribute
The attribute for which you want to retrieve a value. This argum
ent must be a valid attribute of the element.
vTo=ATTRS('Brand',vBrand,'SendTo');

IF(DTYPE('Budget Time', vTime) @= 'S');


vOldValue=CELLGETS('Budget Expenses', vCompany, vIS_Department, vVersion, vSe
ction, vCustomer, vCategory, vTo, vAccounts, vTime);
vNewValue = vValue | ', ' | vOldValue;
CELLPUTS(vNewValue, 'Budget Expenses', vCompany, vIS_Department, vVersion, vS
ection, vCustomer, vCategory, vTo, vAccounts, vTime);
vZeroValue='';
CELLPUTS(vZeroValue, 'Budget Expenses', vCompany, vIS_Department, vVersion, v
Section, vCustomer, vCategory, vBrand, vAccounts, vTime);
ELSE;
vOldValueN=CELLGETN('Budget Expenses', vCompany, vIS_Department, vVersion, vS
ection, vCustomer, vCategory, vTo, vAccounts, vTime);
vNewValueN = StringToNumber(vValue) + vOldValueN;
CELLPUTN(vNewValueN, 'Budget Expenses', vCompany, vIS_Department, vVersion, v
Section, vCustomer, vCategory, vTo, vAccounts, vTime);
vZeroValueN=0;
CELLPUTN(vZeroValueN, 'Budget Expenses', vCompany, vIS_Department, vVersion,
vSection, vCustomer, vCategory, vBrand, vAccounts, vTime);
ENDIF;
DTYPE returns information about the element type of the specified element. It re
turns "N" if the element is a numeric element, "S" if the element is a string el

ement.
Syntax
DTYPE(dimension, element)
CELLGETS
This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.
This function retrieves a value from a string cube cell.

CellPutS
This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.
This function sends a string value to a cube cell.
Syntax
CellPutS(String, Cube, e1, e2 [,...en]);
CELLGETN
This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.
This function retrieves a value from a numeric cube cell.
Syntax
CellGetN(Cube, e1, e2 [,...en]);
CellPutN
This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.
This function sends a numeric value to a cube cell.
Syntax
CellPutN(x, Cube, e1, e2 [,...en]);
ViewZeroOut
This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.
This function sets all data points in a view to zero.
Syntax
ViewZeroOut(Cube, ViewName);
used in prolog tab
DimensionElementComponentAdd
This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.
This function adds a component (child) to a consolidated element.
Syntax
DimensionElementComponentAdd(DimName, ConsolidatedElName,ElName, ElWeight);
DimensionElementComponentAdd('Version', 'All Versions', pTarget, 1);
DimensionElementInsert

This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.


This function adds an element to a dimension. You can use this function to add n
umeric, string, or consolidated elements. Note that you cannot use this function
on the Data or Epilog tabs of the TurboIntegrator window.
Syntax
DimensionElementInsert(DimName, InsertionPoint, ElName,ElType)
DIMENSIONELEMENTINSERT('Time','',vPeriod,'n');
ExecuteCommand
This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.
This function executes a command line during a process. You can use ExecuteComma
nd to run a desktop application, but not a service
If you use ExecuteCommand to run an executable, the following conditions apply:
If the CommandLine argument specifies only the name of a file to be executed
, a Windows server looks for the file in both the server database directory and
in the directory where Tm1s.exe resides. A UNIX server looks for the file only in
the server database directory.
If the CommandLine argument uses a relative path prefix, both the Windows an
d UNIX server attempt to locate the file in the server database directory only.
On either the Microsoft Windows or UNIX server, you can pass an absolute path to
the CommandLine argument to execute a file in any location..
Syntax
ExecuteCommand(CommandLine, Wait);
ELPAR
This is a TM1 worksheet function, valid only in worksheets.
ELPAR returns the parent of an element in a specified dimension
Syntax
ELPAR(dimension, element, index
ELPAR('Brand Category Items',vItems,1);
DimensionSortOrder
This is a TM1 TurboIntegrator function, valid only in TurboIntegrator processes.
This function sets a sort type and sense for dimension elements and for componen
ts of consolidated elements within a dimension. The sort order defined byDimensi
onSortOrder determines how the subset All dipsplays in the Subset Editor.
DimensionSortOrder sets properties for a dimension; the dimension is not actuall
y sorted until it is saved on the server.
Syntax
DimensionSortOrder(DimName, CompSortType, CompSortSense,ElSortType , ElSortSense
);

DIMENSIONSORTORDER('Income Statement','ByInput','ASCENDING','ByHierarchy','ASCEN
DING');

Potrebbero piacerti anche