> For the complete documentation index, see [llms.txt](https://docs.jigx.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.jigx.com/building-apps-with-jigx/logic/expressions/expression-quick-reference.md).

# Expression - Quick Reference

<table data-full-width="false"><thead><tr><th width="361.9296875">Context Pattern</th><th width="188.9609375">Description</th><th>Examples</th></tr></thead><tbody><tr><td><strong>User &#x26; Organization</strong></td><td></td><td></td></tr><tr><td><code>@ctx.user.&#x3C;enum></code></td><td>User info: <code>displayName</code>, <code>email</code>, <code>id</code></td><td><code>=@ctx.user.displayName</code></td></tr><tr><td><code>@ctx.organization.id</code></td><td>Organization ID only</td><td><code>=@ctx.organization.id</code></td></tr><tr><td><strong>Solution &#x26; App State</strong></td><td></td><td></td></tr><tr><td><code>@ctx.solution.&#x3C;enum></code></td><td>Solution info: <code>name</code>, <code>id</code>, <code>title</code></td><td><code>=@ctx.solution.name</code></td></tr><tr><td><code>@ctx.solution.settings.custom.&#x3C;path></code></td><td>Custom app settings</td><td><code>=@ctx.solution.settings.custom.theme</code></td></tr><tr><td><code>@ctx.solution.state.&#x3C;path></code></td><td>Global app state</td><td><code>=@ctx.solution.state.counter</code></td></tr><tr><td><strong>Navigation &#x26; Screen Context</strong></td><td></td><td></td></tr><tr><td><code>@ctx.jig.inputs.&#x3C;param></code></td><td>Screen input params</td><td><code>=@ctx.jig.inputs.customerId</code></td></tr><tr><td><code>@ctx.jig.state.&#x3C;path></code></td><td>Screen state</td><td><code>=@ctx.jig.state.filter</code></td></tr><tr><td><code>@ctx.jigs.&#x3C;screenId>.&#x3C;path></code></td><td>Other screen context</td><td><code>=@ctx.jigs.details.state.value</code></td></tr><tr><td><strong>Components</strong></td><td></td><td></td></tr><tr><td><code>@ctx.components.&#x3C;formId>.state.&#x3C;enum></code></td><td>Component state: <code>value</code>, <code>isValid</code>, <code>isDirty</code></td><td><code>=@ctx.components.form.state.value</code></td></tr><tr><td><code>@ctx.component.inputs</code></td><td>Current component inputs</td><td><code>=@ctx.component.inputs</code></td></tr><tr><td><code>@ctx.component.state.&#x3C;path></code></td><td>Current component state</td><td><code>=@ctx.component.state.value</code></td></tr><tr><td><strong>Lists &#x26; Tables</strong></td><td></td><td></td></tr><tr><td><code>@ctx.current.item</code></td><td>List/table/grid/dropdown item</td><td><code>=@ctx.current.item.name</code></td></tr><tr><td><code>@ctx.current.column</code></td><td>Table column context</td><td><code>=@ctx.current.column.id</code></td></tr><tr><td><code>@ctx.current.cell.&#x3C;enum></code></td><td>Table cell: <code>value</code>, <code>isSelected</code></td><td><code>=@ctx.current.cell.value</code></td></tr><tr><td><code>@ctx.current.state.&#x3C;enum></code></td><td>Current state: <code>isSelected</code></td><td><code>=@ctx.current.state.isSelected</code></td></tr><tr><td><strong>Data &#x26; Actions</strong></td><td></td><td></td></tr><tr><td><code>@ctx.datasources.&#x3C;name></code></td><td>Datasource data</td><td><code>=@ctx.datasources.customers[0].name</code></td></tr><tr><td><code>@ctx.actions.&#x3C;actionId>.state.&#x3C;enum></code></td><td><p>Action state: <code>isPending</code> - tracks whether an async action is currently executing. Returns <code>true</code> while an async action is in progress and <code>false</code> when idle. Supported for all async actions. Sync-only actions (e.g. go-to, set-state, reset-state) always return <code>false</code>.</p><p></p><p><code>response</code></p><p><code>value</code><br></p></td><td><code>=@ctx.actions.save.state.isPending</code></td></tr><tr><td><code>@ctx.actions.&#x3C;actionId>.outputs.&#x3C;enum></code></td><td>Action outputs: <code>fileUri</code>, <code>newItems</code>, <code>invalidItems</code></td><td><code>=@ctx.actions.export.outputs.fileUri</code></td></tr><tr><td><strong>Functions &#x26; API</strong></td><td></td><td></td></tr><tr><td><code>@ctx.function.parameters.&#x3C;name></code></td><td>Function input params</td><td><code>=@ctx.function.parameters.search</code></td></tr><tr><td><code>@ctx.response</code></td><td>Function response</td><td><code>=@ctx.response</code></td></tr><tr><td><code>@ctx.response.status</code></td><td>HTTP status code</td><td><code>=@ctx.response.status</code></td></tr><tr><td><code>@ctx.response.body.&#x3C;path></code></td><td>Response body data</td><td><code>=@ctx.response.body.items[0].id</code></td></tr><tr><td><strong>System Properties</strong></td><td></td><td></td></tr><tr><td><code>@ctx.system.appVersion</code></td><td>Current app version</td><td><code>=@ctx.system.appVersion</code></td></tr><tr><td><code>@ctx.system.deviceType</code></td><td>"Tablet" or "Handset"</td><td><code>=@ctx.system.deviceType</code></td></tr><tr><td><code>@ctx.system.isOnline</code></td><td>Network connectivity</td><td><code>=@ctx.system.isOnline</code></td></tr><tr><td><code>@ctx.system.isOffline</code></td><td>Offline status</td><td><code>=@ctx.system.isOffline</code></td></tr><tr><td><code>@ctx.system.locale</code></td><td>Device language/locale</td><td><code>=@ctx.system.locale</code></td></tr><tr><td><code>@ctx.system.geolocation.coords.latitude</code></td><td>GPS latitude</td><td><code>=@ctx.system.geolocation.coords.latitude</code></td></tr><tr><td><code>@ctx.system.geolocation.coords.longitude</code></td><td>GPS longitude</td><td><code>=@ctx.system.geolocation.coords.longitude</code></td></tr><tr><td><strong>Shared Resources</strong></td><td></td><td></td></tr><tr><td><code>@ctx.expressions.&#x3C;path></code></td><td>Shared expressions</td><td><code>=@ctx.expressions.formatPrice</code></td></tr><tr><td><code>@ctx.scripts.&#x3C;path></code></td><td>Custom scripts</td><td><code>=@ctx.scripts.myFn</code></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.jigx.com/building-apps-with-jigx/logic/expressions/expression-quick-reference.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
