randerCell in relative Record table

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

randerCell in relative Record table

Postby fantomasdm » Tue Sep 02, 2008 3:32 am

is there a fuction for renderCell in relative table??

as

Code: Select all
function Autopsia_Codice__renderCell( &$record )
   {
      return "<font color='red'>".$record->val('Codice')."</font>";
   }


where autopsia is relationship and Codice is field on autopsia relationship?

Thanks for all!!
fantomasdm
 
Posts: 114
Joined: Thu Mar 13, 2008 2:35 pm

Postby shannah » Tue Sep 02, 2008 7:57 am

Currently renderCell and renderRow are only available in list view (not the related list view). This will likely be added in an upcoming version.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby fantomasdm » Thu Oct 30, 2008 5:04 pm

With new Version 1.0.4 is now possible to using renderCell and renderRow in the related list view?
Thanks for help!
fantomasdm
 
Posts: 114
Joined: Thu Mar 13, 2008 2:35 pm

Postby shannah » Thu Oct 30, 2008 5:17 pm

Sorry... unfortunately this one slipped through the cracks. Keep bugging me about it, and I will do it.. Just haven't yet had a requirement for this in my own projects.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Postby fantomasdm » Tue Nov 04, 2008 1:47 am

HI, Thanks for adding future in release 1.0.6!!
For using it where I have to add function __renderCell( &$record ) ?
fantomasdm
 
Posts: 114
Joined: Thu Mar 13, 2008 2:35 pm

Postby shannah » Tue Nov 04, 2008 12:39 pm

This method is defined for a particular field.

E.g. suppose you want the email field for the people table to be rendered in some custom way in list view.

You would implement
Code: Select all
function email__renderCell(&$record)


in your people table delegate class. Then even if you have a relationship from another table to the people table, this custom rendering will take effect in the related list view.

-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 25 guests

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