Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

CRUD All

Cadastro único da tabela principal com tabelas filhas (e opcionalmente avulsas), salvamento transacional, replicação de valores e relatório pós-salvamento.

duas formas de configurar a mesma base de código (NfsCrudFormAll + saveAll):

CustomEntry Point
Armazenamentonfs_crud_all_custom + adminnfs_entry_point, ACTION=CrudAll
URL/t/{table}/all/{slug} ou /all/{seqDb}/t/{table}/all
Escopo EFL, título, slug, layout cardsSimNão
Campos visíveisWhitelist (main.fields, children[].fields)Blacklist (*_hidden_fields)

Configuração de telas: Custom — Admin e runtime. Entry Point: Rota /all e Entry Point.

Arquitetura

  nfs_crud_all_custom + CONFIG (admin)
            │
  GET /t/{table}/all/{slug|seqDb}
            │
  NfsCrudFormAllCustom          ui.mode: cards | classic
            │
  NfsCrudFormAll                validação, save, replicação

  nfs_entry_point (CrudAll)
            │
  GET /t/{table}/all
            │
  NfsCrudFormAll

Rotas

Base: t/{table} (ex.: OS).

RotaRequisito
GET /t/{table}/all/{identifier}Registro ATIVO em nfs_crud_all_custom (identifier = SLUG ou SEQ_DB)
GET /t/{table}/allEntry Point CrudAll com main_table = {table}
POST /t/{table}/all-custom/save/{identifier}Save (custom)
POST /t/{table}/all/saveSave (rota /all)
GET /t/{table}/all/report-pdf/{seqDb}PDF da principal após o save

Link de menu: /t/{MAIN_TABLE}/all/{slug} (ou /all/{seqDb} sem slug).

Documentação

  1. Crud All Custom — Admin e runtime
  2. CONFIG JSON — referência
  3. Rota /all e Entry Point — inclui exemplos de tela de erro, sucesso e relatório PDF embutidos na página.