Hi Ankit Chauhan,
i wrote your code in VB script. In the first Search its working, But when im going to search again I got an error of "Operation code missing [300-13]" on that Underlined line. Although i change the condition to TRUE, its same error i get
If (IsFilled = False) Then
sqlString = "EXEC DFS_SP_Interest " & dtto & " "
oForm.DataSources.DataTables.Add("MYDATATABLE")
oForm.DataSources.DataTables.Item(0).Clear()
oForm.DataSources.DataTables.Item(0).ExecuteQuery(sqlString)
oGrid = oForm.Items.Item("MyGrid").Specific
oGrid.DataTable = oForm.DataSources.DataTables.Item("MYDATATABLE")
IsFilled = True
Else
sqlString = "EXEC DFS_SP_Interest " & dtto & " "
oForm.DataSources.DataTables.Item(0).Clear()
oForm.DataSources.DataTables.Item(0).ExecuteQuery(sqlString)
oGrid = oForm.Items.Item("MyGrid").Specific
oGrid.DataTable = oForm.DataSources.DataTables.Item("MYDATATABLE")
End If
Thanks,