Page 1 of 1

Solved - Automated action button and adding by ajax, no refresh of the page

Posted: 25 Feb 2023, 12:36
by Didou12
Hi,

A little issue about the filter of automate action button in a field on the element page, when I add an entry in a subentity table in this element page, ajax didn't refresh page so the filter of automate action button is not re-testing. So my button doesn't disappear. I need to refresh my page to have my field with "good buttons" on it.

Snap 1 : on the element, my subentity is empty of items
Snap 2 : I just added a item in the subentity with the "add button" ; after adding an item, automate action verify some condition and normally change buttons in the entity, but it didn't work because page doesn't refresh (and even the field).
Snap 3 : after refresh the page, buttons are correct.

At the step of the snap 2, with some design (for example mine when I delete an element in the subentity, because button musn't be there), it's an issue because I can click on a button and action is running. No testing (filter) is operated.

Re: Automated action button and adding by ajax, no refresh of the page

Posted: 14 Mar 2023, 08:14
by Didou12
Hi,

There is any solution about that ?

At this time, I just hide buttons on the element page.

Re: Automated action button and adding by ajax, no refresh of the page

Posted: 14 Mar 2023, 08:54
by support
Create personal demo https://www.rukovoditel.net/demo.php and reproduce issue on demo. Send link to the demo for me where issue is.

Re: Automated action button and adding by ajax, no refresh of the page

Posted: 14 Mar 2023, 11:14
by Didou12
Ok,

I can't reproduce that. It's weird. I will try to reproduce it.

Re: Automated action button and adding by ajax, no refresh of the page

Posted: 14 Mar 2023, 11:37
by Didou12
Ok !!!

I know, it's because "keep opened current form" is activated (my favorite feature ahahaha). Maybe you can add a code to refresh page (or info displayed) when form is closed, I think it can be fix the issue.

You can test here :

Est. time need to be a total of 100 (or button is not displayed) ---- but it doesn't work well because "keep opened" is activated.

test.admin
admin
https://pdemo.rukovoditel.pro/3.3/index ... mo_id=1866

Re: Automated action button and adding by ajax, no refresh of the page

Posted: 15 Mar 2023, 12:18
by support
Then it's conflicted. Just don't use "keep opened"

Re: Automated action button and adding by ajax, no refresh of the page

Posted: 16 Mar 2023, 03:28
by Didou12
Ok thank you