Dynamic View Services > Specifying Dynamic View Types > User-Defined Representation Attributes Types > Using the Identity Type in the Table Representation Model
 
Using the Identity Type in the Table Representation Model
On the component side, the function setValue called on the class RowR allows you to use Identity as a possible type for columns of table representations, as shown below:
class RowR : public IlsRpObject
{
public:
...
void setValue(int index,const Identity& value);
...
};
The following macro must be also added to the declaration of the representation object RowR to the representation model interpreter:
ILS_RP_OBJECT_BEGIN(RowR)
...
ILS_RP_INDEXED_ATTR_USERTYPE(RowR,Identity,column,setValue)
...
ILS_RP_OBJECT_END(RowR)
Note that the callback function declared by IlsRpObject that should be used to notify the server of a modification of an Identity attribute value is the following:
virtual IlsBoolean onUpdate(IlsRpAttributeId,IlsMvUserType& value);

Version 5.8
Copyright © 2014, Rogue Wave Software, Inc. All Rights Reserved.