I created custom/modules/SR_SR_Notes/views/view.list.php
SR_SR_Notes is custom module and there are relationship(MtoM) between Leads module. My relation name is āsr_sr_notes_leadsā. I want to get āFull Nameā from Lead module to in my custom module list view which is SR_SR_Notes.
Here is what I did to get around.
Create new field in the Accounts.
Copy the other module field to Accounts.
Below is code defined in /var/www/html/suitecrm/custom/modules/Accounts/views/view.detail.php
What this code is doing ? can you please explain it once ? I donāt understand this code can you please help me. I have one field in Task module and when i create Task for any account then i want that field in list view with proper data against that account . Please help
Thank you in advance
namitkakusuitecrm,
create new_field_hold_task_val in Account module.
Define function display below in /var/www/html/suitecrm/custom/modules/Accounts/views/view.detail.php
function display() {
$task_rel = āaccount_tasks'; // look up relationship
$task_Beans = $this->bean->$task_rel->getBeans();
$this->bean->new_field_hold_task_val = $task_Bean->task_field_val; //Copy field from task to account.
$this->bean->save();
}
Ok let me try this .I will let you know for further help if needed. And another thing is how i will show this field in list view in accounts module ?
How this will work sir if we donāt have any field in Tasks module i have to create field in task module also ?
Sir below is the scenario:
I have one field in Task module āOrder Typeā when i create any Task for that account from activities then How should i display that āOrder Typeā field in account module.?
Hello Sir
As per your code i had created one field inside Account module and also i had added that field in Edit view now when i create any account then how it should be related to Tasks ?