cancel
Showing results for 
Search instead for 
Did you mean: 

Using ODBC Connections in ExternalAutofillKeysetEventArgs

Philip_Templeto
Champ in-the-making
Champ in-the-making

I am trying to open a connection in my External Autofill script.  Is this allowed?  I have successfully used the following code in other scripts  however when trying to run this in this context it gets skipped over:

using (OdbcConnection dbConnection = app.Configuration.GetConnection("OnBaseTest") as OdbcConnection)
{
app.Diagnostics.WriteIf( Diagnostics.DiagnosticsLevel.Verbose, string.Format( "Starting DB Connection") );
try
{
dbConnection.Open( );

Thanks for the assist!

Phil

1 ACCEPTED ANSWER

Zhengxin_Guo
Confirmed Champ
Confirmed Champ

Hi! Phil,

Opening a ODBC connection in external Autofill script should work and External Autofill script gets executed at server side.

Please let me know if you have any questions. Thanks!

View answer in original post

2 REPLIES 2

Zhengxin_Guo
Confirmed Champ
Confirmed Champ

Hi! Phil,

Opening a ODBC connection in external Autofill script should work and External Autofill script gets executed at server side.

Please let me know if you have any questions. Thanks!

Hello Jason,

Ok, i really need to hang my head in shame on this one.  I didn't set the diagnostic level so my writes weren't being written.

Thanks,
Phil