Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9269

Re: GRID Error Invalid query tree  [300-33]. The SQL error is -1

$
0
0

Hi Weynard Lleva,

 

No, you can try this:

 

 

public bool IsFilled = false;

 

 

if (!IsFilled)

                {

                    string New = "Exec Proc_GetExpenceDetail '" + CodeForExpenseDetails + "'";

            this.oForm.DataSources.DataTables.Add("MYDATATABLE");

            this.oForm.DataSources.DataTables.Item(0).Clear();

            this.oForm.DataSources.DataTables.Item(0).ExecuteQuery(New);

            SAPbouiCOM.Grid oGrid = (Grid)this.oForm.Items.Item("Grid").Specific;

            oGrid.DataTable = this.oForm.DataSources.DataTables.Item("MYDATATABLE");

                    IsFilled = true;

                }

                else

                {

                     string New = "Exec Proc_GetExpenceDetail '" + CodeForExpenseDetails + "'";

            this.oForm.DataSources.DataTables.Item(0).Clear();

            this.oForm.DataSources.DataTables.Item(0).ExecuteQuery(New);

            SAPbouiCOM.Grid oGrid = (Grid)this.oForm.Items.Item("Grid").Specific;

            oGrid.DataTable = this.oForm.DataSources.DataTables.Item("MYDATATABLE");

                }

 

 

Hope it helps.

 

 

Thanks & Regards

 

Ankit Chauhan


Viewing all articles
Browse latest Browse all 9269

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>