Escolar Documentos
Profissional Documentos
Cultura Documentos
Application Packages
PSST0101
Records
Resources
Security
Server Administration
Server Administration Weblogic
SQL
SQR
Temp Tables
Troubleshooting
Tuxedo
Uncategorized
UPK
Vim
VMWare
Windows Tip
XML Publisher
Arra s Question
July 31, 2010 Stephen aka DigitalEagle
psst0101.wordpress.com/category/application-packages/
2/8
01/02/12
Application Packages
PSST0101
Then, I created three properties in that class to hold three parameters relating to an employee. I did not specify the
get or set keywords so I don t have to create getter and setter methods. This is the easiest way to add properties
to a class because you don t have to write any code for the properties. Here is the code:
class EmployeeObject
property string EmployeeID;
property string FirstName;
property string LastName;
end-class;
Then, in the Application Engine program, you have to import your new class. This statement does nothing more than tell
the program you are going to use this class later on.
import BLG_BLOGGING:EmployeeObject;
This code creates an empty array. We need to pass it a copy of the employee object just so it knows what data type
will be stored in the array. It will not actually store anything in the array at this point.
&emp = create BLG_BLOGGING:EmployeeObject();
&ary = CreateArrayRept(&emp, 0);
Here is where we load the first employee into the array. We set all of the properties, and then, we use the push()
method to insert it into the array.
&emp.EmployeeID = "001";
&emp.FirstName = "Bob";
&emp.LastName = "Tomato";
&ary.Push(&emp);
&log.WriteLine("Added Bob Tomato -- length = "
&ary.Len);
&ary.Len);
3/8
01/02/12
Application Packages
PSST0101
&emp.FirstName = "Lunt";
&emp.LastName = "Squash";
&ary.Push(&emp);
&log.WriteLine("Added Lunt Squash -- length = "
&ary.Len);
Then, we need to loop through the array to show what it contains. The Get() method accesses one of the elements in
the array. It does not remove the element from the array.
&log.WriteLine("");
&log.WriteLine("Employees: ");
For &x = 1 To &ary.Len
&emp = &ary.Get(&x);
&log.WriteLine(" " &emp.EmployeeID
End-For;
") "
&emp.LastName
", "
&emp.FirstName);
", "
&emp.FirstName);
Final Solution
Here is the Application Package, Employee Object:
class EmployeeObject
property string EmployeeID;
property string FirstName;
property string LastName;
end-class;
&ary.Len);
") "
&ary.Len);
&ary.Len);
&emp.LastName
4/8
01/02/12
Application Packages
PSST0101
End-For;
&log.Close();
5/8
01/02/12
Application Packages
PSST0101
PeopleTools Bug
January 8, 2007 Stephen aka DigitalEagle
psst0101.wordpress.com/category/application-packages/
6/8
01/02/12
Application Packages
PSST0101
If you are coding an Application Package, and you get this error message:
PeopleTools Affirm Triggered
PSAFFIRM(!pItemFound) failed at e:\pt846-908-r1retail\peopletools\src\inc\stringhash.h, line 157. See trace file. Press
Cancel for debugger.
Here is the solution:
Basically, you have a property with the same name as one of your instance variables. For example:
class E ampleClass
method E ampleClass();
propert String E ampleDescription get set;
private
instance String &E ampleDescription;
end-class;
To fix the problem you can change it to:
class E ampleClass
method E ampleClass();
propert String E ampleDescription get set;
private
instance String &strE ampleDescription;
end-class;
Posted in Application Packages, Bugs. Leave a Comment
Blog at WordPress.com. Theme: Garland by Stefan Nagtegaal and Steven Wittens.
Sea ch
Blogroll
Blog at WordPress.com.
Blog at WordPress.com.
Statistics
Archives
January 2011
November 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
January 2010
October 2009
psst0101.wordpress.com/category/application-packages/
7/8
01/02/12
Application Packages
PSST0101
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
April 2008
March 2008
February 2008
January 2008
November 2007
October 2007
September 2007
July 2007
June 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
Misc
Register
Log in
Blog at WordPress.com.
Blog at WordPress.com.
psst0101.wordpress.com/category/application-packages/
8/8