Retrieves the data type of an attribute of a business object, given the attribute's name or its position in the business object's attribute list.
Syntax
int getAttrType(char * attrName); int getAttrType(int pos);
Parameters
Return values
An integer that represents the data type of an attribute. Attribute data types are defined in BOAttrType.hpp.
0 = BOAttrType::OBJECT 1 = BOAttrType::BOOLEAN 2 = BOAttrType::INTEGER 3 = BOAttrType::FLOAT 4 = BOAttrType::DOUBLE 5 = BOAttrType::STRING 6 = BOAttrType::DATE 7 = BOAttrType::LONGTEXT
Notes
To retrieve the data type of an attribute of the business object, you can specify the attribute name or its position in the list of attributes. If you pass an empty string (" ") as an attribute name, or an invalid attribute position, the getAttrType() method returns -1. If the connector is running at a trace level of 5, an appropriate trace message is also generated.
Examples
pObj.setAttrValue("sti_address.docid","1234", pObj.getAttrType("sti_address.docid"));
See also
See also the descriptions of the getAttrDesc() and getAttrName() methods.