randerCell in relative Record table

Archived from the Xataface Users forum.

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!!


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


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!


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


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 ) ?


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