This topic is locked

Master/details add popup window or non popup window

3/10/2022 11:31:43 AM
PHPRunner General questions
ffrinai author

Hi,
i have a master table and a details table.
From the list page of master table i open details list,
if i want to add new detail the add page is alwais in popup window mode:
is there a way to use directly normal add page instead popup ?

this request also because using swal does not work in pupop add window:
in before record added i verify a field value

if ($values['luf']<=$values['lui'] and $values['lui']<> null) {
$message = "error message";
$pageObject->setProxyValue("errorlu", $message);
return false;
}

in JavaScript Onload event of add page

if (proxy["errorlu"]){
swal({
title: "Attention !!!",
text: proxy["errorlu"],
icon: "error",
button: "Ok"
});
}

but if add a detail directly from details table with "non popup" add page
the swal in Javascript Onlod event works fine.

In summary, i have 2 questions:
1 - is there a way to use directly normal add page instead popup add page in master/details starting from the list page of the master table?
2 - how to make swal work correctly from javascriptOnload in popup add page ?
thanks
Fabio

aadham 3/10/2022

You can choose how you want the Add/Edit/View pages to open, as shown below:

img alt