Question
Capgemini
MX
Last activity: 11 Oct 2022 11:07 EDT
Refresh a section in a -Data class from a section in the -Work class
Refresh a section in a -Data class from a section in the -Work class
We have an application that shows a dashboard (section in the -Data- class), this control panel shows a table with the cases according to the operator, each operator can only see cases with some particular status. The table is updated when a button called "Consultar" is clicked. This button calls a data transformation that sets a flag property to "1", when this property is "1", the table is displayed. In the user interface, the dashboard is displayed in a tab:
When an operator named "Checker" presses a "Enviar a revisión" button (in a section of the -Work- class, ie the case), the case is sent to the next stage of the operator named "Maker". The cases can be consulted from an magnifying glass icon in the dashboard table, in a new tab:
Refresh a section in a -Data class from a section in the -Work class
We have an application that shows a dashboard (section in the -Data- class), this control panel shows a table with the cases according to the operator, each operator can only see cases with some particular status. The table is updated when a button called "Consultar" is clicked. This button calls a data transformation that sets a flag property to "1", when this property is "1", the table is displayed. In the user interface, the dashboard is displayed in a tab:
When an operator named "Checker" presses a "Enviar a revisión" button (in a section of the -Work- class, ie the case), the case is sent to the next stage of the operator named "Maker". The cases can be consulted from an magnifying glass icon in the dashboard table, in a new tab:
The problem is that the case is still displayed in the dashboard table, which allows you to open the case even when the case no longer belongs to "Checker", but to "Maker", the case disappears from the table when click the "Consultar" button again, which is impractical, since the case remains visible to the current operator as long as they don't click "Consultar". The case should disappear from the table when "Checker" clicks the "Enviar a revisión" button found in the case section.
I tried to do the obvious thing, put the same Data Transform on the "Enviar a revisión" button, in a "refresh other section" action, to refresh the dashboard section, it didn't work, the flag property doesn't change on the dashboard section (class -Data-).
I tried with the help of a Single Page property, with the embedded flag property, but the flag property only changes in the case section (-Work-), but does not change in the dashboard section (Data-).
I need that flag property that can be set from the case section (Work) and that the change is reflected in the dashboard section, in order to update the table and that the cases that do not correspond disappear, in a nutshell, that the "Enviar a revisión" button does the same job as the "Consultar" button