Sorry to be a pain! I'm afraid I seem to be getting error messages with these delegate classes.
The first, for displaying an 'Open in New Window' returns this:
- Code: Select all
12
Last updated Wednesday, December 31, 1969 - 2049 weeks ago
Fatal error: Cannot use object of type PEAR_Error as array in /home/thenorva/public_html/atmresearch/xataface2/Dataface/Table.php on line 2485
Image ID 12
The second class produces this error:
- Code: Select all
Warning: Missing argument 1 for Dataface_RelatedRecord::htmlValue(), called in /home/thenorva/public_html/atmresearch/tables/tblFileCardCombo/tblFileCardCombo.php on line 8 and defined in /home/thenorva/public_html/atmresearch/xataface2/Dataface/RelatedRecord.php on line 297
Fatal error: Attempt to get value for fieldname '' that does not exist in related record of relationship 'Images'. Acceptable values include {ImageID, FileCardID, Image, Image_mimetype}.
On line 256 of file /home/thenorva/public_html/atmresearch/xataface2/Dataface/RelatedRecord.php in function printStackTrace()
On line 298 of file /home/thenorva/public_html/atmresearch/xataface2/Dataface/RelatedRecord.php in function getValue()
On line 8 of file /home/thenorva/public_html/atmresearch/tables/tblFileCardCombo/tblFileCardCombo.php in function htmlValue()
On line of file in function section__images(Dataface_Record Object)
On line 49 of file /home/thenorva/public_html/atmresearch/xataface2/Dataface/RecordView.php in function call_user_func(array(tables_tblFileCardCombo Object,section__images),Dataface_Record Object)
On line 383 of file /home/thenorva/public_html/atmresearch/xataface2/Dataface/SkinTool.php in function Dataface_RecordView(Dataface_Record Object)
On line 15 of file /home/thenorva/pu in /home/thenorva/public_html/atmresearch/xataface2/Dataface/RelatedRecord.php on line 256
I think I have changed any field names etc. that need to be changed. In this second class it looks like there is a line missing from the code. I looked up the delegate class reference but didn't find an entry for getRelatedRecordObjects. I changed the line:
- Code: Select all
$content .= '<li>'.$image->htmlValue().'</li>';
to this:
- Code: Select all
$content .= '<li>'.$image->htmlValue(&$record).'</li>';
But it simply displayed another error message:
- Code: Select all
Catchable fatal error: Object of class Dataface_Record could not be converted to string in /home/thenorva/public_html/atmresearch/xataface2/Dataface/RelatedRecord.php on line 245
I'm sorry about this, most likely some sort of brainfade on my part!
Robert