Is there a way that i can refresh the page automatically when the child Model Dialog is closes?
I tried the following ways .
1. I couldn't find unique ID for modal dialog , so i am unable to add on hide listener.
2. Few magics hooks code even they are not working.
any suggestions are welcome .
Thanks
Uday
Refresh parent page when child-page is closed?
-
- AppGini Super Hero
- Posts: 85
- Joined: 2014-06-14 03:08
- Location: India
- Contact:
Re: Refresh parent page when child-page is closed?
Hi Uday,
Please share your problem is solved.
If not yet, please elaborate it a little bit. I mean which appgini files you are talking about.
I have already done this.
I just want to be sure that ur reqment is same as I understood.
Please share your problem is solved.
If not yet, please elaborate it a little bit. I mean which appgini files you are talking about.
I have already done this.
I just want to be sure that ur reqment is same as I understood.
-
- AppGini Super Hero
- Posts: 85
- Joined: 2014-06-14 03:08
- Location: India
- Contact:
Re: Refresh parent page when child-page is closed?
Hi,
My issue is resolved, Thanks
My issue is resolved, Thanks
Re: Refresh parent page when child-page is closed?
Uday,
can you share the solution for this problem..
can you share the solution for this problem..
Re: Refresh parent page when child-page is closed?
I would also like to see the solution to this problem, Thanks in Advance.udayvatturi wrote:Hi,
My issue is resolved, Thanks
Re: Refresh parent page when child-page is closed?
For anyway looking for a way to add an event listener on closing a modal window:
You should place the above code somewhere that would be executed after the modal is opened. For more on modal events: https://getbootstrap.com/docs/3.4/javas ... als-events
Code: Select all
$j('.modal').on('hidden.bs.modal', function(){
alert('modal closed!');
})
AppGini plugins to add more power to your apps:
- DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
- Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
- Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.
Re: Refresh parent page when child-page is closed?
Hi Ahmed,
I am sorry but I tried to look for the solution for this issue but I could not find it because of the lack of my knowledge.
I sincerely hope that you can help me and others who need some help with this issue.
Perhaps others who have solved this puzzle can also contribute.
Thanking you in advance. Stay safe and healthy.
I am sorry but I tried to look for the solution for this issue but I could not find it because of the lack of my knowledge.
I sincerely hope that you can help me and others who need some help with this issue.
Perhaps others who have solved this puzzle can also contribute.
Thanking you in advance. Stay safe and healthy.
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.
Re: Refresh parent page when child-page is closed?
Try
Code: Select all
$j(function () {
$j('.modal').on('hidden.bs.modal', function(){
location.reload();
})
})
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Refresh parent page when child-page is closed?
Hi Pascal,
Thank you for your attention and suggestion.
I tried putting the code in PARENT-TABLE-dv.js but no success.
Then I put the same code in CHILD-TABLE-dv.js as well but with no success.
Am I missing something ? Thanks again.
Thank you for your attention and suggestion.
I tried putting the code in PARENT-TABLE-dv.js but no success.
Then I put the same code in CHILD-TABLE-dv.js as well but with no success.
Am I missing something ? Thanks again.
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.
Re: Refresh parent page when child-page is closed?
Hi,
as a quick solution you can try
if you want to have it clean you should catch the event and check which modal was closed to differentiate which action shall be taken.
as a quick solution you can try
Code: Select all
$j(function () {
$j(document).on('hidden.bs.modal', function(){
location.reload();
})
})
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Refresh parent page when child-page is closed?
Hello Pascal,
Thanks for the code. It works but I need to click "resend" (reload) in Firefox for reconfirmation while the confirmation window did not appear in Chrome.
Having said that, I found a strange "good" result just by having a dummy "Calculated Field" in the child table which will automatically refresh the parent table value (which also a calculated field derived from the sum of some value in the child table) without applying any additional code, after I close the child modal window. Strange but it works for me.
But again, thank you for the code as I can use it somewhere else that may need it.
Thanks for the code. It works but I need to click "resend" (reload) in Firefox for reconfirmation while the confirmation window did not appear in Chrome.
Having said that, I found a strange "good" result just by having a dummy "Calculated Field" in the child table which will automatically refresh the parent table value (which also a calculated field derived from the sum of some value in the child table) without applying any additional code, after I close the child modal window. Strange but it works for me.
But again, thank you for the code as I can use it somewhere else that may need it.
Zala.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.
Appgini 24.10.1579, MacOS 14.3.1 Windows 11 on Parallels.