← 0 First steps / ↑ 3.3 Foundry QS1 / → 2 Create AIPLF and UI

26.1111 16:21 (converted from docx source file to markdown+PNGs by ChatGPT)


TOC


1.0 What we will build

Summary. Bring in a few records from MockAPI and display the record text and numbers in a table. No AI.

Chapter 1 screenshot 1

Configuration (numbered steps in diagram above)

  • 1.1 MockAPI — three source records
  • 1.2 Connection allowing Foundry to read MockAPI (1.2 is connection configuration, not another set of data records. The import uses that connection to fetch the records.)
  • 1.3a PY script for importing to the dataset.
  • 1.3b Stored dataset (693_MockAPI_Items).
  • 1.4 Create object types (ontology) from the dataset.
  • 1.5 UI table displays those objects. UI Column-to-property mappings + automatic indexing (Capstone2Record: three objects)

1.1 Create MockAPI records

Keep only the synthetic records needed for this demo: an ID, text, and an integer.

[
  {
    "id": "1",
    "text": "text1",
    "integer": 111
  },
  {
    "id": "2",
    "text": "text2",
    "integer": 222
  },
  {
    "id": "3",
    "text": "text3",
    "integer": 333
  }
]

Chapter 1 screenshot 2


1.2 Configure the data connection to MockAPI

Configure the external connection and explain what access we are allowing. Reuse the existing connection if suitable.

Chapter 1 screenshot 3

Chapter 1 screenshot 4

Chapter 1 screenshot 5


1.3 Fetch MockAPI records through the data connection and store them in a dataset using Python (837)

Run a small import manually. Check the returned records and column types. Leave recurring fetches off.

Chapter 1 screenshot 6

Confirmed: the old import reads name and quantity. We’ll leave it unchanged and create a new import for 693.

Chapter 1 screenshot 7

Chapter 1 screenshot 8

Chapter 1 screenshot 9

Preview.

Chapter 1 screenshot 10

Chapter 1 screenshot 11

Chapter 1 screenshot 12

Chapter 1 screenshot 13

Chapter 1 screenshot 14

Chapter 1 screenshot 15


1.4 Create ObjectTypes/Objects from the dataset (841)

(was “Make the records available as objects”) Yes—“1.4 Create objects from the dataset” is better. It says plainly what the reader will do, rather than describing the outcome indirectly.

Connect the imported columns to an object’s ID, text, and integer properties. Keep this backing-data path throughout the demo.

We’ll create one new object type for 693, backed directly by this dataset—no CSV combination or datasource replacement.

Proposed configuration:

  • Object type: Capstone2Record
  • ID: id
  • Displayed title: text
  • Numeric property: integer

Chapter 1 screenshot 16

Chapter 1 screenshot 17

Chapter 1 screenshot 18

Chapter 1 screenshot 19

Chapter 1 screenshot 20

Leave all three checkboxes unchecked. We do not need controls to create, modify, or delete records inside Foundry for this first step. Our records will come from MockAPI, and the table will display them. We’ll add a specific result-saving operation later when needed. The who can submit options are disabled because no Actions are selected—that is expected.

Chapter 1 screenshot 21

Chapter 1 screenshot 22

Chapter 1 screenshot 23

Chapter 1 screenshot 24

Chapter 1 screenshot 25

Chapter 1 screenshot 26

Verified: Capstone2Record now has 3 objects, and all three columns are mapped correctly:

  • Id ← id — unique identifier
  • Text ← text — displayed title
  • Integer ← integer — numeric value

There are no generated Actions, and edits are disabled. That is appropriate for our current read-only display.


1.5 Display ObjectType records in a UI (Workshop) table

Create a minimal application with one table. Verify that the displayed values match MockAPI. Chapter 1 ends with: MockAPI records visible in the application—no AI, buttons, result storage, or automation yet.

Chapter 1 screenshot 27

Chapter 1 screenshot 28

Chapter 1 screenshot 29

Chapter 1 screenshot 30

Chapter 1 screenshot 31

Chapter 1 screenshot 32

Chapter 1 screenshot 33

Chapter 1 screenshot 34

Chapter 1 screenshot 35

Chapter 1 screenshot 36

Chapter 1 screenshot 37

Publishing makes the application configuration available; it does not fetch MockAPI again.