Como hacer que cambie de status mi columna automaticamente por medio de la fecha

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 Solved
0 5 224
1 ACCEPTED 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.

https://www.appsheet.com/templates/This-app-shows-how-to-use-reference-actions?appGuidString=e76d2e7...

View solution in original post

5 REPLIES 5
Top Labels in this Space