Hello everybody,
is there a possibility to resolve "o.parentId" from type "account" to the name of the account?
We've got this in "\client\modules\crm\src\views\calendar\calendar.j s":
but wanna have the accounts name instead of the ID.
Thanks in advance,
Daniel
is there a possibility to resolve "o.parentId" from type "account" to the name of the account?
We've got this in "\client\modules\crm\src\views\calendar\calendar.j s":
Code:
convertToFcEvent: function (o) { //alert(JSON.stringify(o)); if (o.parentType == "Account") { var event = { [COLOR=#FF0000]title: o.name + " " + o.parentId,[/COLOR] scope: o.scope, id: o.scope + '-' + o.id, recordId: o.id, dateStart: o.dateStart, dateEnd: o.dateEnd, dateStartDate: o.dateStartDate, dateEndDate: o.dateEndDate, status: o.status }; } else { var event = { title: o.name, scope: o.scope, id: o.scope + '-' + o.id, recordId: o.id, dateStart: o.dateStart, dateEnd: o.dateEnd, dateStartDate: o.dateStartDate, dateEndDate: o.dateEndDate, status: o.status }; } }
Thanks in advance,
Daniel
Comment