cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable delete action while selecting an item from Back-office collection(List view) browser?

former_member632827
Participant
0 Kudos

Hello team,

How to disable Delete action while selecting an item from Back-office Collection(List view) browser based on selected item's attribute value. Please help me If it is possible. In case I can use my custom render, How can send disable event to Delete Action of both Collection browser and editor area?.

Hybris - 1808v.

Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member625836
Active Contributor
0 Kudos

Hi ,

Also property attribute of action element in configuration is in fact interpreted as SpEL (resolved against widget model). It mean that you can have some condition there and return null, when button should be disabled, e.g.:

 <y:action action-id="com.hybris.cockpitng.action.delete" position="20"
                               property="selectedObjects.isEmpty() ? null : selectedObjects"
                               triggerOnKeys="#del"/>

Cheers, Jacek

former_member620692
Active Contributor
0 Kudos

Hi - I believe your requirement can be fulfilled using the Dynamic Forms functionality. Please check https://help.sap.com/viewer/5c9ea0c629214e42b727bf08800d8dfa/1905/en-US/8bb48c3e86691014ba23af134a9a... for more details.

former_member632827
Participant
0 Kudos

Thanks so much for the reply , I have seen the Dynamic forms, I think it is not fulfilled my Collection browser-related requirement.