Disabled button on first load

0
We have a button on a dataGrid2 that opens a pop-up page. On that pop-up page, we have a button that calls a microflow. The first time the pop-up page is loaded, the button that calls the microflow is disabled, and if I close the pop-up and then open it again, then the button can be triggered.    Any ideas on why this might be happening?    The pop-up page receives 5 parameters, all are instanced on the initial page, and none of them is being created or anything like that.
asked
2 answers
0

Add a boolean attribute on one of the entities that is default false and change it when opening the page to true .

Make 2 button, one with correct handling to page, one with none. Make the visability of the buttons depend on the boolean.

answered
0

Hi Sergio,

 

Are you triggering this popup with a open page action on the button or using a microflow with a open page action in it?

 

If you are directly using show bage on the button itself, what you could do is instead is change it to a microflow with this open page action, this will make it a lot easier to debug your problem. 

 

Because you are mentioning that your popup receives 5 parameters from the initial page, it sounds like your edit page expects a parameter object which is empty, therefore the button is grayed out the first time. By putting the open page action inside of a microflow you will be able to visually see which parameters are passed into the page by checking the variables, and what is different when you close the popup and open it the second time.

 

Hope this helps you with solving your issue!

 

answered