Hi all, I’m making a sales app where every sale should be capable of add elements to the sale if the state of the sale is ACTIVE, on the contrary one only can be capable of see the content of the sale.
Initially I used the parent field [Estado_Pedido] with the condition only if set with the formula
[OrdenID].[Estado_Pedido] = "ACTIVO"
but it doesn’t work; this formula makes the Add button dessapear in all cases.
After that I used the formula
ANY(
SELECT(
Pedidos[Estado],
[ID_Orden] = [_THISROW].[OrdenID]
)
) = "ACTIVO"
the above formula doesn’t work either.
After that I used the are updates allowed? of the configuration of the table
I also used the formula
LOOKUP([OrdenID], "Pedidos", "ID_Orden", "Estado") = "ACTIVO"
and doesn’t work either.
In the are updates allowed, the editor send a message saying that the formula is invalid with the following formula
Table ‘Orden_Detalles’ has an invalid update mode expression ‘=IF( AND( CONTEXT(“VieW”) = “Pedidos”, LOOKUP(Orden_Detalles[OrdenID], “Pedidos”, “ID_Orden”, “Estado_pedido”) = “ACTIVO” ), “ADDS_ONLY”, “READ_ONLY” )’ Cannot compare Text with List in ([ID_Orden] = Orden_Detalles[OrdenID])
so whath can I do to solve this, thanks in advance for the help.

