DeleteEnabled property: Row class
Description
This property determines whether a row can be deleted (the equivalent of the user pressing ALT+8 and ENTER). This property takes a Boolean value.
Note:
This property controls only whether an end-user can delete a row. Rows can still be deleted using PeopleCode.
This property is typically used to prevent deletion of an individual row that the other properties controlling deletion would allow to be deleted. The following table goes through the Boolean logic.
| Will delete be allowed by user? | Others enable | Others disable |
|---|---|---|
|
DeleteEnabled = True |
Yes |
No |
|
DeleteEnabled = False |
No |
No |
The initial value of this property is True.
Note:
If No Row Delete is selected in Application Designer, setting the DeleteEnabled row property to True will not override this value. If you want to control whether a row can be deleted at runtime, you should not select No Row Delete at design time. Likewise, if the DeleteEnabled Rowset property is False, setting the DeleteEnabled Row property to True will not override the rowset property. If you want to control whether an individual row can be deleted at runtime, you should not set the DeleteEnabled rowset property to False.
For consistency, PeopleSoft recommends that either all rows at a level should disable deletions, or they should all allow deletions.
For rows created with non-Component Processor data (such as message rowsets, Application Engine rowsets, and so on) this property has no effect.
Note:
Don't use this property with rows from rowsets created using CreateRowset. Rowsets created using the CreateRowset function are standalone rowsets, not tied to the database, so there are no database updates when they are manipulated. Delete and insert activity on these types of rowsets aren't automatically applied at save time.
This property is read/write.