Help Servoy Globals

Questions, tips and tricks and techniques for scripting in Servoy

Help Servoy Globals

Postby fc.palacio » Fri Jun 13, 2014 12:55 pm

I have a problem with Servoy globals.

I was making an example class inside globals.

globals.js:
Code: Select all
function AbsOBJECT() {
   this.name = "sample";
   this.getName = function(){
      return this.name;
   }
}


then i have a form to test to call the object that i made with
Code: Select all
var abs_obj = new globals.AbsOBJECT();
abs_obj.---?


the intellisence does not see the variables and the functions that i made inside.
can someone help me how to use globals.js because i want to make objects and functions inside it but i cannot call the properties and funtions
that i made inside my object. Thank you in advance.
fc.palacio
 
Posts: 3
Joined: Fri Jun 13, 2014 12:49 pm

Re: Help Servoy Globals

Postby Mccourt.cordingley1372837951 » Fri Jun 13, 2014 1:48 pm

You should check out Gary Dotzlaw's tutorials.
He is very thorough in explaining the concepts of Object Oriented programming in Servoy.

http://dotzlaw.com/tutorials/servoy-tut ... ogramming/

Regards
User avatar
Mccourt.cordingley1372837951
 
Posts: 28
Joined: Wed Jul 03, 2013 9:52 am

Re: Help Servoy Globals

Postby fc.palacio » Fri Jun 13, 2014 2:37 pm

Mccourt.cordingley1372837951 wrote:You should check out Gary Dotzlaw's tutorials.
He is very thorough in explaining the concepts of Object Oriented programming in Servoy.

http://dotzlaw.com/tutorials/servoy-tut ... ogramming/

Regards


thanks sir.
fc.palacio
 
Posts: 3
Joined: Fri Jun 13, 2014 12:49 pm

Re: Help Servoy Globals

Postby kwpsd » Fri Jun 13, 2014 8:58 pm

Hi, fc.

It works for me in Servoy Version: 7.4.1 - build 2028:

jsdoc_object.png
jsdoc_object.png (24.36 KiB) Viewed 4793 times


You may be using a version that does not support this.

I hope this helps!
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: Help Servoy Globals

Postby Gordon McLean » Mon Jun 16, 2014 12:42 pm

+1 with Gary Dotzlaw training and excellent piece of work and a great basis for approaching Servoy
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 253
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK

Re: Help Servoy Globals

Postby fc.palacio » Mon Jun 16, 2014 10:49 pm

Thank you sir Kim W. Premuda, yes you're right because as of now I am using Servoy 5.2x , thank you very much
fc.palacio
 
Posts: 3
Joined: Fri Jun 13, 2014 12:49 pm


Return to Methods

Who is online

Users browsing this forum: No registered users and 5 guests