I need that the dependent tables only allow to add or edit from the edition of the parent table, so that the updated calculations are saved. To do this I did the following:
IF(
CONTEXT(“ViewType”)=“Form”,
IFS(
LOOKUP(USEREMAIL(),“Usuarios”,“email usuario”,“Cargo”)=“Administrador”,“ALL_CHANGES”, LOOKUP(MAXROW(“Ingreso”,“_ROWNUMBER”,true),“Ingreso”,“Ingreso Id”,“Cambiar Contraseña”)=“Salir”, “READ_ONLY”,
LOOKUP(MAXROW(“Ingreso”,“_ROWNUMBER”,true),“Ingreso”,“Ingreso Id”,“Cargo”)=“Administrador”,“ALL_CHANGES”,
LOOKUP(MAXROW(“Ingreso”,“_ROWNUMBER”,true),“Ingreso”,“Ingreso Id”,“Cargo”)=“Encargada”,“ADDS_ONLY”,
LOOKUP(MAXROW(“Ingreso”,“_ROWNUMBER”,true),“Ingreso”,“Ingreso Id”,“Cargo”)=“Encargado”,“ADDS_ONLY”,
LOOKUP(MAXROW(“Ingreso”,“_ROWNUMBER”,true),“Ingreso”,“Ingreso Id”,“Cargo”)=“Auxiliar”,“READ_ONLY”
),
“READ_ONLY”,
)
The IFS () expression was already working correctly, when I added the IF (CONTEXT (… something strange happens, it correctly displays the list online, with the VIEW button in the non-Form views and shows New in the Form.
Therefore I understand that you are interpreting the expression.
But when you click on NEW, the screen is empty
Video:
