Hi Robert,
I don’t know what you mean by manually setting the height of the dialog. It’s fixed from design mode.
The code is very simple for showing the dialog (global method):
function UTIL_alertDlg(alert, windowTitle, action) {
globals.tempTextDisplay2 = alert;
if((action) && (action.match(/large/i))) {
globals.DIALOGS.showFormInModalDialog('alert_withBtn_lg_dlg', -1, -1, -1, -1, windowTitle);
} else {
globals.DIALOGS.showFormInModalDialog('alert_withBtn_dlg', -1, -1, -1, -1, windowTitle);
}
}
A sample call to this method is,
tempText = 'The main (base) form is already part of the IEP, and can\'t be added again.';
windowTitle = 'Cannot add main form...';
globals.UTIL_alertDlg(tempText, windowTitle, null)
The parent (data entry) form has methods attached to the Save and Cancel buttons that return to the browse form,
function btnSave(event) {
application.showForm(forms.browse_form);
}
As long as I use the alert dialog with the button on it, I can then save or cancel the parent form. However, if I use the form without the button on it, I can’t save or cancel the parent form. Even more strange, if I use the “x” box on the form with the button on it, then I cannot reopen the record from the browse window (even thought it lets me save or cancel).
Thank you,
Don