This topic is locked

Popup using bootstrap

5/21/2017 9:45:55 PM
PHPRunner General questions
R
rchugha author

HI Guys,
I am trying to get popup using bootstrap theme on Add page by using custom add button.
On Add Page, I have field called "Supplier" to add new supplier while adding data to current add page.I have created new custom button called "Add New Supplier" which open a page in popup mode by calling "supplier_add.php"
Basically, I have created a Button on Add Page using example provided on 9.7 Phprunner Manual: https://xlinesoft.com/phprunner/docs/how_to_display_any_page_in_boo.htm
window.popup = Runner.displayPopup({

url: Runner.pages.getUrl("supplier","add"),

width: 700,

height: 700,

header: 'Add New Supplier'

});
it work fine and open a popup but once i have added the data into newly open popup and click on Save button. it does not close the page.
can any please please help?
i have tried following:
AfterAdd event
$pageObject->setProxyValue('saved', true);

$pageObject->stopPRG = true;

Javascript OnLoad event of Add page
if ((proxy['saved']) && window.parent && window.parent.popup) {

window.parent.popup.close();

}
i suspect that it is modal popup (bootstrap templete) and above code is not suitable for it.
Thanks