.newButton() Doucumentation Error?

Questions and answers regarding the use of eclipse environment as seen in Servoy Developer

.newButton() Doucumentation Error?

Postby kwpsd » Thu Jan 20, 2011 11:57 pm

I believe the doucmentation for the SolutionModel in Developer and the Wiki to be incorrect for .newButton():

var button = solutionModel.newButton('myButton', 10, 10, 100, 30, method);


and should be of the form:

var button = oForm.newButton('myButton', 10, 10, 100, 30, method);


That is, the button should be an object of the form, not the SolutionModel.
Kim W. Premuda
San Diego, CA USA
User avatar
kwpsd
 
Posts: 687
Joined: Sat Jul 28, 2007 6:59 pm
Location: San Diego, CA USA

Re: .newButton() Doucumentation Error?

Postby ROCLASI » Fri Jan 21, 2011 3:16 am

The Solution Explorer view in Developer supports this observation.
newButton is indeed a child function of the form object (and makes sense it does).
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: .newButton() Doucumentation Error?

Postby ptalbot » Fri Jan 21, 2011 5:57 am

ROCLASI wrote:(and makes sense it does)

Well said Master Yoda ;)
Patrick Talbot
Freelance - Open Source - Servoy Valued Professional
https://www.servoyforge.net
Velocity rules! If you don't use it, you don't know what you're missing!
User avatar
ptalbot
 
Posts: 1654
Joined: Wed Mar 11, 2009 5:13 am
Location: Montreal, QC

Re: .newButton() Doucumentation Error?

Postby rgansevles » Fri Jan 21, 2011 10:41 am

Is fixed in the docs.

Thanks,
Rob
Rob Gansevles
Servoy
User avatar
rgansevles
 
Posts: 1927
Joined: Wed Nov 15, 2006 6:17 pm
Location: Amersfoort, NL


Return to Eclipse Environment

Who is online

Users browsing this forum: No registered users and 6 guests