Executes the subquery specified in the function parameter and returns the result returned by that subquery.

Parameters:

expr

The string containing the subquery expression.

When you use this parameter form, the specified expression is compiled dynamically within the implementation of this function. Then, the subquery is executed as if it was inserted in place of the function call. You may use within the subquery expression any other variables assigned within the main expression before calling this function.

Any syntax errors within the expression will be found only during the execution of this function, which will cause appearance of the error message. You may write and check the subquery separately using the Subexpression Editor (found at the left panel's tree) and, then, insert it as string into the main expression.

Note: The expr parameter form works the same as the following consecutive calls:

execFlexQuery (parseFlexQuery (expr))
query
This parameter allows you to execute an already precompiled subquery that was created using FlexQuery() or parseFlexQuery() functions.
Returns:
The value (object) returned by the subquery.

Example:

The following expression is an Element Iterator filter specified within some subtemplate:


   filter = getStringParam("nodeFilter");
   getAttrStringValue("$shapeType") != "Note" &&
   (filter == null || execFlexQuery(filter).toBoolean())

This filter has a static part (testing whether the value of the '$shapeType' attribute is not equal "Note") and may include a dynamic part passed via the template parameter 'nodeFilter'.

See Also:

FlexQuery(), parseFlexQuery()