hi everybody,
i have created a relate field in case module as admin, and i want to show this relate field in sugar crm customer portal. this field is not showing in portal layout area. could we use relate field in portal layout. please confirm.
hi everybody,
i have created a relate field in case module as admin, and i want to show this relate field in sugar crm customer portal. this field is not showing in portal layout area. could we use relate field in portal layout. please confirm.
Hi,
relate fields in portal are hidden.
You need to :
* ensure your custom module is accessible on the portal ( Adding a Custom Module to the Customer Portal )
* manually add the field in the view via source modification (custom/modules/<your module>/clients/portal/views/record/record.php)
* if you need the relate field to be editable, you need to override the portal relate js controller to remove the "do not display on create views" Sugar added there.
Can you suggest in which path should i override js file and remove code?
hi, to extend portal relate field you shall put the following JS in custom/clients/portal/fields/relate/relate.js
({ /** * extends clients/portal/fields/relate/relate.js * Portal to target current version of field * Relate is the field type * Field is the view type */ extendsFrom: 'PortalRelateField', _render() { //skip current parent, not tested var grandparent = Object.getPrototypeOf(Object.getPrototypeOf(this)); grandparent._render.apply(this); }
hi, to extend portal relate field you shall put the following JS in custom/clients/portal/fields/relate/relate.js
({ /** * extends clients/portal/fields/relate/relate.js * Portal to target current version of field * Relate is the field type * Field is the view type */ extendsFrom: 'PortalRelateField', _render() { //skip current parent, not tested var grandparent = Object.getPrototypeOf(Object.getPrototypeOf(this)); grandparent._render.apply(this); }