[SOLVED] Name of current record

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

[SOLVED] Name of current record

Postby cbrunet » Mon Sep 21, 2009 8:50 am

Hi,

How can I determine what is displayed as the name of the current record in Details view?

Charles.
Last edited by cbrunet on Tue Sep 22, 2009 7:36 pm, edited 1 time in total.
cbrunet
 
Posts: 13
Joined: Tue Aug 19, 2008 7:14 am
Location: Québec, Canada

Postby shannah » Mon Sep 21, 2009 12:33 pm

You can override this value by defining the getTitle() method in your delegate class.

e.g.
Code: Select all
function getTitle(&$record){
    return $record->val('first_name');
}
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 30 guests

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