Xuda logo

xuda.io

Technical docs for Xuda Slim and Xuda CLI

Product overview
Xuda CLI

data/set/

This guide was generated by xuda-cli.

Xuda CLI pages

Repo-driven docs from the xuda-cli package README and generated folder guides.

Docs page

This guide was generated by xuda-cli.

You can remove all generated folder guides later with:

npm run clean:readmes

Use this folder for Xuda set_data units.

What belongs here

  • create flows
  • update flows
  • delete flows
  • reusable persistence logic

Recommended blocks

  • <meta lang="json5">
  • <params lang="json5">
  • <datasource lang="json5">
  • optional <fields lang="json5">
  • optional <events lang="json5">

Important rules

  • set persistence intent in <meta>, for example crudMode
  • use params for values coming from components or other units
  • keep save logic here instead of embedding record persistence directly in UI workflows

Example

<meta lang="json5">
{
  id: "save_student_profile",
  menuTitle: "Save Student Profile",
  crudMode: "U",
  allowCreate: true
}
</meta>

<params lang="json5">
{
  in: {
    student_id_in: "string",
    full_name_in: "string",
    email_in: "string",
    campus_in: "string"
  }
}
</params>

<datasource lang="json5">
{
  type: "table",
  table: "student_profiles_table"
}
</datasource>