command button disabled

Hello,

I have a command button that exports an csv file. It’s working but when I click on it, all page buttons takes disabled and didn’t back.

I tried to put button.setDisabled(false) on “onClick” but didn’t work.

Anyone knows how to fix it?

Thanks
before.png
after.png

Try using “Command Link” and set the “Target” property in Expert tab to “_self”.
In order to get button like display, keep simple button inside the command link.

Hello Iman,

Tried with command link and target “_self” but didn’t work.

If I click on link again, it is still disabled.

The buttons only work if I refresh the page.

Thanks.
link.png