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:
busComp
identifies the business component that ExecuteQuery uses to get the search specification or sort specification. You can usebusComp
as a literal or a variable. For more information, see How This Book Indicates Code That You Can Use as a Variable and Literal.