In the Function svy_mod_showFormInDialog the parameter ‘_resizable = flase’ dos not work.
Did you update to 6rc4 already?
Because the JSWindow.setResizable() function was changed to a property JSWindow.resizable in rc4.
The newest framework uses that property, but that doesn’t work in rc3.
Yes we are on Version: 6.0.0 rc4 - build 1215 and the newest Framework.
You are correct, it is indeed a bug in the framework.
It has been fixed for the next version.
If you want the fix now, replace the method svy_mod_showFormInDialog with this one:
function svy_mod_showFormInDialog(_form, _Xwindow, _Ywindow, _Wwindow, _Hwindow, _dialogTitle, _resizable, _showTextToolbar, _dialogName, _modal) {
var _win
if(_modal == undefined) _modal = true
//if the dialog is not modal it needs to have a unique name, could be opened multiple times
if(!_dialogName && _modal == false)
{
_dialogName = 'nonModelDialog' + application.getUUID()
}
else if(!_dialogName) //infoDialog is reused for modal windows without name
{
_dialogName = 'infoDialog' + _form
}
if(application.getWindow(_dialogName))
{
_win = application.getWindow(_dialogName)
}
else
{
_win = application.createWindow(_dialogName,JSWindow.MODAL_DIALOG)
if(_Xwindow && _Ywindow && _Wwindow && _Hwindow)
{
_win.setInitialBounds(_Xwindow,_Ywindow,_Wwindow,_Hwindow)
}
}
_win.resizable = _resizable
if(_dialogTitle)
{
_win.title = _dialogTitle
}
if(_showTextToolbar)
{
_win.showTextToolbar(_showTextToolbar)
}
_win.show(_form)
}
Ok thanks, I fixed it and it works.