Page 1 of 1

Help Servoy Globals

PostPosted: Fri Jun 13, 2014 12:55 pm
by fc.palacio
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.

Re: Help Servoy Globals

PostPosted: Fri Jun 13, 2014 1:48 pm
by Mccourt.cordingley1372837951
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

Re: Help Servoy Globals

PostPosted: Fri Jun 13, 2014 2:37 pm
by fc.palacio
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.

Re: Help Servoy Globals

PostPosted: Fri Jun 13, 2014 8:58 pm
by kwpsd
Hi, fc.

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

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


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

I hope this helps!

Re: Help Servoy Globals

PostPosted: Mon Jun 16, 2014 12:42 pm
by Gordon McLean
+1 with Gary Dotzlaw training and excellent piece of work and a great basis for approaching Servoy

Re: Help Servoy Globals

PostPosted: Mon Jun 16, 2014 10:49 pm
by fc.palacio
Thank you sir Kim W. Premuda, yes you're right because as of now I am using Servoy 5.2x , thank you very much