Relationship panel refresh on updates on the related entity.
I have a scenario where Opportunity: Personal Data (1:M), and the Personal Data are listed under the relationship panel of opportunity.
We have a status field (enum) for Personal Data. Now the status of personal data gets updated, I want the relationship panel containing the Personal Data under the Opportunity should refresh and show the updated data in the relationship panel.
How can I add this in javascript?
1. On status updates with Personal Data
2. On new Personal Data entity created and linked to Opportunity
I want the relationship panel to refresh automatically and show the data.
I tried with: espocrm/client/src/views/record/panels/relationship.js customizing and adding the listen even,
But this is not getting triggered when the personal data. status is updated. I didn't find any other solution.
Websocket is enabled and working fine. But as mentioned in the espocrm docs WebSocket won't work for the relationship panel.
Can anyone please help me with this?
I have a scenario where Opportunity: Personal Data (1:M), and the Personal Data are listed under the relationship panel of opportunity.
We have a status field (enum) for Personal Data. Now the status of personal data gets updated, I want the relationship panel containing the Personal Data under the Opportunity should refresh and show the updated data in the relationship panel.
How can I add this in javascript?
1. On status updates with Personal Data
2. On new Personal Data entity created and linked to Opportunity
I want the relationship panel to refresh automatically and show the data.
I tried with: espocrm/client/src/views/record/panels/relationship.js customizing and adding the listen even,
Code:
this.listenTo(this.model, 'sync', function () { this.collection.fetch(); }, this);
Websocket is enabled and working fine. But as mentioned in the espocrm docs WebSocket won't work for the relationship panel.
Can anyone please help me with this?
Comment