QUERIA VER SI ME PUEDEN AYUDAR QUE MI COLUMNA “STATUS” CAMBIE DE ACTIVO A INACTIVO AUTOMATICAMENTE, LA COLUMNA STATUS ESTA EN LA TABLA DE CLIENTES, PERO QUIERO QUE CAMBIE SI EL ULTIMO PAGO REALIZADO ES MENOR QUE 60 DIAS QUE LA FECHA ACTUAL
LA COLUMNA PAGOS REALIZADOS HACE REFERENCIA ALA TABLA PAGOS
Solved! Go to Solution.
Please try below
Create a VC called say [Status] in the Clientes table with an expression something like
IF(INDEX(SORT([PAGOS REALIZADOS][FECHA], TRUE),1)<TODAY()-60,“Inactive”, “Active”)
The highlighted part may need change based on what exactly you are looking for as condition for “Active” and “Inactive” you have described is not exactly clear.
[PAGOS REALIZADOS] is assumed to be the name of the reverse reference column in the Clientes table.
Edit: If you are looking for updating a real column in the Clientes table, you could use reference action to update the Clientes table whenever a new row is added to the child table Pagos.
The below sample app demonstrates updating child record based on parent record update through reference actions. You could use a reverse flow.
User | Count |
---|---|
43 | |
30 | |
27 | |
14 | |
14 |