Dimension CreateAttributeTable
Creates one or more attribute tables for a dimension.
These characters are not allowed for attribute names: [ ] \ / : * ? " < > | <TAB> <LF> <CR>.
The maximum length of an attribute name is 50 characters or 150 bytes. If an attribute name is greater than 50 characters or 150 bytes, ErrorID = 89 is returned.
Spaces are trimmed automatically at the beginning and the end of an attribute name. The attribute table is created using the trimmed name. Other white spaces are not allowed.
Request
<Alea:Document xmlns:Alea="http://www.misag.com">
<Alea:Request RequestID="001" Class="Dimension" Method="CreateAttributeTable">
<Alea:Dimension Name="MyDimension">
<Alea:AttributeTable ID="1">
<Alea:Attribute Name="Attribute11" Type="C" Width="10" Decimal="0">
<Alea:Description>Attribute11 Description</Alea:Description>
</Alea:Attribute>
<Alea:Attribute Name="Attribute12" Type="C" Width="10" Decimal="0">
<Alea:Description>Attribute12 Description
</Alea:Description>
</Alea:Attribute>
</Alea:AttributeTable>
<Alea:AttributeTable ID="2">
<Alea:Attribute Name="Attribute21" Type="C" Width="10" Decimal="0">
<Alea:Description>Attribute21 Description</Alea:Description>
</Alea:Attribute>
</Alea:AttributeTable>
</Alea:Dimension>
</Alea:Request>
</Alea:Document>
This table describes the values for the Type
attribute:
Type attribute | Value | Width (allowed values) | Precision (allowed values) |
---|---|---|---|
C | String | 1 to 253 | Not applicable |
N | Numeric | 1 to 253 | 0 to (width-2) |
D | Date | Not applicable | Not applicable |
L | Logical | Not applicable | Not applicable |
For example, if the width of a numeric attribute is set to 10, you can define 0 to 8 bytes for the decimals.
AttributeTable
IDs are 1-based. The
valid AttributeTable
IDs are 1, 2 and 3.
Answer
<Alea:Document xmlns:Alea="http://www.misag.com">
<Alea:Request RequestID="001">
<Alea:Return/>
</Alea:Request>
</Alea:Document>
Error
<Alea:Document xmlns:Alea="http://www.misag.com">
<Alea:Request RequestID="001">
<Alea:Error ErrorID="error_code"/>
</Alea:Request>
</Alea:Document>