[SOLVED] How to display a page in a popup window |
3/4/2022 8:46:16 PM |
PHPRunner General questions | |
D
Daviant author
Greetings; I'm using Example 8 from this article How to display a page in a popup window The code for the new save button is as follows: pageObj.on('beforeSave', function(formObj, fieldControlsArr, pageObj){
The recording is also done correctly. It only remains for the window to close. I've tried the close command on different events, but to no avail. Please any guidance to solve this problem. I think it can help many. Very thankful.. |
|
D
|
Daviant author 3/5/2022 |
Well, giving a little more back to the matter, I managed to fix it. I added a line to the code to the new Save button (I had already done it before and it didn't work), leaving it as follows: ClientBefore pageObj.on('beforeSave', function(formObj, fieldControlsArr, pageObj){ And the code of example 8 of the link of the example must modify the ClientAfter of the custom button added to the list grid., being as follows: ClientAfter window.popup = Runner.displayPopup( { This way it works perfect. Thank you very much to all. |
D
|
Daviant author 3/5/2022 |
I hope it serves you all. I consider it SOLVED. (Google translator) |