Toolbar button delete enabled on not-deleteable tables

Description

AD_OrgInfo table is marked as not-deleteable

But on Organization window, you can see the toolbar button delete enabled, and then an error is thrown to the user when trying to delete the record.

A better behavior would be to simply deactivate the delete button (same on detail toolbar)

Environment

None

Attachments

1

Activity

Hiep Lq
January 3, 2014 at 5:03 AM

Hi Murilo.
Your patch is full and best my patch.
because i will remove my patch to carlos don't confuse when review.

Murilo Habermann Torquato
January 2, 2014 at 5:40 PM

Hi hieplq,

You was faster than me! Between i read this ticket and worked on it you alread have sent a patch!

Anyway, I made a little different code, changing the GridTab to create a new isDeleteRecord method. After this, i changed AbstractADWindowContent and DetailPane classes for ZK and also the APanel for Swing client.

If you want to take a look, i'm sending attached.

Hiep Lq
January 2, 2014 at 7:27 AM

fix with head toolbar and detail toolbar. Please review.

Fixed

Details

Assignee

Reporter

Affects versions

Priority

Created December 31, 2013 at 1:33 PM
Updated June 2, 2017 at 5:29 AM
Resolved March 31, 2017 at 2:40 PM