ExecuteQuery Method

The ExecuteQuery method runs a query according to the current value of the Search Specification property, the current value of the Sort Specification property, or according to both of these properties. The business component contains these properties. ExecuteQuery runs this query on the local database. It returns one of the following values:

  • If an error occurs, then it returns err with an error message. For example:

    {err: "Error Message",retVal: ""}
    
  • If an error does not occur, then it returns an empty err message. For example:

    {err: "",retVal: ""}
    

It uses the following syntax:

busComp.ExecuteQuery();

where: