"Buenos días,
Tengo una app que consiste en añadir tareas un usuario. Me gustaría poder diferencias los registros que no han sido leídos, es decir, no se ha abierto la vista detalle del formulario.
Quisiera que las tareas nuevas tuvieran un color concreto o alguna etiqueta.. La duda es, ¿como podría detectar si se ha abierto la vista detalle de ese registro?
He visto que hay alguna duda al respecto en la comunidad pero no veo solución publicada. Muchas gracias de antemano."
Muchas gracias de antemano."
Solved! Go to Solution.
Se me ocurre:
Crear una accion de tipo Grouped: execute a sequence of action.
Compuesta de 2 acciones.
1º- una de tipo Data: set the values of some columns in this row. que cambie un valor en el registro y que indique que ha entrado a verlo (no quiere decir que lo lea).
2º. otra de tipo: App: go to another view within this app. y en ella poner LINTOVIEW("Tareas_Detail")
Las acciones tienen que ir en este orden ya que al ejecutar una de tipo LINK se corta la secuencia.
Por ultimo, en la tabla que llama a tareas, en la zona Behavior - Event Actions - Row Selected sustituir Auto assign (View details) por la acción agrupada creada.
En funcion del valor de la accion 1 puedes saber si ha entrado o no.
--------------
It occurs to me:
Create an action of type Grouped: execute a sequence of action.
Composed of 2 actions.
1st- one of type Data: set the values of some columns in this row. that changes a value in the registry and indicates that it has come to see it (it does not mean that it read it).
2nd. another of type: App: go to another view within this app. and in it put LINTOVIEW("Tareas_Detail")
The actions have to go in this order since executing a LINK type cuts the sequence.
Finally, in the table that calls tasks, in the area Behavior - Event Actions - Row Selected replace Auto assign (View details) with the grouped action created.
Depending on the value of share 1 you can know if it has entered or not.
Se me ocurre:
Crear una accion de tipo Grouped: execute a sequence of action.
Compuesta de 2 acciones.
1º- una de tipo Data: set the values of some columns in this row. que cambie un valor en el registro y que indique que ha entrado a verlo (no quiere decir que lo lea).
2º. otra de tipo: App: go to another view within this app. y en ella poner LINTOVIEW("Tareas_Detail")
Las acciones tienen que ir en este orden ya que al ejecutar una de tipo LINK se corta la secuencia.
Por ultimo, en la tabla que llama a tareas, en la zona Behavior - Event Actions - Row Selected sustituir Auto assign (View details) por la acción agrupada creada.
En funcion del valor de la accion 1 puedes saber si ha entrado o no.
--------------
It occurs to me:
Create an action of type Grouped: execute a sequence of action.
Composed of 2 actions.
1st- one of type Data: set the values of some columns in this row. that changes a value in the registry and indicates that it has come to see it (it does not mean that it read it).
2nd. another of type: App: go to another view within this app. and in it put LINTOVIEW("Tareas_Detail")
The actions have to go in this order since executing a LINK type cuts the sequence.
Finally, in the table that calls tasks, in the area Behavior - Event Actions - Row Selected replace Auto assign (View details) with the grouped action created.
Depending on the value of share 1 you can know if it has entered or not.
Lo primero, muchas gracias por tu rápida respuesta.
Lo segundo, perdona por mi ignorancia, "cuando hablas de crear una acción tipo.." ¿te refieres a crearlo dentro de comportamiento? no veo como sacar esas 2 opciones dentro esa acción...
No. Hay que crearlas en Actions.
Primero creas una acción de cambio y luego otra de llamada a la vista.
Despues podrás incorporarlas ambas a la acción agrupada.
Siguiendo tus pasos, ¡es una muy buena solución! a partir de aqui ya juego con el formato.
Lo único, que al abrir la vista detalle muestra la primera tarea de la lista, no la que correspondería 😥, ¿sabrías a que es debido?
Muchísimas gracias
Si. Es normal ya que LINKTOVIEW(...) te envía a una vista (con el orden predefinido y en el primer registro).
Seguramente es mejor usar:
LINKTOROW( key, view, [app-name])
AppSheet no valida los parametros (por ejemplo, está mal escrito o hace referencia a una fila, vista o aplicación inexistente), no se mostrará ningún error.
Cada uno de key , view y app-name puede ser de cualquier tipo, se interpreta como valores de texto y se codificará (como con ENCODEURL() ) para su uso en el enlace profundo.
Por fin lo conseguí, he sustituido LINTOVIEW("Tareas_Detail") por LINKTOROW([_THISROW], "TAREAS NURIA_Detail")
Muchas gracias por tu ayuda.
User | Count |
---|---|
44 | |
31 | |
29 | |
14 | |
14 |