I am trying to follow this tutorial but I donât get any fields in studio. Should this work for Suitecrm?
However, you can still do this without Sugar Logic, leveraging the existing vardefs to grab the record directly. Letâs assume you are wanting to grab the employees field from the related Account record into the Contact record; just add this vardef entry into the a file named custom/Extension/modules/Contacts/Ext/Vardefs/accountsemployeefield.php followed by a âQuick Rebuild and Repairâ
They key parts of the above code snippet is the following:
type, which is set to relate indicating this is a relate field rname, which points to the field name in the related module record link, which is the link field in the Contacts vardef which specifies this relationship module, which is the module which contains the related record
With this vardef entry in place, you can add the account_employees_c field to the DetailView of the Contacts module to have it appear there. Big thanks to Jerry Clark in our Customer Support team for this tip.
Yes I copied and pasted the very same as in tutorial but the field never shows in studio. I re installed,Suitecrm and also checked all permissions etc. below is my php file in custom/modules/Contacts/Ext/Vardefs
I do a repair and rebuild then go to studio and select contacts but the field is not there. I was trying this on 2 different modules first and when I couldnât get it working I said I would try it on the same 2 modules as in the tutorials as it doesnât use custom fields.
To optimize your vardefs, Iâd suggest you disable massupdate for this field and add the join table and join link table so SuiteCRM querying is drastically simplified like this: