onAction problems with TextAreas

Hello,

we have seen a problem where an onAction method that was assigned to an uneditable text area was fired twice. We changed the field to a text field and everything was fine.

When I tried to create a small sample demonstrating this, I could not reproduce the problem (while I can always reproduce it on my original form). But my sample test showed that onAction on a text area does not receive

application.getMethodTriggerElementName()

My onAction test method simply does

application.output('on action fired from ' + application.getMethodTriggerElementName())

And I get

on action fired from test_text_field
on action fired from

the second output comes from the text area named “test_text_area”.

Could someone please have a look at onAction when attached to text areas?

Thanks
Patrick

Servoy Developer
Version 3.5.6-build 519
Java version 10.0-b23 (Windows Vista)

Hi Patrick!

I made a little workaround like your small sample demo. The result was that I got correct outputs by fireing for example

application.output('hello test ' + application.getMethodTriggerFormName())

or

application.output('hello test ' + application.getSolutionName())

but only 'hello test ’ (without the element name) by

application.output('hello test ' + application.getMethodTriggerElementName())

Changing the property to text_field the output is incl. the element name!?

I have not testet all application.get… functions, but I believe you are right.

Thomas

Version 3.5.6_08-build 519
Java version 1.6.0_05-b13-52 (Mac OS X)