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

Post Reply
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

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

Post 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.
Attachments
2.PNG
1.PNG
0.PNG
Last edited by Didou12 on 16 Mar 2023, 03:28, edited 1 time in total.
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

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

Post by Didou12 »

Hi,

There is any solution about that ?

At this time, I just hide buttons on the element page.
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

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

Post 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.
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

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

Post by Didou12 »

Ok,

I can't reproduce that. It's weird. I will try to reproduce it.
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

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

Post 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
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
User avatar
support
Site Admin
Posts: 6215
Joined: 19 Oct 2014, 18:22
Name: Sergey Kharchishin
Location: Russia, Evpatoriya

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

Post by support »

Then it's conflicted. Just don't use "keep opened"
Didou12
Posts: 487
Joined: 14 Jan 2023, 14:53
Name: Louis
Location: Montreal, Canada

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

Post by Didou12 »

Ok thank you
Using Rukovoditel since 2022 --- v3.4 (with extension) in French on PHP 8.2
I keep the French translation up to date
I'm trying to help you (+10 years experience in html, css, php, sql, JS/jquery, python)
Post Reply