
I'm displaying a relationship with all records form a parent record.
I want to display totals of the records in the relationship, at the
block__after_related_records_list, which is correctly located since I can echo it OK.
However, what I need is to have the totals without having to query the database on literal parameters:
Get the related records in the relationship from the Current Record... That's why the example in the documentation doesn«t work for me.
My code is now:
require_once 'Dataface/RelatedRecord.php';
$record = Dataface_RelatedRecord::getParent();
$variable_array =& $record->getRelatedRecords('Relationship_name');
but I allways get an empty, non Dataface_Record result.
What's funny is that it works if I place it in
class tables_partidos {
function getTitle(&$record)
but that's not where I want it.
I can either access the current record or work with the array of the body of Related Record, but I can«t figure pout where it's stored, and I'm sure it's somewhere.
Can anyone help, Thanks FB
I want to display totals of the records in the relationship, at the
block__after_related_records_list, which is correctly located since I can echo it OK.
However, what I need is to have the totals without having to query the database on literal parameters:
Get the related records in the relationship from the Current Record... That's why the example in the documentation doesn«t work for me.
My code is now:
require_once 'Dataface/RelatedRecord.php';
$record = Dataface_RelatedRecord::getParent();
$variable_array =& $record->getRelatedRecords('Relationship_name');
but I allways get an empty, non Dataface_Record result.
What's funny is that it works if I place it in
class tables_partidos {
function getTitle(&$record)
but that's not where I want it.
I can either access the current record or work with the array of the body of Related Record, but I can«t figure pout where it's stored, and I'm sure it's somewhere.
Can anyone help, Thanks FB