Shouldn't happen that the trigger element names are empty?!

I guess it shouldn’t, but it does. :cry:

I have a global method attached to a field in a form. The global method calls a method in the form by using something like

forms[aFormName][methodName](arguments)

That method is called correctly, receiving arguments. From there another global method is called, that starts with this code

var vForm = arguments[0];

if (!vForm) {
     vForm = application.getMethodTriggerFormName();
}

If no form name is passed, I get this error.

I have noticed that after a start of developer I always see this problem. After I switched to design mode once, it always seem to work.

Servoy Developer
Version 3.1.3-build 407
Java version 1.6.0-b105 (Windows Vista)

Patrick,

What is the error message you are receiving?

Does the problem also happen in app server/client or only in developer.

Rob

Well, at this point

forms[aFormName]

I am getting an error because aFormName is null. In the console I see the message posted. I only do what I described.

I haven’t tested this in client. I can only say it never occurred with Servoy 2.

I get the same error messages in Servoy client 3.x.

Patrick,

Can you create a small sample solution and add a case in our support system?

Rob

I hope I can create something that will give this error. Will try…

Hi Rob, I think my problem comes from the fact the the original method is called by the popupMenuPlugin. The order goes like this

global method shows popup
popup event calls form method
form method calls global method

and that last call doesn’t pass the form name. It does not happen in Servoy 2 and does not happen if you switch to design mode once. I will try to rebuild that setup…

Interesting detail: when I tried to reproduce the problem for a test solution I checked it out in my solution. There, a form name called “liste” should have been passed and didn’t. I created a new solution and while I played with the methods application.getMethodTriggeredFormName returned “liste” at some point although my sample only has one form called “addresses”.

Anyway, I think I have managed to recreate the setup. I don’t manage to get it to work, however, by changing to developer mode here. It simply always fails.

I create a case.