ILS_RP_INDEXED_ATTR_XXX
 
ILS_RP_INDEXED_ATTR_XXX
Category 
Dynamic view-related macro (component side)
Description 
The macros ILS_RP_INDEXED_ATTR_XXX let you associate editing functions with indexed runtime representation attributes. These macros have the same semantics and are used in the same way as the ILS_RP_ATTR_XXX macros. However, the signature of their editing functions varies slightly in that it takes the attribute index as the first argument and the attribute value as the second argument.
Warning: Rogue Wave Server does not differentiate between the “integer” and “long” types, “int” being considered an equivalent of “long”, both on the server side and on the component side.
Let us consider the following view specification:
view DomainNodes:
...
subscribe Node:
represent Row row
string column[1]=...;
int column[2]=...;
int column[3]=...;
HyperRef column[4]=...;
Here is how you would associate the editing functions setStringColumn, setIntColumn, and setHRefColumn with the runtime attribute column:
ILS_RP_OBJECT_BEGIN(Row)
ILS_RP_INDEXED_ATTR_STRING(Row,column,setStringColumn)
ILS_RP_INDEXED_ATTR_LONG(Row,column,setLongColumn)
ILS_RP_INDEXED_ATTR_HREF(Row,column,setHRefColumn)
ILS_RP_OBJECT_END(Row)
The signatures of the editing functions must be the following or their derivatives:
void Row::setStringColumn(int index,IlsString value);
void Row::setLongColumn(int index,long value);
void Row::setHRefColumn(int index,IlsString value);
Header File 
#include <ilserver/rpmoditp.h>
Synopsis 
ILS_RP_INDEXED_ATTR_BOOLEAN(rpType,attrLabel,modifier)
ILS_RP_INDEXED_ATTR_CHAR(rpType,attrLabel,modifier)
ILS_RP_INDEXED_ATTR_INT(rpType,attrLabel,modifier)
ILS_RP_INDEXED_ATTR_FLOAT(rpType,attrLabel,modifier)
ILS_RP_INDEXED_ATTR_DOUBLE(rpType,attrLabel,modifier)
ILS_RP_INDEXED_ATTR_STRING(rpType,attrLabel,modifier)
ILS_RP_INDEXED_ATTR_USERTYPE(rpType,userType,attrLabel,modifier)
ILS_RP_INDEXED_ATTR_HREF(rpType,attrLabel,modifier)
ILS_RP_INDEXED_ATTR_REF(rpType,attrLabel,modifier,attrType)
ILS_RP_INDEXED_ATTR_FILE(rpType,attrLabel,modifier)
ILS_RP_INDEXED_ATTR_MVVALUE(rpType,attrLabel,modifier)
See Also 
IlsMvFile, IlsRepresentation, IlsRpObject, ILS_RP_ATTR_XXX, ILS_RP_DEFAULT_XXX, ILS_RP_INDEXED_DEFAULT_XXX, IlsString

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