PS Query & SQL

 View Only
  • 1.  Query that displays records and process type/name for a page

    Posted 04-08-2025 11:42 AM

    Hi Query experts!

    My friend @Sue Cerrato provided me with a great query, based on record PSPNLFIELD, that will show the records/fields associated with a given page.

    I wanted to see if anyone has taken this a step further and created a query to show the process name + type for the page (if it's a page associated with a process).

    Basically, we're trying to figure out how to provide some App Designer-style information to those who do not have App Designer!

    Thanks,

    Nicole



    ------------------------------
    Nicole Apostola
    Payroll and Financial Systems Analyst
    Princeton University
    na2344@princeton.edu
    ------------------------------
    Alliance 2026 Registration is Open!


  • 2.  RE: Query that displays records and process type/name for a page

    Posted 04-08-2025 03:49 PM

    Hey, Nicole. Sounds like you might be interested in PRCSDEFNPNL, which is the record behind the page on which you would tie a process to a component.

     

    Matt Lemme (he/him)

    Assistant Director, Student IT Services

    University Information Systems

    University of Colorado

    1800 Grant Street

    Denver, CO 80203

    t 303 860 4344

     

     

     




    Alliance 2026 Registration is Open!


  • 3.  RE: Query that displays records and process type/name for a page

    Posted 04-09-2025 12:13 PM

    Would you be willing to share the Query with us once you get it set.   I would like to add it to my toolkit of sql's.



    ------------------------------
    Sandra Asebedo
    Senior ERP Programmer
    University of Texas At Arlington
    ------------------------------

    Message from the HEUG Marketplace:
    ------------------------------
    Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
    ------------------------------

    Alliance 2026 Registration is Open!


  • 4.  RE: Query that displays records and process type/name for a page

    Posted 04-09-2025 04:00 PM

    Keep in mind that a process is associated with a component, not a page. One way to get from a page to a process would be to first join PSPNLFIELD to PSPNLGROUP (on the field PNLNAME) to get all of the component(s) in which the specified page is included and then join PSPNLGROUP  to PRCSDEFNPNL (on the field PNLGRPNAME) to get all of the process definition(s) that are associated with those component(s). Just be aware that there are other ways that a process may be associated with a page (such as via a Command Pushbutton or a PeopleCode event), so this may not give you an all-inclusive list.



    ------------------------------
    Ed Kelly
    Software Developer
    University of Maryland, Baltimore County
    ------------------------------

    Message from the HEUG Marketplace:
    ------------------------------
    Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
    ------------------------------

    Alliance 2026 Registration is Open!


  • 5.  RE: Query that displays records and process type/name for a page

    Posted 04-09-2025 04:10 PM

    Hi everyone,

    I worked on this a few hours ago and it seems to be ok-ish but I welcome feedback:

    SQL:

    SELECT DISTINCT A.PNLNAME, A.PNLFLDID, A.LBLTEXT, A.RECNAME, A.FIELDNAME, B.PNLGRPNAME, D.PRCSTYPE, D.PRCSNAME, C.OBJECTOWNERID
      FROM (((PSPNLFIELD A LEFT OUTER JOIN  PSPNLGROUP B ON  A.PNLNAME = B.PNLNAME ) LEFT OUTER JOIN  PSPRSMDEFN C ON  C.PORTAL_NAME = 'EMPLOYEE' AND C.PORTAL_URI_SEG2 = B.PNLGRPNAME ) LEFT OUTER JOIN  PS_PRCSDEFNPNL D ON  D.PNLGRPNAME = C.PORTAL_URI_SEG2 )
      WHERE ( A.PNLNAME LIKE :1
         AND A.FIELDNAME <> ' '
         AND A.FIELDNAME <> 'PSXLATITEM'
         AND A.RECNAME NOT LIKE '%FUNCLIB%'
         AND A.RECNAME NOT LIKE '%WRK%'
         AND A.RECNAME NOT LIKE '%DERIVED%')



    ------------------------------
    Nicole Apostola
    Payroll and Financial Systems Analyst
    Princeton University
    na2344@princeton.edu
    ------------------------------

    Alliance 2026 Registration is Open!


  • 6.  RE: Query that displays records and process type/name for a page

    Posted 04-10-2025 11:22 AM

    I will request something else from a friend:

    this appears to work well for Classic pages but not necessarily for Fluid; does anyone have any suggestions?

    Thanks!



    ------------------------------
    Nicole Apostola
    Payroll and Financial Systems Analyst
    Princeton University
    na2344@princeton.edu
    ------------------------------

    Alliance 2026 Registration is Open!


  • 7.  RE: Query that displays records and process type/name for a page

    Posted 04-11-2025 12:00 PM

    The issue you are most likely running into is not specific to Fluid pages, but definitely happens more with them.  The SQL you have is only dealing with the fields associated with the main page being specified.  Pages can have Subpages identified by PSPNLFIELD.SUBPNLNAME.  In order to get all the fields you would need to expand your results to perform the same SQL against all the SUBPNLNAME values.  Fluid pages tend to be developed with more Subpages.  Of course, even subpages can be built with subpages, so you really need a PNLNAME in clause that can identify all the subpages down the entire chain to the bottom to ensure you are including all of the Record/Fields.   

    Secondary pages as well may need to be taken into consideration.



    ------------------------------
    Mark Miszewski
    Senior PeopleSoft Developer
    Cornell University
    ------------------------------

    Message from the HEUG Marketplace:
    ------------------------------
    Find, Review, and Engage with Higher Education-focused solution providers, products, and services using the HEUG Marketplace.
    ------------------------------

    Alliance 2026 Registration is Open!