Remove Method

Questions, tips and tricks and techniques for scripting in Servoy

Remove Method

Postby irenem » Fri Jul 29, 2011 10:06 am

Hi,

is it possible to temporarily remove a method, or prevent a method from running?

I have a onHide method that runs when the form is on FID. In some case I want to be able to close that window without running the method. Is there something like "deactivateMethod" or removeMethod?
Irene Meyer

Version: 6.0.5
Java version 1.6.0_29
Mac OS X Version 10.7.3
User avatar
irenem
 
Posts: 279
Joined: Tue Aug 28, 2007 2:09 pm
Location: Netherlands

Re: Remove Method

Postby ROCLASI » Fri Jul 29, 2011 10:15 am

Hi Irene,

You can't disable a event at runtime and in your case I don't think the solutionModel will do you any good either (it requires to hide the form before you can adjust it).
Why not just set a form global that the onHide method checks ?
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: Remove Method

Postby irenem » Fri Jul 29, 2011 10:52 am

Hello Robert,

you are right. I'm thinking to fancy :wink:
Irene Meyer

Version: 6.0.5
Java version 1.6.0_29
Mac OS X Version 10.7.3
User avatar
irenem
 
Posts: 279
Joined: Tue Aug 28, 2007 2:09 pm
Location: Netherlands


Return to Methods

Who is online

Users browsing this forum: No registered users and 5 guests