I have wrote a renderCell function in the delegate class like following, but it doesn't work because the URL is incorrect:
- Code: Select all
function reference_attachment__renderCell(&$record){
if ($record->val('reference_attachment') == NULL){
return $record->strval('reference_attachment');
} else {
return '<a href="'.$record->strval('reference_attachment').'">'.$record->strval('reference_attachment').'</a>';
}
}
Is there any way to show the actual URL of the attachment without hard-coding with /tables/table_name/field_name/cell_value, just as how xataface handle the attachment in browse mode?