company logo

Line :: property - Get property handle for selected item

The function returns the property handle for the attached list item (line). When no line is attached, the function throws an exception. Requesting a property for static or head lines (line type Static or Headline) will through an exception.

virtual int32 cList::doBeforeDataSet ( ) { // OSI fragment

VARIABLES

  Property             prop;

PROCESS

  if ( !line.isValid() )                            LEAVE;

  if ( line.type == odabagui::LineTypes::Static )   LEAVE;

  

  prop &= line.property;

  ... do something

  return(true);

}

Notes:

The selection in the property handle does not necessarily correspond with the list item data. Only for the current line the data displayed in the list item is selected in the returned property handle.

Return value:  Propery handle ( odaba::Property & )

Implementation details

odaba::Property & Line  :: property (  )