Tuesday, July 2, 2013

Shortcut for Record Field name

Since there is no code completion feature available in PeopleTools App designer (at least as of PT8.53), we need to write the complete record field names when we want to use them in the PeopleCode.

For example if you would want to set the style property of the field, then you would need to write,

JOB.POSITION_NBR.Style = "PSERROR";

If you are writing the piece of code in any events associated with JOB.POSITION_NBR field, then you can write ^ (caret) instead of the record field name. Upon saving the PeopleCode, ^ (caret) will be converted to the record field name.


^.Style = "PSERROR";

2 comments:

Anonymous said...

Very Informative, one question, If multiple fields are getting used in the same code, then it will be applicable..?

Peoplesoft Dude said...

No. It wouldn't.
It will be only applicable for the record field in which you are writing the code.