Methods and Forms

It would be a huge time saver if methods could be attached to a specific table rather than to a specific form or if a new form is created from the same table, to be available for selection on either form.

For example, I have a number of methods on one form that I now want to move to another form which uses the same table. To do this, I have to recreate all those methods on the new form and then delete them from the old one. It’s a lot of extra work which seems somewhat illogical.

TIA for considering this.

Could these methods which need to be duplicated actually be prime contenders to become global methods ?

Thus each single global method can then be called from the all the different forms based upon the same table ?

Harry

Harry Catharell:
Could these methods which need to be duplicated actually be prime contenders to become global methods ?

Thus each single global method can then be called from the all the different forms based upon the same table ?

Harry

No, they are really not, otherwise I would have done it that way to start with but thanks for coming up with the idea.

I do see your point more clearly now about actually ‘moving’ methods from one form to another as opposed to simply creating global methods.

I am sure that the guys will come up with some way(s) of streamlining this…

Harry

Even if there’s an easy way to make a local method into a global method. I have 18 that I have to move manually.

Providence

what kind of methods alre you talking about?
Why should you recreate the exact method?
Just call it.. Make one form the ‘methods’ form

then in other forms call that form with al lthe methods:

forms.methodsform.mySharedMethod()

So what do you really gain with pure table methods? (you couldn’t use the elements or controller nodes/functions ofcourse)

That’s a really good suggestion, Johann. Thanks.

I spoke too soon!

Providence