This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 146815 - Buttons in data view tab are disabled after connection to DB
Summary: Buttons in data view tab are disabled after connection to DB
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Show Data (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Shansi 11
URL:
Keywords:
Depends on: 149662
Blocks: 152437
  Show dependency tree
 
Reported: 2008-09-10 17:33 UTC by Roman Mostyka
Modified: 2009-05-25 20:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Mostyka 2008-09-10 17:33:32 UTC
1. Connect to DB.
2. Rightclick some table and choose "View Data...".
3. Disconnect from DB.
4. Press "Truncate Table" button.
5. Press "Cancel" button in appeared dialog and then "OK" button in next dialog. Buttons in data view tab become disabled.
6. Connect to DB.

Result: Buttons are still disabled.
Comment 1 Roman Mostyka 2008-09-16 09:49:31 UTC
Workaround: click "Refresh" button.
Comment 2 _ ahimanikya 2008-09-16 13:10:02 UTC
I am not sure there is any event that dataview can listen and auto-refresh; either downgrade or close it?
Comment 3 _ ahimanikya 2008-10-09 11:41:18 UTC
Looks like an architectural limitation. Unless there is a way to notify dataview when user re-connect, it wont be
possible to auto refresh.
Comment 4 Roman Mostyka 2008-10-09 12:12:44 UTC
Why it's not possible to refresh when user tries to connect? Look at step 6. ;)
Comment 5 _ ahimanikya 2008-10-09 13:35:30 UTC
I am not sure what are you talking about !! Step 6? 

This is design issue as well, if i have 20 data view open and user disconnect and reconnect you want to refresh all of
them automatically.

I think the workaround very reasonable.
Comment 6 David Vancouvering 2008-10-09 17:31:09 UTC
I agree the workaround is reasonable, press Refresh, so let's keep it a P3 with a target milestone of Future.

But I think it's also reasonable to expect buttons to be refreshed when reconnected.  It's a helpful thing to do for our
users.  We are trying to delight our users, so we want to be helpful whenever possible, as long as it doesn't involve
incorrect assumptions about what users want.

Ahi is right, there is currently no way to be notified that a connection has disconnected.  I created issue 149662 as an
enhancement request to add this to the API, and have made this issue dependent upon it.
Comment 7 _ ahimanikya 2008-11-30 03:37:34 UTC
I think when we fail to connect or execute the the query after the Data View is created, we should notify the error and
then attempt to the dirty data view.
Comment 8 Shansi 11 2008-12-04 09:20:48 UTC
Needs Verification
Comment 9 Roman Mostyka 2008-12-04 13:39:57 UTC
The behavior now is different and this issue can't be reproduce anymore.
Verified with build 081204.