You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

PeopleCode Classes

13 replies [Last post]
Guest's picture
Guest

Hello

I am just wondering, can we use all Object Oriented Concepts (like Inheritance, Interfaces, Extends...) in PeopleCode classes/ Applicatoin Packages. Does peoplecode classes have similar functionality like protected, public and private variables. Please clarify me.

Thanks

CompShack's picture
User offline. Last seen 6 years 23 weeks ago. Offline
Joined: 12/09/2007
Posts: 167
Re: PeopleCode Classes

You bet - that is a YES to all of the above! You can create packages, classes, and extend classes using subclasses. A subclass will inherit public and protected methods and properties from the class it extends.

I'm actually preparing a quick startup guide about Application Packages and Classes in PeopleSoft. I will be posting it on the site as soon as I have few minutes to spare. I highly recommend using classes in PeopleSoft. PS developers should start thinking OOP!

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Guest's picture
Guest (not verified)
Re: PeopleCode Classes

does it mean that, still we can call Peoplecode delivered functions (like rowset functions)and delivered variables (%date) with in classes??

CompShack's picture
User offline. Last seen 6 years 23 weeks ago. Offline
Joined: 12/09/2007
Posts: 167
Re: PeopleCode Classes

Correct, you can also still call functions that are stored in FUNCLIBs. You declare it the same way you used to and you call it the same way. I have used %DBNAME in one of my custom classes so yes you should be able to use things like (%date).

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Guest's picture
Guest (not verified)
Re: PeopleCode Classes

Yes. You can use all these concepts in PeopleCode Application Class. Also you can use system variables.

Guest's picture
Guest (not verified)
Re: PeopleCode Classes

can we Import Java packages (java.sql) into peoplesoft classes/application packages?

HH's picture
HH (not verified)
Re: PeopleCode Classes

I do remember that overloading is not supported.

And there are limitation on extending classes too.

Can you conficorrect me if my understanding is skewed ?

CompShack's picture
User offline. Last seen 6 years 23 weeks ago. Offline
Joined: 12/09/2007
Posts: 167
Re: PeopleCode Classes

You could create objects of java classes, the same way you do in regular peoplecode out side of classes.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

CompShack's picture
User offline. Last seen 6 years 23 weeks ago. Offline
Joined: 12/09/2007
Posts: 167
Re: PeopleCode Classes

I have not found anything about overloading in PeopleBooks but again they are not the perfect place to get all your questions answered!

What limitation are we talking about when extending classes?

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog

Guest's picture
Guest (not verified)
Re: PeopleCode Classes

how to limit the entry of date using peoplecode
i mean for example i want the user to enter a date for 3month only
like:
Date from:01/01/2009
Date To: 31/03/2009

HH's picture
HH
User offline. Last seen 10 years 15 weeks ago. Offline
Joined: 07/09/2008
Posts: 17
Re: PeopleCode Classes

Compshack,
To my knowledge, P/S app packages are not fully object oriented.
Overloading is not supported.

Consider the round about way of using java classes with overloaded functions. One has to use reflectionto be able to make a method(overloaded ) call on a java object.

Good discussion.

Nitin's picture
User offline. Last seen 5 years 43 weeks ago. Offline
Joined: 06/30/2008
Posts: 73
Re: PeopleCode Classes

Till now PeopleTools doesnot support Multiple Inheritenace..
and as far as vaildation concern on the above date example. you can write the code on field edit of the end date.

Thanks
Nitin

dhorneut's picture
User offline. Last seen 9 years 47 weeks ago. Offline
Joined: 04/11/2011
Posts: 1
Re: PeopleCode Classes

Has there been a post yet of getting started with application packages in Peoplesoft? I've got over 15 years of PeopleTools experience but have been away since PeopleTools 7.5, and now just getting back to it. I need a starter lesson on using application packages, classes, and methods, etc. Any help would be appreciated.

Lepa's picture
User offline. Last seen 2 years 20 weeks ago. Offline
Joined: 06/23/2008
Posts: 591
Re: PeopleCode Classes

Welcome to the site dhorneut, I don't think there has been one yet, but there is a book I'm currently reading and the very first chapter is about Application Classes. The book is just excellent and cover most of the new aspects of peoplesoft. The book is written by Jim Marion and the name is Peoplesoft PeopleTools Tips and Techniques.

Give back to the community and help it grow!
* Help with unanswered forum questions and issues
* Register or login to share your knowledge at your own blog