List cell value

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

List cell value

Postby jsantari » Mon Dec 20, 2010 7:14 am

Two questions; is there a way to get the entire final contents displayed in a list cell using delegates? There is a   blank space at the beginning of each cell I'd like to remove. Also, can you disable the link for a cell?
jsantari
 
Posts: 2
Joined: Mon Dec 20, 2010 6:27 am

Re: List cell value

Postby shannah » Mon Dec 20, 2010 10:41 am

1. You can override the output for a cell using the delegate class method:
Code: Select all
myfield__renderCell($record){
    return 'my cell contents';
}


2. You can disable the link in the cell by adding the noLinkFromListView=1 directive to the field in the fields.ini file:
Code: Select all
[myfield]
    noLinkFromListView=1
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: List cell value

Postby jsantari » Mon Dec 20, 2010 2:09 pm

Thanks for the noLink... that works. However the   html blank is still always at the beginning of the data in a cell and its not in the $record->display('field_name') value so its being interjected somewhere in the code. Not sure where to look to find it.
jsantari
 
Posts: 2
Joined: Mon Dec 20, 2010 6:27 am


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 16 guests

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