cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modify UI in existing Backoffice form. Add/Remove elements in a widget.

Former Member
0 Kudos
374

Hi Experts,

I want to modify an existing Backoffice form i.e. the 'Create Return Request' form available in the Customer Service Backoffice perspective.

Basically I do not want the form to contain the existing form elements for e.g. instead of Order, Customer Name, Total Discount, the Product table, the 'RESET' and 'CONFIRM SELECTED' buttons, I want a simple title called 'XYZ RETURN REQUEST' and 2 labels and textboxes like 'RETURN NO' and ' RMA NO'.

Is this possible? If so please suggest how?

Thanks

View Entire Topic
former_member682593
Participant
0 Kudos

Hi,

I'm not familiar with Customer Support view, but you need to check the configuration. I think the first section is done by config, so you can easily hide the attributes inside it. However the sections below seems like created by a custom section renderer. You need to find out the spring bean and class used for that, and override it.

Thanks, Marcin

Former Member
0 Kudos

Thanks Marcin for the comment. But I did not found any custom renderers for this view/form. Maybe this is not transparent to the developer in backoffice.

The goal is even if I can show my widget (myomscreatereturnrequestwidget) instead of the existing form widget ('omscreatereturnrequestwidget') this will serve my purpose.

I could achieve this by changing the customerbackofficesupport extension widget configuration (customersupportbackoffice-backoffice-widgets.xml) file to refer to my widget instead of OOTB one , but however this might not be a good design and recommendation by Hybris.

former_member682593
Participant
0 Kudos

This is what the merging mechanism is for. You can override the view / behaviour of existing components (in customersupportbackoffice) by placing appropriate configuration in your own extension. Check out the documentation: https://help.hybris.com/6.7.0/hcd/8bd51bcd8669101486cec32d579bb2c2.html#loio8bd51bcd8669101486cec32d...

Former Member
0 Kudos

Hi Marcin, in the link forwarded by you, I could not really decide whether the merging mechanism can be used for widgets. I tried extending the widget in my own extension's widget xml file, but that attempt was not successful. Have you been able to do that?