Page 1 of 1

randerCell in relative Record table

PostPosted: Tue Sep 02, 2008 3:32 am
by fantomasdm
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!!

PostPosted: Tue Sep 02, 2008 7:57 am
by shannah
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

PostPosted: Thu Oct 30, 2008 5:04 pm
by fantomasdm
With new Version 1.0.4 is now possible to using renderCell and renderRow in the related list view?
Thanks for help!

PostPosted: Thu Oct 30, 2008 5:17 pm
by shannah
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

PostPosted: Tue Nov 04, 2008 1:47 am
by fantomasdm
HI, Thanks for adding future in release 1.0.6!!
For using it where I have to add function __renderCell( &$record ) ?

PostPosted: Tue Nov 04, 2008 12:39 pm
by shannah
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