Stale form(s) detected, form(s) were altered by the solution model without destroying them first
The form(s) that are stale (can also be a parent form if form inheritance is used) are:
Form name:'nav_cont_main' with instances: [nav_cont_main]
at /Users/meyer/servoy_workspace5.1/coperta/forms/action_list_comp.js:551
this is the code:
- Code: Select all
var mediaURL = forms.login_settings_dev.logset_media_path
var name = currentcontroller.getName()
var form = solutionModel.getForm(name)
history.removeForm(form)
solutionModel.removeForm(form)
if(solutionModel.getMedia('getMail.png' == null))
{
var ballBytes = plugins.file.readFile(mediaURL + '/testUp.png');
var ballImage = solutionModel.newMedia('getMail.png', ballBytes);
}
form.removeButton('butNavCont')
var methNavCont = form.getFormMethod('getFile')
var butNavCont = form.newButton(null, 20, 6, 30, 30, methNavCont);
butNavCont.imageMedia = ballImage
//Sorts the foundset based on the given string
forms.action_list_comp.controller.sort('act_date desc');
what am I doing wrong?