Notifications

1 views

Description

isOmitEditButton is used in many situations across the platform. One of them is as a condition for the edit UI action seen in many related lists. Below is the example condition and UI action.

sys_id: 7fff4c3d0a0a0b3400ad3f1a1d613f74

(new GlideRecord(current.getTableName())).canWrite() && RP.isOneToMany() && !RP.getListControl().isOmitEditButton()

 

 

 

Cause

Below there are 3 conditions being checked we are only talking about the last one !RP.getListControl().isOmitEditButton().

sys_id: 7fff4c3d0a0a0b3400ad3f1a1d613f74

(new GlideRecord(current.getTableName())).canWrite() && RP.isOneToMany() && !RP.getListControl().isOmitEditButton()

RP.getListControl goes into the related list control and isOmitEditButton is suppsoed to check if the the "Omit edit button" is checkled true. isOmitEditButton is retrurning true when the "Omit edit button" is not checkled and false when the "Omit edit button" is checkled true.

 

 

 

 

Resolution

PRB1362276 was written for this. Development responded by saying this is working as expected because this has always been broken and fixing this would break every single use of it.

Article Information

Last Updated:2019-09-23 09:59:06
Published:2019-09-23