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.
In order to render into the Customer Portal a relate field, you need to make sure that the target module/records are portal enabled as well.
Thanks Andre
I have created that relate field in case module, and i think this module is portal enable module
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); }