@ -148,7 +148,7 @@ export class FormJdbc extends BI.Widget {
const value = this . form . driver . getValue ( ) ;
const value = this . form . driver . getValue ( ) ;
const connectionData = this . options . formData . connectionData as ConnectionJDBC ;
const connectionData = this . options . formData . connectionData as ConnectionJDBC ;
const connectionType = getJdbcDatabaseType ( connectionData . database , connectionData . driver ) ;
const connectionType = getJdbcDatabaseType ( connectionData . database , connectionData . driver ) ;
const url = connectionType . urls ? connectionType . urls [ value ] : connectionType . url ;
const url = connectionType . urls ? connectionType . urls [ value . driver ] : connectionType . url ;
this . form . url . setValue ( url ) ;
this . form . url . setValue ( url ) ;
const urlInfo = resolveUrlInfo ( url , connectionData . database ) ;
const urlInfo = resolveUrlInfo ( url , connectionData . database ) ;
this . form . host . setValue ( urlInfo . host ) ;
this . form . host . setValue ( urlInfo . host ) ;
@ -806,7 +806,7 @@ export class FormJdbc extends BI.Widget {
private onHostPortChange ( databaseType ) {
private onHostPortChange ( databaseType ) {
const { urls , url } = databaseType ;
const { urls , url } = databaseType ;
const driver = this . form . driver . getValue ( ) ;
const driver = this . form . driver . getValue ( ) ;
const selectUrl = BI . get ( urls , driver ) || url ;
const selectUrl = BI . get ( urls , driver . driver ) || url ;
const host = this . form . host . getValue ( ) ;
const host = this . form . host . getValue ( ) ;
const port = this . form . port . getValue ( ) ;
const port = this . form . port . getValue ( ) ;
const database = this . form . database . getValue ( ) ;
const database = this . form . database . getValue ( ) ;