Managing User-Defined Server Object Types
The Server/Views mapping uses a new mechanism to handle user-defined server object types in the columns of Main data sources or Properties data sources. To support user-defined types, the Server/Views mapping library must be able to:
-
assign an Views type to the columns that will store values of user-defined types;
-
convert values of user-defined types to value of predefined Views types;
-
convert Views values to values of user-defined types;
To support user-defined server object types in Views data sources, you can:
-
derive the class IlsSwRow to handle a specific column mapped on a user-defined representation attribute.
-
Use a global converter to convert Views types to Server types and vice versa.
If you choose to use converters, three steps are required. You will have to:
establish an association between an Server user-defined type and an Views type so as to create columns for that type in Views memory tables;
specify a converter to convert from an Server user-defined type to an Views type;
specify a converter to convert from an Views type to an Server user-defined type.