May be it’s possible bug. I have to find way how to call same form in different windows of solution.
In Servoy sample solution I added button on order form to call same form second time.
At first I create modal dialog window and call this window with my form. The form appears but the same form in main application window disappears.
After I created a new instance of form and call this instance of form in modal window. At this time the form in main application window extended to full screen and navigation menu form disappears.
Is somebody can help me to solve this problem?
Here my code
function onAction(event) {
// call form in modal dialog form
var win = application.createWindow(‘orders’, JSWindow.MODAL_DIALOG);
win.show(‘frm_orders’);
// Recreate form using instance of form
var cNewInstanceName = ‘frm_orders1’;
var cFormName = ‘frm_orders’;
var lOk = application.createNewFormInstance(cFormName, cNewInstanceName);
if (lOk) {
var win = application.createWindow(‘orders’, JSWindow.MODAL_DIALOG);
win.show(cNewInstanceName);
}
}