Skip to content
Select theme

Build app pages

AI agent getting started? Read Agents: start here first.

A configured app groups pages around a workflow, such as a design review. Its pages use the platform’s view components and can show records from several types. The organisation publishes the app definition; each project supplies the data a viewer may read.

For new apps, we recommend hosted apps. They provide the richest experience, with custom React interfaces and interactions inside the workspace. Use configured app pages when the platform’s existing view components are enough for your workflow.

What you needUse
A rich application with custom interfaces and interactionsA hosted app — recommended for new apps
A collection layout for one typeAn App view on that type
A simple application assembled from existing view componentsA configured app, described here
An app running on your own serversAn external app

Set up the CLI and sign in as a person who can draft and publish the organisation’s definitions. Start with a small page to check the publication flow:

Terminal window
openeng ontology-sdk openAppDraft --input '{"appKey":"design-review"}'

Keep the returned draft ID and revision. An app has one open draft; inspect any existing work and coordinate with its author before replacing its document.

Save this complete request as review-app.json. Replace <app-draft-id> and the example revision 1 with the values returned above:

{
"appDraftId": "<app-draft-id>",
"revision": 1,
"document": {
"title": "Design review",
"pages": [
{
"key": "home",
"title": "Review home",
"view": {
"root": "body",
"elements": {
"body": {
"type": "AppBody",
"props": {},
"children": [
"intro"
]
},
"intro": {
"type": "Text",
"props": {
"text": "Choose the requirements to review."
},
"children": []
}
}
}
}
]
}
}

Submit the file and keep the new revision returned by the call:

Terminal window
openeng ontology-sdk reviseAppDraft --input-file review-app.json

In the commands below, replace <app-draft-id> and the example revision 2 with that draft ID and its new revision:

Terminal window
openeng ontology-sdk validateAppDraft --input '{"appDraftId":"<app-draft-id>","revision":2}'

Resolve every reported violation. Review the complete document, then publish exactly the revision you reviewed:

Terminal window
openeng ontology-sdk acceptAppDraft --input '{"appDraftId":"<app-draft-id>","revision":2}'
openeng link app design-review --project <project-id> --ref main

Open the returned address. The page should display Choose the requirements to review. Publication creates an app version; it does not merge engineering data.

Add a Query and a List or Table to show records. A requirements review can have one page filtered to open requirements and another filtered to closed requirements. Each query must name properties and status values your published type actually defines.

Start with a small result set, inspect it in the draft preview, then add another page. The view component reference lists supported components and placement rules. Use verbs for validated changes from a button.