Cannot remove form from history

Release notes for Servoy betas

Cannot remove form from history

Postby maria » Fri Jul 02, 2010 6:26 am

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
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney

Re: Cannot remove form from history

Postby Gabi Boros » Fri Jul 02, 2010 9:16 am

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
Gabi Boros
Servoy
Gabi Boros
 
Posts: 399
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Cannot remove form from history

Postby maria » Mon Jul 05, 2010 3:35 am

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.
maria
 
Posts: 424
Joined: Thu Apr 16, 2009 1:18 am
Location: Sydney


Return to Latest Releases

Who is online

Users browsing this forum: No registered users and 17 guests