Page 1 of 1

Untitled Record in current record view with relations

PostPosted: Tue May 08, 2012 6:53 am
by Philipp Wenzel
Hi,
how can i change the title from related records? (like in the attachment)

I tried it with the getTitle() function but it does not work.
Code: Select all
<?PHP
class tables_terror {
function getTitle(&$record){
return $record->val('nation_name');
}
}
?>

this will result in a white screen.

Any ideas?
Phil

Re: Untitled Record in current record view with relations

PostPosted: Tue May 08, 2012 9:48 am
by shannah
You'll also need to implement the titleColumn() method. This just returns the name of the column that you want to use for the title.

-Steve