currentcontroller is not defined

Questions, tips and tricks and techniques for scripting in Servoy

currentcontroller is not defined

Postby danny.richadson » Thu Mar 31, 2011 4:25 pm

when starting Servoy (5.2.6) i get an exception "currentcontroller" is not defined. the code is below

function _aytutl_formHierarchyCall() {
var $currentFormName = currentcontroller.getName()
}

It looks like when starting servoy some context is not properly initialized. I can write an try/catch on every currentcontroller but that is not a good alternative.

Regards,

Danny Richardson
Danny Richardson
e-mail: info@danson.nl
User avatar
danny.richadson
 
Posts: 30
Joined: Wed Oct 17, 2007 3:46 pm
Location: Netherlands

Re: currentcontroller is not defined

Postby jcompagner » Thu Mar 31, 2011 4:39 pm

that is a global method?
how is that global method called?
Do you have a full stackstacktrace (a java stacktrace besides the js one)?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to Methods

Who is online

Users browsing this forum: No registered users and 3 guests