Untitled Record in current record view with relations

A place for users and developers of the Xataface to discuss and receive support.

Untitled Record in current record view with relations

Postby Philipp Wenzel » Tue May 08, 2012 6:53 am

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
Attachments
untitled record.png
untitled record with relation
untitled record.png (32.01 KiB) Viewed 2217 times
Philipp Wenzel
 
Posts: 15
Joined: Sat May 05, 2012 7:10 am

Re: Untitled Record in current record view with relations

Postby shannah » Tue May 08, 2012 9:48 am

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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 5 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved