Hi Sugarers,
I've created a custom module in my Sugar 4.5.0e called "Letters". I based it on the "Meetings" module, and it's pretty simple and works just fine on its own. Now I'd like to create a relationship between the Letters_cstm.contact_id field and Contact.id. My eventual goal is to add Letters into the Activities Subpanel, so that when I look at a contact, I can see any calls/meetings/letters/tasks/etc right there in the subpanel.
So far I have had no luck at all. Here's what I've done:
- created metadata/letters_contactsMetaData.php. I just duplicated the meetings_contacts file and changed all the meeting references to letters.
- added a reference to the above file into Modules/TableDictionary.php
- repaired Relationships. I added the letters_contacts table (including indices) manually.
I assume I need to add something to the vardefs file, but what? And where -- just the Contacts/vardefs.php, or do I need to do Letters/vardefs.php as well? Or am I totally on the wrong track? I saw a mention in a forum post of a Ken Brill relationship "walkthrough" but wasn't able to find anything beyond basic file descriptions.
Any advice would be much appreciated --
Eileen


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks