Hello I am new to Sugar and I have this problem
I have a built by me module named Backorders in which I included a related field named Account Name.
Also I implemented the CETeams plugin, so one account belongs to one CETeam, saving ceteam_id in Accounts table. I choose the team while creating the account.
When I save my backorder and then go back to ListView, I can export the record(s) to an excel file where it displays the account name and account Id.
I need that when I export the records to csv it displays the CETeam name shown in this relationship:
Backorders Accounts CETeams
account_id -------------> id | ----->id
account_name | name
ceteam_id ---------
I know I can use additional_fields attribute from the realated field in vardefs, but as far as I know it only works with fields from the second table (for example only the records from Accounts table)
The closest solution I found in this forum is to display aditional fields on the DetailView, but I think I need to store the ceteam_name in the backorders table so it can be exported to csv. That leads me to another interrogation, since I need to save a CETeam name, based on what Account the user chose in the accounts popup, Do I need to code Ajax to get that information before save? Or Sugar can manage this procedure in the save method?
Sorry I am still very confused with the framework, I am coming back to php after many years being on Rails.
Hope you can help me.


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks