Está sendo aplicada no AppSheets
Seu Banco Dados é a tabela Google
Pretendo desenvolver um AppShet para registrar ponto de uma micro empresa e tenho essas duas tabelas:
Lanço a entrada na boa, mas quando vou fazer o lançamento da saída na mesma tabela abre outro ID e ai não consigo somar as horas trabalhadas.
Tabela Funcionario, com os campos:
ID_Colaborador >> Type Test >> KEY >> initial Value UNIQUED()
Nome >> Type Name
Senha >> Type Number
Email >> Type Email
Cargo >> Type Text
Departamento >> Type Enum
CPF >> Type Text
Telefone >> Type Phone
Data_Admissao >> Type Date
Observações >> Type LongText
Tabela Registro, com os campos:
ID Registro>> Tipe Text >> KEY >> initial Value UNIQUED()
Senha>> Type Number
Nome>> Type Ref >> LABEL >> initial Value LOOKUP([_THISROW].[Senha], “Usuario”, “Senha”, “Nome”)
Status >> Type Text >> initial Value “Aberto”
Entrada >> Type DateTime
Saida >> Type DateTime
Total Hora >> Type Duration
Em UX Views
View name >> Entrada
For this data >> Registro
View type >> Form
Column order >> Manual >> Senha e Nome
Behavior >> Event Actions >> Registrar Entrada
View name >> Saida
For this data >> Registro
View type >> Form
Column order >> Manual >> Senha e Nome
Auto save >> Ativo
Behavior >> Event Actions >> Registrar Saida
View name Funcionário
For this data >> Funcionario
View type >> Deck
Em Behavior
Action name >> Registrar Entrada
For a record of this table >> Registro
Do yhis >> Data: set the values of some columns in this row
Set these columns >> Entrada >> NOW()
Position >> Prominent
Behavior >> Only if this condition is true >> ISBLANK([Entrada])
Action name >> Registrar Saida
For a record of this table >> Registro
Do yhis >> Data: set the values of some columns in this row
Set these columns >> Saida >> NOW()
Status >> “Fechado”
Position >> Prominent
Behavior >> Only if this condition is true >> ISBLANK([Saida]) AND NOT(ISBLANK([Entrada]))