HI All,
Scenario:
Users click a button and it opens a window. The user can click this button on different rows, opening the same “form” just named differently. The form will display some sort of summary based on the row. The user needs to be able to compare the different summaries for different rows.
Problem:
After the user opens the form 10-15 times the system appears to hang and the user is not able to do anything until they refresh the browser.
(The user can close the forms and we still have the same issue)
Code:
Solution Model example - causes issue
var _js_baseForm = solutionModel.getForm('frm_test')
var _js_targetForm = solutionModel.newForm(lv_newform, _js_baseForm.serverName, _js_baseForm.tableName, _js_baseForm.styleName, false, _js_baseForm.getBodyPart().height, _js_baseForm.width)
_js_targetForm.extendsForm = _js_baseForm
_js_targetForm.useSeparateFoundSet = true // Optional
forms[lv_newform].showMe(lv_newform, 'abc')
Create New Form Instance example - causes issue
application.createNewFormInstance(designFormName,newInstanceScriptName)
Open form in dialog - no issue with hanging the system, but cannot open multiples of the same form
application.showFormInDialog(form,[x],[y],[width],[height],[dialogTitle],[resizable],[showTextToolbar],[windowName],[modal])
Has anyone else experienced this? I vaguely remember servoy having some limitation on the number of windows being opened or used or something but can’t find anything online about that or a solution to this. There was a posting in the forum http://forum.servoy.com/viewtopic.php?f=3&t=13567 about the differences of the code above being added to a blueprint of some sort?
Is there an issue with clean up or something when utilizing the above methods?
Any input would be greatly appreciated.
Thanks