LongLink State Elements

Query

Definition

Fetches JSON data before rendering and stores it in the XML runtime scope.

Usage

Use Query for page data that descendants read through expressions, loops, and bindings.

Attributes

  • id required. Literal query name exposed in XML expressions.
  • path required. Application-relative request path.

Children

Query is setup-only and cannot have children.

Example

xml
<Query id="orders" path="/api/orders" />
<For each="$orders.items" as="order">
<Text value="$order.number" />
</For>