Page 1 of 1

Cannot remove form from history

PostPosted: Fri Jul 02, 2010 6:26 am
by maria
Hi All,

I have a piece of code that used to work for ages (well, for as long as one year at least) that stopped working exactly after I upgraded to Version: 5.1.4 - build 964.

Code: Select all
forms.anotherForm.controller.show();
history.removeForm(formName);


It returns false now and I don't understand why.
The form name is ok.
The scenario when it's getting called hasn't changed either.

Obviously, I badly need it to return true, otherwise the stale forms error comes up.

In another place I came across another one: org.mozilla.javascript.EcmaError: ReferenceError: "solutionModel" is not defined
This one comes up after running the above and then the following line:

Code: Select all
var _form = solutionModel.getForm(_formName);


What's happening?

Cheers,
Maria

Re: Cannot remove form from history

PostPosted: Fri Jul 02, 2010 9:16 am
by Gabi Boros
are you trying to remove a form on which a method is executing ?
check this : http://www.servoy.com/forum/viewtopic.p ... d=a#p75182

Re: Cannot remove form from history

PostPosted: Mon Jul 05, 2010 3:35 am
by maria
Gabi Boros wrote:are you trying to remove a form on which a method is executing ?
check this : viewtopic.php?f=16&t=14249&st=0&sk=t&sd=a#p75182


No Gabi, I've noticed that in a few other places though :)
Thanks.