How to enable XMLP debugging in PeopleSoft

In Linux create a file named xdodebug.cfg and place it under [PS_HOME]\jre\lib

The file should include:

LogLevel=STATEMENT
LogDir=/ps_home/appserv/

(Point to an appropriate temporary directory under the Linux box for your LogDir)

Reboot app server and clear cache.

Re-create your issue. The files that are created during the XDO logging are related XML, XSL, Translation(XLIFF) and Template files such as PDF,RTF) in the temporary directory you specified in LogDir

Remove xdodebug.cfg when finished replicating the issue.

Also see:
809487.1 – E-BI/XMLP:How to Run BI/XML Publisher Reports in Debug Mode/Turn ON logging

Viewing Locked Objects in Oracle 11g

-- view all currently locked objects:
SELECT username U_NAME, owner OBJ_OWNER,
object_name, object_type, s.osuser,
DECODE(l.block,
0, 'Not Blocking',
1, 'Blocking',
2, 'Global') STATUS,
DECODE(v.locked_mode,
0, 'None',
1, 'Null',
2, 'Row-S (SS)',
3, 'Row-X (SX)',
4, 'Share',
5, 'S/Row-X (SSX)',
6, 'Exclusive', TO_CHAR(lmode)
) MODE_HELD
FROM gv$locked_object v, dba_objects d,
gv$lock l, gv$session s
WHERE v.object_id = d.object_id
AND (v.object_id = l.id1)
AND v.session_id = s.sid
ORDER BY username, session_id;

-- list objects that have been
-- locked for 60 seconds or more:
SELECT SUBSTR(TO_CHAR(w.session_id),1,5) WSID, p1.spid WPID,
SUBSTR(s1.username,1,12) "WAITING User",
SUBSTR(s1.osuser,1,8) "OS User",
SUBSTR(s1.program,1,20) "WAITING Program",
s1.client_info "WAITING Client",
SUBSTR(TO_CHAR(h.session_id),1,5) HSID, p2.spid HPID,
SUBSTR(s2.username,1,12) "HOLDING User",
SUBSTR(s2.osuser,1,8) "OS User",
SUBSTR(s2.program,1,20) "HOLDING Program",
s2.client_info "HOLDING Client",
o.object_name "HOLDING Object"
FROM gv$process p1, gv$process p2, gv$session s1,
gv$session s2, dba_locks w, dba_locks h, dba_objects o
WHERE w.last_convert > 60
AND h.mode_held != 'None'
AND h.mode_held != 'Null'
AND w.mode_requested != 'None'
AND s1.row_wait_obj# = o.object_id
AND w.lock_type(+) = h.lock_type
AND w.lock_id1(+) = h.lock_id1
AND w.lock_id2 (+) = h.lock_id2
AND w.session_id = s1.sid (+)
AND h.session_id = s2.sid (+)
AND s1.paddr = p1.addr (+)
AND s2.paddr = p2.addr (+)
ORDER BY w.last_convert DESC;

Copying text on a PeopleSoft page to the Clipboard using JavaScript

I found a scenario where it would be nice to automatically copy text from a PeopleSoft page and place it into the Clipboard.

Here is how you can do it…
1. Add an HTML element to a page and change it to “Constant”
2. Then just past in this JavaScript. You will need to change the Id for your field you are wanting to copy.

This only works in IE but you could write it for cross-browser support.

I added this to copy the XML Schema from the message definition schema page.

PeopleCode MessageBox to display messages

PeopleCode’s MessageBox can be used to display messages on the screen or in a log. It can be used for issuing warnings, indicating lack of information, or to see the value of certain variables while developing. If the code is running on a page, record or component, the message will be displayed on screen, but using it within a process such as an Application Engine, the message will be written in the log file.

Syntax

MessageBox(style, title, catalog_message, number_message_catalog, default_text [,parameters] )

/*We indicate a catalog number and message number which does not exist to display the default message*/

MessageBox(0,””,99999,99999,”Test”);

/* If the message and catalog exist,the description defines for this message is shown*/
/* If the message doesn´t exist, the default message is displayed*/
MessageBox(0,””,30000,1,”Message could not be found”);

/* To display the value of a variable we can use the following statement*/
MessageBox(0,””,99999,99999,”variable1″ | &var1);

 

Checking for changed objects in PeopleSoft by LASTUPDOPRID

If you want to check for objects changed in your PeopleSoft database via sql you can run the statements below to find those objects. This can be quicker than doing a full database compare using Application Designer.

select ACEMODELID,DESCR,lastupddttm,lastupdoprid From PSACEMDLDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT';
select ACTIVITYNAME,' ',lastupddttm,lastupdoprid From PSACTIVITYDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select AE_APPLID,DESCR,lastupddttm,lastupdoprid From PSAEAPPLDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select AE_APPLID,' ',lastupddttm,lastupdoprid From PSAESECTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select AE_SECTION,' ',lastupddttm,lastupdoprid From PSAESECTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PSARCH_OBJECT,DESCR,lastupddttm,lastupdoprid From PSARCHOBJDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select BCNAME,DESCR,lastupddttm,lastupdoprid From PSBCDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select BUSPROCNAME,' ',lastupddttm,lastupdoprid From PSBUSPROCDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select CERTALIAS,' ',lastupddttm,lastupdoprid From PSCERTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select CERTTYPE,' ',lastupddttm,lastupdoprid From PSCERTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select CHNLNAME,DESCR,lastupddttm,lastupdoprid From PSCHNLDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select CLASSID,' ',lastupddttm,lastupdoprid From PSCLASSDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select COLORNAME,' ',lastupddttm,lastupdoprid From PSCOLORDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select OPRID,' ',lastupddttm,lastupdoprid From PSCOLORDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select CONQRSNAME,DESCR,lastupddttm,lastupdoprid From PSCONQRSDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select OPRID,DESCR,lastupddttm,lastupdoprid From PSCONQRSDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select ALTCONTNUM,DESCR,lastupddttm,lastupdoprid From PSCONTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select CONTNAME,DESCR,lastupddttm,lastupdoprid From PSCONTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select CONTTYPE,DESCR,lastupddttm,lastupdoprid From PSCONTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select FILEID,' ',lastupddttm,lastupdoprid From PSFILEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select FILEREFNAME,' ',lastupddttm,lastupdoprid From PSFILEREDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select FILEREFTYPECODE,' ',lastupddttm,lastupdoprid From PSFILEREDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select FLDDEFNNAME,DESCR,lastupddttm,lastupdoprid From PSFLDDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select FORMATFAMILY,DESCR,lastupddttm,lastupdoprid From PSFMTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select HOLIDAYNAME,' ',lastupddttm,lastupdoprid From PSHOLIDAYDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select EFFDT,DESCR,lastupddttm,lastupdoprid From PSIBRTNGDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select ROUTINGDEFNNAME,DESCR,lastupddttm,lastupdoprid From PSIBRTNGDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select IMPNAME,' ',lastupddttm,lastupdoprid From PSIMPDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select IONAME,IODESCR,lastupddttm,lastupdoprid From PSIODEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select OPRID,' ',lastupddttm,lastupdoprid From PSJPUPDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PTJPLT_APPNAME,' ',lastupddttm,lastupdoprid From PSJPUPDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PTJPLT_NAME,' ',lastupddttm,lastupdoprid From PSJPUPDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select MENUNAME,DESCR,lastupddttm,lastupdoprid From PSMENUDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select MOBILEPAGENAME,DESCR,lastupddttm,lastupdoprid From PSMPDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select MSGNAME,DESCR,lastupddttm,lastupdoprid From PSMSGDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select MSGNODENAME,DESCR,lastupddttm,lastupdoprid From PSMSGNODEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select OPRID,' ',lastupddttm,lastupdoprid From PSOPRDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PACKAGEID,DESCR,lastupddttm,lastupdoprid From PSPACKAGEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PACKAGEROOT,DESCR,lastupddttm,lastupdoprid From PSPACKAGEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select QUALIFYPATH,DESCR,lastupddttm,lastupdoprid From PSPACKAGEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PM_SYSTEMID,' ',lastupddttm,lastupdoprid From PSPMSYSDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PNLNAME,DESCR,lastupddttm,lastupdoprid From PSPNLDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select MARKET,DESCR,lastupddttm,lastupdoprid From PSPNLGRPDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PNLGRPNAME,DESCR,lastupddttm,lastupdoprid From PSPNLGRPDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PORTAL_NAME,' ',lastupddttm,lastupdoprid From PSPRDMDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PROJECTNAME,PROJECTDESCR,lastupddttm,lastupdoprid From PSPROJECTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PORTAL_NAME,' ',lastupddttm,lastupdoprid From PSPRSMDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PORTAL_OBJNAME,' ',lastupddttm,lastupdoprid From PSPRSMDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PORTAL_REFTYPE,' ',lastupddttm,lastupdoprid From PSPRSMDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select OPRID,' ',lastupddttm,lastupdoprid From PSPRUFDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PORTAL_LABEL,' ',lastupddttm,lastupdoprid From PSPRUFDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PORTAL_NAME,' ',lastupddttm,lastupdoprid From PSPRUFDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PORTAL_REFTYPE,' ',lastupddttm,lastupdoprid From PSPRUFDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select OPRID,' ',lastupddttm,lastupdoprid From PSPRUHDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PORTAL_NAME,' ',lastupddttm,lastupdoprid From PSPRUHDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select OPRID,DESCR,lastupddttm,lastupdoprid From PSQRYDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select QRYNAME,DESCR,lastupddttm,lastupdoprid From PSQRYDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select QUEUENAME,DESCR,lastupddttm,lastupdoprid From PSQUEUEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select RECNAME,RECDESCR,lastupddttm,lastupdoprid From PSRECDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select ROLENAME,DESCR,lastupddttm,lastupdoprid From PSROLEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select SQLID,' ',lastupddttm,lastupdoprid From PSSQLDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select SQLTYPE,' ',lastupddttm,lastupdoprid From PSSQLDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select STYLENAME,' ',lastupddttm,lastupdoprid From PSSTYLEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select STYLESHEETNAME,DESCR,lastupddttm,lastupdoprid From PSSTYLSHEETDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select MSGNAME,' ',lastupddttm,lastupdoprid From PSSUBDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select SUBNAME,' ',lastupddttm,lastupdoprid From PSSUBDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select OPRID,' ',lastupddttm,lastupdoprid From PSTOOLBARDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select EFFDT,DESCR,lastupddttm,lastupdoprid From PSTREEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select SETCNTRLVALUE,DESCR,lastupddttm,lastupdoprid From PSTREEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select SETID,DESCR,lastupddttm,lastupdoprid From PSTREEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select TREE_NAME,DESCR,lastupddttm,lastupdoprid From PSTREEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select FILEREFTYPECODE,' ',lastupddttm,lastupdoprid From PSTYPECODEDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select URL_ID,DESCR,lastupddttm,lastupdoprid From PSURLDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select OPTN_CATEGORY_LVL,DESCR,lastupddttm,lastupdoprid From PSUSEROPTNDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select USEROPTN,DESCR,lastupddttm,lastupdoprid From PSUSEROPTNDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select OPRID,' ',lastupddttm,lastupdoprid From PSWSRPCPHDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PTWSRPPORTLETNAME,' ',lastupddttm,lastupdoprid From PSWSRPCPHDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PTWSRPPRODUCERNAME,' ',lastupddttm,lastupdoprid From PSWSRPCPHDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PTWSRPPORTLETNAME,PTWSRP_PLTDESCR,lastupddttm,lastupdoprid From PSWSRPPLTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PTWSRPPRODUCERNAME,PTWSRP_PLTDESCR,lastupddttm,lastupdoprid From PSWSRPPLTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select PTWSRPPRODUCERNAME,' ',lastupddttm,lastupdoprid From PSWSRPPRDDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select REPORT_DEFN_ID,DESCR,lastupddttm,lastupdoprid From PSXPRPTDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;
select TMPLDEFN_ID,DESCR,lastupddttm,lastupdoprid From PSXPTMPLDEFN where lastupddttm > to_date('01012000','ddmmyyyy') and lastupdoprid <> 'PPLSOFT' ;

MVPRDEXP.DMS is your friend…

In the scripts directory of your PS_HOME you will find core tables for many PeopleTools objects. Use it as a reference.

MVPRDEXP.DMS

Example…

— PORTAL REGISTRY USER FAVORITES
EXPORT PSPRUFDEFN;

— PORTAL USER REGISTRY HOMEPAGE
EXPORT PSPRUHDEFN;
EXPORT PSPRUHTAB;
EXPORT PSPRUHTABPGLT;

PeopleSoft definitions that will NOT copy to a file…

There are two PeopleSoft definitions that will NOT copy to a file…
Message Catalog Entries
Roles

If you cant copy from database to database then you need to write a DMS script to move these…

--ROLES
EXPORT PSROLEDEFN;
EXPORT PSROLEDEFNLANG;
EXPORT PSROLECANGRANT;
EXPORT PSROLECLASS;

-- MESSAGES
EXPORT PSMSGSETDEFN;
EXPORT PSMSGSETLANG;
EXPORT PSMSGCATDEFN;
EXPORT PSMSGCATLANG;

Add JavaScript to a PeopleSoft Page

Add JavaScript to an HTML Area on a PeopleSoft Page to manipulate objects.
This hides a button till another object on the page appears…


I also added a group box around another object so it would give a unique id to a dynamic object. (win0divHRS_CE_LNK_WRK_PAGE_9)