I made an example project....
DevArt version 5.0.40.0
I run the project and clear does not work.
The first time I press the button and set the selectparameter, I get the result.
Second, also a result (it work even if it's empty, thats a progress)
But the third time I always get this exception.
Code: Select all
An unhandled exception of type 'System.InvalidOperationException' occurred in Devart.Data.dll
Additional information: Invalid attempt to GetSchemaTable when reader is closed.
I use the oracledatatable control from toolbar to the form and configure it.
Here is some code generated
Code: Select all
//
// oracleDataTable1
//
this.oracleDataTable1.Columns.AddRange(new System.Data.DataColumn[] {
this.oracleDataTable1_LANDKOD,
this.oracleDataTable1_LAND_BENAMNING,
this.oracleDataTable1_ORDERNR,
this.oracleDataTable1_ORDERFAKTURASTATUS_ID,
this.oracleDataTable1_ORDERFAKTURASTATUS_BENAMNING,
this.oracleDataTable1_ORDERLEVERANSSTATUS_ID,
this.oracleDataTable1_ORDERLEVERANSSTATUS_BENAMNING,
this.oracleDataTable1_VARREFERENS,
this.oracleDataTable1_BETALNINGSVILLKOR_ID,
this.oracleDataTable1_BETALNINGSVILLKOR_VILLKOR,
this.oracleDataTable1_LAGERSTALLE_ID,
this.oracleDataTable1_LAGERSTALLE_BENAMNING,
this.oracleDataTable1_FRAKT,
this.oracleDataTable1_ANTAL_SLUTKUNDER,
this.oracleDataTable1_TOTAL_VOLYM,
this.oracleDataTable1_TOTAL_VIKT,
this.oracleDataTable1_CHECKPREMIEVAL,
this.oracleDataTable1_ORDERVARDEFP,
this.oracleDataTable1_PROVISION,
this.oracleDataTable1_ORDERVARDE,
this.oracleDataTable1_BIDRAG,
this.oracleDataTable1_BUNTNR,
this.oracleDataTable1_BUNTNRSMART,
this.oracleDataTable1_PRIORITET_ID,
this.oracleDataTable1_PRIORITET_BENAMNING,
this.oracleDataTable1_ORDERTYP_ID,
this.oracleDataTable1_ORDERTYP_BENAMNING,
this.oracleDataTable1_ORDERDATUM,
this.oracleDataTable1_ORDER_PLATS});
this.oracleDataTable1.Connection = this.oracleConnection1;
this.oracleDataTable1.Name = "oracleDataTable1";
this.oracleDataTable1.SelectCommand = this.oracleSelectCommand1;
this.oracleDataTable1.TableName = "oracleDataTable1";
this.oracleDataTable1.Owner = this;
this.oracleDataTable1.TableMapping.DataSetTable = "oracleDataTable1";
this.oracleDataTable1.TableMapping.SourceTable = "oracleDataTable1";
//
// oracleSelectCommand1
//
this.oracleSelectCommand1.CommandType = System.Data.CommandType.StoredProcedure;
this.oracleSelectCommand1.CommandText = "jfp.jfp_forms.orderinfo_getorders";
this.oracleSelectCommand1.Connection = this.oracleConnection1;
this.oracleSelectCommand1.Name = "oracleSelectCommand1";
this.oracleSelectCommand1.Parameters.Add(new Devart.Data.Oracle.OracleParameter("IN_LANDKOD", Devart.Data.Oracle.OracleDbType.VarChar, 2, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, "SE"));
this.oracleSelectCommand1.Parameters.Add(new Devart.Data.Oracle.OracleParameter("IN_KUNDNR", Devart.Data.Oracle.OracleDbType.Number, 0, System.Data.ParameterDirection.Input, false, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, null));
this.oracleSelectCommand1.Parameters.Add(new Devart.Data.Oracle.OracleParameter("OUT_C", Devart.Data.Oracle.OracleDbType.Cursor, 0, System.Data.ParameterDirection.Output, false, ((byte)(0)), ((byte)(0)), "", System.Data.DataRowVersion.Current, null));
this.oracleSelectCommand1.TableValuedResultType = null;
this.oracleSelectCommand1.Owner = this;
Code: Select all
//
// oracleDataTable1_LANDKOD
//
this.oracleDataTable1_LANDKOD.AllowDBNull = false;
this.oracleDataTable1_LANDKOD.ColumnName = "LANDKOD";
//
// oracleDataTable1_LAND_BENAMNING
//
this.oracleDataTable1_LAND_BENAMNING.ColumnName = "LAND_BENAMNING";
//
// oracleDataTable1_ORDERNR
//
this.oracleDataTable1_ORDERNR.AllowDBNull = false;
this.oracleDataTable1_ORDERNR.ColumnName = "ORDERNR";
this.oracleDataTable1_ORDERNR.DataType = typeof(double);
//
// oracleDataTable1_ORDERFAKTURASTATUS_ID
//
this.oracleDataTable1_ORDERFAKTURASTATUS_ID.ColumnName = "ORDERFAKTURASTATUS_ID";
this.oracleDataTable1_ORDERFAKTURASTATUS_ID.DataType = typeof(double);
//
// oracleDataTable1_ORDERFAKTURASTATUS_BENAMNING
//
this.oracleDataTable1_ORDERFAKTURASTATUS_BENAMNING.ColumnName = "ORDERFAKTURASTATUS_BENAMNING";
...