Hello,
Having some concerns with calculated fields and the solution employed.
Given : 2 modules , a date field date_vis on module B , a date field date_vis on module A and looking to update the date_vis of module A , set it up as calculated field in studio like maxRelatedDate($module B,"date_vis")
The problem with this approach now is that the field only updates when the module A date_vis only updates when saving the record.
As an alternative to scheduling a recalculate fields job and only recalculate the field for the current record thought of forcing the save upon record load with sidecar this.model.save();
this.once("render", this.SaveCalc, this);
SaveCalc : function() {
this.model.save();
}
Are there any caveats to this asides from probably this.on or this.once render running multiple times?
I'm sure there are better ways just couldn't figure it out ? Any thoughts ? Much appreciated