This is my first post. I've been having a look around the forum and it seems like a great community. On that note, I'm hoping someone might be able to help me.
As per this forum post - viewtopic.php?t=4091&highlight= I'm trying to do something similar.
I have a "Customers" table and a "SiteData" table.
In "Customers" one of the fields is "CompanyName", in "SiteData", CompanyName is pulled from the "Customers" table so that I can link sites to customers. (This all works fine).
What i'd like to do is...In the "Customers" table, click on one of the CompanyName links and have it display me all sites from the "SiteData" table that that particular CompanyName is assigned to.
I have this, but it doesn't seem to work.
in tables/Customers/customers.php
- Code: Select all
<?php
function CompanyName__renderCell(&$record){
return '<a href="'.DATAFACE_SITE_HREF.'?-table=SiteData&CompanyName='.$record->val('CompanyName').'">'.$record->val('CompanyName').'</a>';
}
?>
and in tables/Customers/fields.ini
- Code: Select all
[CompanyName]
noLinkFromListView=1
When I have noLinkFromListView set, it just doesn't make it a hyperlink (which I guess makes sense) but I want it to make the link that i've specified above. If I don't have it set in fields.ini then it just points to the usual view that the rest of the fields point to (i.e. Usual functionality).
Can anyone help? Have I missed something stupid? Could I possibly ask anymore questions?
Thanks a lot.
Paul