You have to connect the button-release-event
after all other functions have worked.
<?php
// Connect signal
$this->arWidgets["lstExcludes"]->connect_after(
"button-release-event",
array(&$this, "OnClickList"));
// Get the current selection:
<?php
function OnClickList() {
$nSelRow = $this->arWidgets["lstExcludes"]->selection[0];
if( is_int( $nSelRow)) {
echo get_text( $nSelRow, 0);
}
} //function OnClickList()
?>The text in col 1 of the selected row is echoed now.
Neueste Kommentare
vor 47 Wochen 3 Tage
vor 48 Wochen 2 Tage
vor 48 Wochen 6 Tage
vor 51 Wochen 2 Tage
vor 1 Jahr 19 Wochen
vor 1 Jahr 23 Wochen
vor 1 Jahr 27 Wochen
vor 1 Jahr 27 Wochen
vor 1 Jahr 27 Wochen
vor 1 Jahr 44 Wochen