Rogue Wave Server/Rogue Wave Views Integration > Server/Views Mapping > Managing User-Defined Server Object Types > Converting an Rogue Wave Server User-Defined Type Value to an Rogue Wave Views Type Value
 
Converting an Rogue Wave Server User-Defined Type Value to an Rogue Wave Views Type Value
When the value of a user-defined type is received from the server, Rogue Wave Server needs to convert it to an Rogue Wave Views value before it can store it in a Views data source. To achieve this conversion, you must install a Server converter using the following static member function:
void IlsSwComponent::DeclServerConverter(const IlsString& userTypeName,
IlsSwServerConverter converter);
The converter must have the following signature :
typedef IliValue (*IlsSwServerConverter)(const IlsMvValue&);
This function receives a value of type IlsMvValue and should return a value of type IliValue, which can be stored in the data source.
As all Rogue Wave Server user-defined types have constructors that take values of type IlsMvValue, you can easily retrieve an instance of your user-defined type using the received value.

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