Dynamic View Services > Specifying Dynamic View Types > Hyper-References > Dereferencing a Hyper-Reference
 
Dereferencing a Hyper-Reference
To select a hyper-reference, you must invoke the callback function IlsRpObject::onDereference. When you double-click on the title of a TableR object, the callback function TableR::onSelect is called. The body of this function is as follows:
void TableR::onSelect(){
onDereference(getAttributeId("title"));
}
On the server side, dereferencing implies the creation of a new CompanyTree view whose origin is the target of the company relation of the department represented by the TableR object. As a consequence, a new TreeR representation is created on the component side. However, if the CompanyTree view has already been opened on the Company by the same component, it is not duplicated. Instead, the virtual member function IlsSwRepresentation::setSelection is executed on the associated representation. By overriding this function in a subclass of IlsRepresentation, you can implement the appropriate feedback (for instance, bringing the representation window to the front). See also the function IlsRpObject::onDereference, in the Rogue Wave® Server Reference Manual, to learn how to force the duplication of a view.

Version 6.3
Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.