Field: setting enabled to false does not prevent onAction()

Discuss all problems you have with Servoy here. It might help to mention the Servoy version and Operating System version you are using

Field: setting enabled to false does not prevent onAction()

Postby Bernd.N » Wed Sep 28, 2016 11:28 pm

I had an onAction() event coded for a field, which I needed to disable sometimes.
The field was not editable, as only then the onAction makes sense and will fire.

But setting the field-property "enabled" to false did not work, I still could invoke the onAction.
So I had to replace that field by a label.

If someone can confirm this and also thinks this is a bug, I could create a ticket.
Last edited by Bernd.N on Wed Dec 14, 2016 4:21 pm, edited 1 time in total.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 474
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Field: setting enable to false does not prevent onAction

Postby Bernd.N » Thu Sep 29, 2016 6:41 pm

Hm, I meanwhile think a ticket is not really necessary, as the workaround with a label is easy.
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 474
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany

Re: Field: setting enable to false does not prevent onAction

Postby lvostinar » Mon Dec 12, 2016 1:39 pm

If field is not enabled it shouldn't fire onAction event. You can create a case for that. Also, no need to change it to label, you can manually check onAction the enable property (as a workaround).
Laurian Vostinar
Servoy
lvostinar
 
Posts: 1047
Joined: Tue Feb 19, 2008 10:53 am

Re: Field: setting enable to false does not prevent onAction

Postby Bernd.N » Tue Dec 13, 2016 10:49 pm

Ok, I created the case
https://support.servoy.com/browse/SVY-10675

Thanks for the other workaround tip, Laurian!
Bernd Korthaus
LinkedIn
Servoy 7.4.9 SC postgreSQL 9.4.11 Windows 10 Pro
User avatar
Bernd.N
 
Posts: 474
Joined: Mon Oct 21, 2013 5:57 pm
Location: Langenhorn, North Friesland, Germany


Return to Discuss possible Issues and Bugs

Who is online

Users browsing this forum: No registered users and 4 guests

cron