Sunday, 3 July 2016

List of Common PeopleSoft Tables


Below are the commonly used PeopleSoft tables which i used in my daily work. Please comment if any important table is missed.

Pages

* PSPNLDEFN — Page header table
* PSPNLFIELD — Page controls (field types/FIELDTYPE)
* PSPNLHTMLAREA — Static HTML Areas on Pages

Fields

*PSDBFIELD — Fields in the system
* PSXLATITEM — Translate Values

Records

* PSRECDEFN — Record header table
* PSRECFIELD — Fields in the record (subrecords not expanded)
* PSRECFIELDALL — Fields in the record (subrecords expanded)
* PSKEYDEFN — Indexes
* PSTBLSPCCAT — Tablespaces
* PSRECTBLSPC — Records’ tablespace assignments

Components

* PSPNLGRPDEFN — Component header table
* PSPNLGROUP — Pages in the components

Projects

* PSPROJECTDEFN — Project header table
* PSPROJECTITEM — Definitions in the project

Component Interface

* PSBCDEFN — header record; one row for each component interface
* PSBCITEM — one row for each property

Menus

* PSMENUDEFN — Menu header table
* PSMENUITEM — Items (components) on the menu

Process Scheduler

* PS_PRCSDEFN — Process Definition Header
* PS_PRCSDEFNGRP — Process Group
* PS_PRCSDEFNPNL — Component
* PS_PRCSJOBDEFN — Job Header
* PSPRCSRQST — Process Request Instances


Security

* PSCLASSDEFN — Permission List header table
* PSAUTHITEM — Menu items granted security by permission lists
* PSROLEDEFN — Role header table
* PSROLECLASS — Permission Lists in roles
* PSOPRDEFN — User ID header table
* PSROLEUSER — Roles granted to users

Portal

* PSPRSMDEFN — Content References and Folders
* PSPRUHTABPGLT — Portal User HP Tab Pagelet

Change Control

* PSCHGCTLHIST — shows history of locked definitions with project name, incident, and description
* PSCHGCTLLOCK — shows definitions that are currently locked

Application Engine

* PSAEAPPLDEFN — header record; 1 row per app engine
* PSAEAPPLSTATE — state records assigned to app engines
* PSAEAPPLTEMPTBL — temp tables assigned to app engines
* PSAESECTDEFN — sections
* PSAESTEPDEFN — steps
* PSAESTEPMSGDEFN
* PSAESTMTDEFN — actions (action types)


HTML Definitions

* PSCONTDEFN — header record; last update time, etc.
* PSCONTENT — stores actual text in the HTML definition

SQL Definitions

* PSSQLDEFN — header record; last update time, etc.
* PSSQLTEXTDEFN — stores actual text in the SQL definition

File Layout Definitions

* PSFLDDEFN — header record; last update time, etc.
* PSFLDSEGDEFN — stores the segments for each layout
* PSFLDFIELDDEFN — stores the fields for each layout



Friday, 31 July 2015

Data Mover Commands

Data Mover


PeopleSoft Data Mover is an administrative tool used by DBA's. It is used for many purpose as mentioned:
  1. It is used to move data from one database to another.
  2. With Data mover we can create scripts not objects.
  3. To install PeopleSoft database we require Data Mover.
  4. Using Data Mover you can take backup of data.
  5. You can rename record's and field's.

Data Mover Commands

  • Export: Used to export data out of the database. A file is specified and the data gets loaded into it. Later this data can be used for importing into the same / different databases.
        SET OUTPUT C:/Folder_Name/File.DAT;
        SET LOG C:/Folder_Name/File.LOG;

        EXPORT Table_Name;

    Sunday, 12 April 2015

    Populate values of drop-down list through peoplecode

    Sometime we need to populate values of drop-down list based on value of another field or some other condition.

    /*Declare Local Variable*/
    Local SQL &SQL;
    Local Rowset &rset;
    Local Field &field;
    Local string &type, &descr;

    /* Getting the level 0 and level 1 records */
    &rset= GetLevel0()(1).GetRowset(Scroll.TEST);

    /* Getting the field to which the drop down is attached */
    &field = &rset(1).GetRecord(Record.TEST).GetField(Field.VALUE);

    /* Clearing all existing values*/
    &field.ClearDropDownList();

    /* SQL for fetching values that to be added in drop down.*/
    &SQL = CreateSQL("select fieldvalue, xlatlongname from psxlatitem where fieldname='VALUE’");

    While &SQL.Fetch(&fieldvalue, &xlatlongname)
       & field.AddDropDownItem(&fieldvalue, &xlatlongname);
    End-While;