referencing objects and the form

Discuss all feature requests you have for a new Servoy versions here. Make sure to be clear about what you want, provide an example and indicate how important the feature is for you

referencing objects and the form

Postby Boudewijn » Sun Feb 13, 2011 11:29 am

If I am on a form I would like to have the possibility to reference the form itself as "this".
Any object on the form can then be accessed as this.objectname
properties in that object could then be accessed as this.objectname.Property_Event_or_Method
Coming from an object I would like to have the possibility to code something like:

thisform.formProperty_Event_or_Method (referencing a PEM on the form)
or
thisform.AnotherObjectOnTheForm.Property_Event_or_Method (referencing a PEM of an object on the form)

Being IN an object I would like to do something like this.ObjectPropertyEvent_or_Method (referencing the object's own PEM's.)
Boudewijn
 
Posts: 41
Joined: Sun Sep 26, 2010 8:35 am

Re: referencing objects and the form

Postby ROCLASI » Sun Feb 13, 2011 12:22 pm

Robert Ivens
ROCLASI Software Solutions / JBS Group, Partner
SAN Developer / Servoy Valued Professional / Servoy Certified Developer
Twitter: @roclasi / @servoyforge
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5318
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: referencing objects and the form

Postby pbakker » Mon Feb 14, 2011 11:17 am

JavaScript already has this, but unfortunately the scoping of this has odd behavior attached to it, thus it's not really usable.

Hence we don't offer codecompletion on it.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands


Return to Discuss Feature Requests

Who is online

Users browsing this forum: No registered users and 2 guests

cron