Skip to main content
andreiionuti0001
May 4, 2022
Question

Refresh Data in readOnly grid with datasource a!queryProcessAnalytics

  • May 4, 2022
  • 12 replies
  • 0 views

Hello,

I have one main dashboard that displays a readonly grid which has as datasource one expression rule in which i have a a!queryProcessAnalytics.

In the grid that I display I'm using a!processTaskLink().

The problem is in case an action is taken on one task where it should return back to the same user, it won't be displayed in the grid anymore (most of the time), only after they refresh the page.

I would like to avoid the refresh button on the page and I have also tried with refreshVariables and it doesn't work.

Any ideas how I can refresh first the grid and then display the page without being necessary to refresh the page?

Thank you!

12 replies

stefanhelzle0001
Brainy
May 4, 2022

Let me ask you a question. From your description, it seems like when I as a user complete a task, the process directly assigns the next task to me. If this is correct, why do you do that? Wouldn't it be better to chain that next task to me so I can continue working?

Lots of assumptions ...

In general process execution time and task activation varies and your design should never rely in it.

andreiionuti0001
May 4, 2022

Hi [mention:126a676c85024855948336691b0a7b92:e9ed411860ed4f2ba0265705b8793d05] ,

Actually it isnt another task, it is the same one, we have implemented out of the box button "Close" which should allow to the user to navigate back to the previous page without doing anything to the task and if I set a chain the user will be redirected to same task over and over and the Cancel button wont work anymore as per requirement.

richardm900458
May 4, 2022

You can use a gateway in combination with a ri/pv buttonAction (type string) directly after the task. The moment you cancel its going to an end event  the moment you go back you are chained and back at your task.

But as I am writing this, it somehow hurts as I have the feeling pretty much like Mike....we miss quite some details what the overall idea is. From a design perspective something  feels ...."off?". Don't know if it's the right word.

May 4, 2022

I guess by setting the refreshAlways: true in the a!refreshVariable function is not working as well. 

andreiionuti0001
May 4, 2022

Unfortunately it is not working.

May 4, 2022

So the name of the setting "refreshAlways" it's false as it's not refreshing always, as it should  :P