Hi DAW,
If I Set pbLoginOnOpen=False then I get error 75.
else its fine.
Code:
C:\RP\800\ProgWin\TestConnection.exe
Can't open table. Not logged in to DSN=DFCONNID=RPCONN. LoginOnOpen = 0 Table = PARAM (248)
Error: 75
Error Source = DB2_DRV.Open
MSG_ONWORKSPACEOPENED (7809) - oApplication (39) - at address 79068
MSG_DOOPENWORKSPACE (7806) - oApplication (39) - at address 38689
MSG_END_CONSTRUCT_OBJECT (459) - oApplication (39) - at address 38717
[start] - at address 79074
Sample Program:
Code:
Object oApplication is a cApplication
Set peHelpType to htHtmlHelp
Object oConnection is a cConnection
Set pbEncryptPassword to False // simple test
Set pbLoginDialogRequired to False
// Bug here
Set pbLoginOnOpen to False
End_Object
Set psAutoOpenWorkspace to "XLS.Helix.DB2.ws"
Procedure AutoConnect
Handle hoWorkSpace
String sConnectionIni
Get phoWorkspace to hoWorkSpace
If (hoWorkSpace) Begin
Get psConnectionIni of hoWorkSpace to sConnectionIni
If (sConnectionIni="") Begin
// Read DFCONNECTIONS from WS file
Get psWorkspaceWSFile of hoWorkSpace to sConnectionIni
Set psConnectionIni of hoWorkSpace to sConnectionIni
Showln "Using ConnectionIni=" sConnectionIni
End
End
Forward Send AutoConnect
End_Procedure
Procedure OnWorkspaceOpened
Open PARAM
Open CodeMast
Open CodeType
End_Procedure
End_Object