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 54568

Summary: DB "Connect Using..." dialog switches to Advanced tab on successful connection
Product: db Reporter: Ann Sunhachawee <asunhachawee>
Component: CodeAssignee: David Vancouvering <davidvc>
Status: VERIFIED FIXED    
Severity: blocker CC: jrojcek, pjiricka
Priority: P2    
Version: 4.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on: 68991    
Bug Blocks:    

Description Ann Sunhachawee 2005-02-04 19:13:59 UTC
Using NB4.0 , JDK 5

Following the tutorial
http://www.netbeans.org/kb/using-netbeans/40/dbconn.html,

I found it confusing for the "Connect Using..."
dialog to flip to the advanced tab after pressing
OK and a successful connection is made. 

I'd expect more that the dialog would go away on
successful connection, and the new connection node
in the runtime tab to be selected. Could perhaps
put some notes in the status bar. 

Otherwise, user may be led to believe that they
have to do something on the Advanced tab.
Comment 1 jrojcek 2005-02-28 13:30:32 UTC
Please confirm that this is still an issue.
Comment 2 Petr Blaha 2005-02-28 15:52:27 UTC
Yes, I think that this is still issue in NetBeans 4.1. User is
prompted in New Database Connection panel for connection properties.
Then click Ok and next tab is displayed. On this panel the user is
able select database schema, however select schema is disabled. 
The wizard should display Advanced tab only for database that are
using schemas. 
Comment 3 Ann Sunhachawee 2005-02-28 17:07:14 UTC
It sounds like this should be presented as a wizard then instead of
showing two tabs. even if the db has schemas, it seems strange that
the user would get the Advanced tab fronted when simply pushing the OK
button.
Comment 4 Radko Najman 2005-03-15 16:41:03 UTC
The user is moved to the Advenced tab only on the following condition: username
and password are valid, connection is established but there is no schema with
the same name as username in the database. In this case the user must select
schema from the list on the Advanced tab.

If there exists schema with the same name as username in the database, the
connect dialog is closed without moving user to the Advenced tab after pressing OK.

We can probably prevent the dialog to go to the Advanced tab if there is only
one schema in the database.

I don't think that wizard is a good idea because the connect dialog is called
from some other modules (dbschema, ejb).

BTW the tabs were agreed by UI team.
Comment 5 dpavlica 2005-03-23 16:34:18 UTC
There exists the following and really old spec including those TABs:
http://db.netbeans.org/project/db/uispecs/DBModuleUISpec.html

This automatic switching into Advanced TAB without any additional info for user
why it was switched is strange.
There are several possible improvements but "Create database dialog" should be
improved too, because there is the same problem.

First solution (and best in my opinion...if we would like to show schemas there)
is to include "Select schema combobox" below checkbox "Remember password during
this session" and it will be enabled only when a connection is done. And it
means at the same time, there should exist Connect button...e.g. in addition to
the password textfield.

Next idea is to show another dialog above the first one (or after) when it's
necessary. But this could look strange in a case when this connect using dialog
is part of another wizard.

Or another approach, but I am not sure with this...simply not to choose DB
schema(s) in this dialog but later form DB tree.
Comment 6 Andrei Badea 2005-12-05 09:48:40 UTC
Since this is as designed, it is not a defect. And there are more usability
problems in the Connect dialog, see issue 68991.

Comment 7 Roman Mostyka 2008-10-15 13:11:43 UTC
Now "Advanced" tab becomes enabled only for connections with several schemes.
Fixed.
Comment 8 Roman Mostyka 2008-10-15 13:12:48 UTC
Verified.