Page 1 of 1

show Name in Posted By instead of ID

PostPosted: Tue Feb 21, 2012 11:06 am
by muzafar
Greetings,

In xataface view sections, we have id showing in Posted By, I want to change it to the name instead of ID, can you please lead me how can I change it to Name from ID?

please check the snapshot in which I have mentioned posted by.

your help will be greatly appreciated.

Thanks..

Re: show Name in Posted By instead of ID

PostPosted: Tue Feb 21, 2012 3:56 pm
by ADobkin
You can use the getCreator() method in your table delegate class, as in:

Code: Select all
function getCreator(&$record) {
        return $record->display('userName');
}


Substitute whatever column name or function you use to determine the user name in your application.

Re: show Name in Posted By instead of ID

PostPosted: Wed Feb 22, 2012 12:57 am
by muzafar
yes thanks it's work.