I have two tables:
tbl_history
tbl_organisation
In list view for tbl_history, the organisation name is shown (which is generated because of the vocabulary in field.ini pulling that from valuelists.ini, and when clicked takes me to the correct record in the tbl_history.
When the organisation name is clicked in list view of tbl_history I want this to load the edit view of the organisation. I have achieved this by rendercell:
- Code: Select all
function org_id__renderCell(&$record){
return '<a href="index.php?-action=browse&-table=tbl_organisation&org_id='.$record->strval('org_id').'">'.$record->val('org_id').'</a>';
}
This works, but the problem is the the organisation name is no longer shown, just the org_id.
If I change the code to:
- Code: Select all
function org_id__renderCell(&$record){
return '<a href="index.php?-action=browse&-table=tbl_organisation&org_id='.$record->strval('org_id').'">'.$record->val('org_name').'</a>';
}
... then nothing is rendered in the cell.
How to I show the organisation name as defined in valuelists.ini ?
Any help would be gratefully received.
Many thanks, Tom