application.getCurrentCustomController()

As far as know, there is currently no means to know which is the the current custom controller which is in use. Neither from a global nor from a form method.
Please, can you provide us with:

application.getCurrentCustomController()

… and many thanks in advance…

Huh, can you explain this (just out of curiousity) why you want this?

You always know the current form, as such you should know the custom controller too or am I wrong?

But I can see a very practicle way of using this.

Suppose (Dream) that if you can get the currentCustomController wouldn’t it be very nice to be able to SET the currentCustomController based on runtime situations

IT2BE:
Huh, can you explain this (just out of curiousity) why you want this?

Sure Marcel,

We are in the process to develop modules and libraries for our solutions. So we are ‘globalizing’ all algorythms we can. In that process it is ‘difficult’ to know the local context of global methods without passing parameters through several methods or using global variables.

Odysseus:
Suppose (Dream) that if you can get the currentCustomController wouldn’t it be very nice to be able to SET the currentCustomController based on runtime situations

:wink: I would breakdance on my desk for this. :wink:

In fact we would love to be able to set and get all properties and parameters… At least those that are not impossible to set at runtime.

Add the ability to attach & detach on the fly custom methods to elements and while we are at it a top down a “peer to peer” broadcasting mechanism , something along the lines of :

sendAllElements(of the current form).UpdateYourColors(‘ffffff’)

So UpdateYourColors is a method attached to some of the elements on a form. The elements that have the method attached react, the ones that haven’t , don’t. In a word polymorphism for user interface elements. Would set us on the road to true object oriented user interface design.

As much as I love working with Servoy, this is my mayor hurdle. I would like to be able to define classes of functionality and attach those as properties to UI elements on the fly.

The way it is implemented in Director or Flash or RB.

I think my main problem is that I’ve been OO programming for 15 years now and can’t think “straight” anymore. O well, it still is a great program