This is the structure I have:
Sheet Names (4 total):
criancas
pais
config
contexto
Column Names by Sheet:
Sheet 1: “criancas” (132 rows, 14 columns)
id_crianca
id_familia
nome
data_nasc
sexo
endereco
assistida
observacoes
foto_crianca
excluido
criado_por
data_criacao
modificado_por
data_modificacao
Sheet 2: “pais” (97 rows, 11 columns)
id_pais
id_familia
nome
tipo
telefone
observacoes
excluido
criado_por
data_criacao
modificado_por
data_modificacao
Sheet 3: “config” (2 rows, 4 columns)
id_config
relatorio_tipo
data_execucao
arquivo_pdf
Sheet 4: “contexto” (1 rows, 2 columns)
id
id_familia_selecionada
In AppSheet, when I delete a child from the criancas table (e.g., id_crianca = C001 and id_familia = F001), I need a way to:
Display the siblings (other children in the criancas table with the same id_familia) and their guardians from the pais table (also sharing the same id_familia), so the user can choose to delete all if desired.
However, it may be that only one child is leaving Afago because they’ve aged out of the program, while their siblings remain.
Alternatively, the entire family may be relocating to another city, in which case all family members should be removed.
I don’t actually want to delete any records from any table.
Instead, I want the column excluido to be marked as “sim” so that the record is hidden from the user.
Here’s the intended process:
1\. The user opens the app and is on the main View, which shows the list of children (sourced from the slice criancas_ativas, where excluido = "não"). 2\. The user searches for and finds the child they wish to “delete”. 3\. The user clicks on the child’s name and is taken to the criancas_ativas_Detail view. 4\. At this point, they should see a button labeled “Excluir” that will execute the desired actions. When the user clicks this button:
4.1 The id_crianca of the selected child is retrieved, and their id_familia is identified.
4.2 A View is shown displaying all members of the family (id_familia) from both the criancas and pais tables. This View should have the excluido column enabled for quick edit, allowing the user to choose which members to “delete” (in our case, perform a soft delete by hiding the rows from the app).
I tried many different approaches without success. So, I decided to ask for help from more experienced developers.
Your help is much appreciated!
Thanks.