Tuesday 12 May 2015

Peoplesoft - Drill Down PS Query

1. Introduction

How often  users run queries and write  down values returned to navigate to the appropriate page and view the underlying details of those vouchers, journals, vendors, etc?Wouldn't it be nice if  just on a click of  a hyperlink embedded within the query results ,have a page pop up in a separate browser window instead. As a solution to this,Drill down PS query can be used .

Drill down PS Query is a type of expression which returns the respective URL for the column along with the PS Query Search Results.By clicking the URL or Mapped Fields users are redirected to the respective peoplesoft page.

2. Business Benefits

Eliminates the need of noting down the value and navigating to the component manually to enter the data and open up the page for editing, resulting in a time saver

3. Types of  Drill down PS Query

  • Query URL 
  • Component URL
  • External URL     
  • Attachment URL 
  • Free Form URL

           4. Development of a  Drill Down PS Query

        A Drill Down PS Query can be developed in few simple steps:
       Step1Once the query is created, Click Expression -> Add Expression Button.


         Step2: Select the expression type as Drilling URL.


       Step3: Once Drilling URL is selected as the Expression type, types will be      highlighted.Choose anyone URL type based on the requirement.



         Step4: After all the fields were entered, click the search keys button to populate all the search keys which is in record.



       Step5: After search keys are populated, provide the respective key value. The Selection flag for the particular field name should be selected to fill their key value.These values will be used to By-pass the search key values while the component is redirected.
       


      Step6: Click the Map column button to populate all the fields from the query record.
      Select the field that needs to be mapped. While the query is executed, on clicking a mapped field the component will be redirected in a separate tab .


       
     Step7 (optional):“Use as field” hyperlink will be used to make the drilling URL expression as a new field .

<     


      Step8: Click the mapped fields or drilling URL hyperlink to redirecting the respective component in a new tab in our browser. 

<



    Author,
   Chandru Asokan
   Kovaion-Peoplesoft Consulting Practice
   Email:chandru.asokan@kovaion.com

Wednesday 1 April 2015

PeopleSoft Composite Query

What is PeopleSoft Composite Query?

Composite query is a new feature of Peoplesoft reporting tools 8.54 which provides the option to combine data from existing queries and present data as the single and flattened query result. It also allows to use apply filters, aggregates, and so on before presenting the report results.  Composite queries created based on web services requests are not persisted in the database. The based queries can be the existing queries that were created using Query Manager, Query API, or QAS.

Main Highlights:

Composite Query provides option to:
  • Select the SQL pruning option to remove tables and fields that are not needed based on users’ attribute selections.
  • Set the ORDER BY and GROUP BY clauses.
  •   Set the WHERE clause as a filter over the result set of a composite query.
  • Prune the based queries at runtime based on the selected output fields, join criteria, filter criteria, and ORDER BY clause.
  • View pruned SQL statements for the composite query.
  •    Run the composite queries using Application Server.
  •  Reuse a composite query definition.
  • Specify join criteria, field dependencies within a query, and field or table pruning options at query design time.
  •  Set the result limit by selecting the attributes in the based queries.

Creating a Composite Query

The following example illustrates creating a composite query, from two existing queries to get the combined results. In this example we are using the queries Job Data and Personal data to get the Job and personal details of all the active employees.

Step1:

Navigation: Main Menu -> Reporting Tools -> Composite Query -> Composite Query Manager 

Add a new value





Step2: 

Select two of the existing queries, the alias names once selected here cannot be changed.














Step3:

In the next step we specify the joins. In this example as we are querying the employee details, Emplid field is joined in both the queries.


Step4:

Select the output fields from both the queries.















Step 5:


In this step we select the filters, Having clauses etc if any and save the query.




Limitations of Composite Query:
  • Composite Query should not be used for returning a large number of rows. The result set returned from a composite query should be 10,000 rows or less at runtime. The time-out limitation to run a composite query is the time-out limitation of the application servers. Need to make sure that construct the Join Criteria, Filter Criteria, and aggregations to reduce the amount of data returned by a composite query.
  •  Composite query does not change the SQL statements or the result sets of existing queries
  •   Relationships between different based queries are expressed by fields, not by expressions or prompt.
  • Users must specify the field dependencies to ensure correctness of SQL pruning.
  • If a query has the UNION construct, pruning is based on the main SELECT clause
  • A composite query does not parse expressions.
  •  If users need to sort the composite query results, they have to use Composite Query Manager to specify the Order By clause for the composite query.     

Author,
Shubha Rohit
Kovaion-Peoplesoft Consulting Practice


Thursday 8 January 2015

PeopleSoft Fluid User Interface

 With the latest release of PeopleTools 8.54  , Oracle has introduced  the Fluid User  Interface experience.
The Fluid UI provides the users with the ability to access PeopleSoft applications across a variety of form factors from smart phones to tablets to desktops/laptops. Fluid also provides a common user experience on variety of devices regardless of the screen size. Through this responsive design, browser will resize itself depending on device size.

Lets have  a look at the home page that is rendered after the latest peopletools has been used.



The important features of home pages are as below:
  •  Home Pages
  •  Tiles
  • PeopleSoft Search widget
  •   Notifications widget
  • Actions widget
  • Navigation Bar widget.
The fundamental feature of the Fluid Model is the Home Page which provides the base for the users or the customers to navigate and carry out the respective works.
In a way Fluid home pages are similar to the current home pages but  fluid model provides the end user with the new User experience that renders well on the dashboard or the home pages.

Tiles/Grouplets are lifeline of Fluid UI page. Tiles help the user to navigate to a fluid page or classic PIA page.

Business Benefits

  •  Device independent
  • Gives the response based on user device
  • Can be personalized based on needs e.g. Tiles can be added or deleted from homepage based on personal needs

      Development Steps 

Let us design a simple fluid UI page for following requirement..
  • To create a fluid homepage for Recruiter
  • To add a tile for Applicant search
      1) Development of Fluid Home Page


Developing a fluid home page is fairly easy and is done through PIA.
Navigation:  Peopletools> Structure and Content>Fluid Structure and Content>Fluid Homepages.

Add a new homepage. Usage Type should be Landing Page as shown in figure below.


       2)      Development of a Fluid Component

Development of a fluid component goes in the same traditional PeopleSoft way- creation of fields, record, page, component, menu and finally creating the content reference. Fluid properties are defined at page and component level.

Step1: Create a new fluid page



While creating a new fluid page, choose Layout Page. Layout page is the template page for a fluid UI page.

Step2: Select Fluid UI Page Properties

After page is created, fluid UI properties can be set in Page properties.



In Page properties, user should focus more on Form Factor Override and Suppress Form Factor.
Form Factor Override: Overrides the style of page based on device size.
Suppress Form Factor: Suppresses the page from displaying based on device size. E.g.  If Small is checked, page will not appear on most smart phones.

Step 3: Create a new component.

Creating a new fluid component works in the same traditional PIA way. But the search pages are not displayed for fluid applications.

Step 4: Set component fluid properties



As shown in above figure, there are two main checkboxes, Fluid mode and Small Form Factor Optimized


Step6: Add the Tile in home page

Navigation: Main Menu>Fluid Home>Homepage 
  1. Click on Action Widget
  2. Click on Personalize
  3. Click on Add Tile
  4. Select the content reference which has to be added as a tile.
  Fluid UI is ready for test.








Clicking on tile 'Applicant List' will open  the designed Fluid UI page.






















Best Practices:
 Always check Display on Small form Factor Homepage while creating the content reference. This will show the tile on small devices
.
Limitations:
  • Classic PIA search for a component does not work in Fluid. User should create a separate search by selecting the correct layout.
  • Currently, only light weighted applications can be deployed in fluid mode e.g. components like add a person, job data which demands heavy data entry are not suited for fluid mode.
  • Currently, some features, like spell check, rich text editor, Find In for grids, Download to Excel, modal movement or re-sizing, are not available in fluid.

         Author: Madhur Mohini
  Kovaion-Peoplesoft Consulting Practice
         Email: madhur.mohini@kovaion.com




Monday 5 January 2015

SQL Update on PSURLDEFN, Application Server and GetURL(URL.XXXX) - All connected

Today, we had an interesting issue at one of our customer site.

When a PeopleSoft environment is refreshed (production / post upgrade refresh), Environment Management team (DBAs) will mask sensitive data using scripts or tools. PSURLDEFN is one of the key table to be masked.

We recently had a environment refresh (Post Upgrade). One issue was reported where the connectivity to the third party system was lost after the refresh (upgrade). On analysis, the PSURLDEFN was blanked out during the refresh process and not reverted with actual values. So, the DBAs repopulated the data using SQL scripts. Post URL data population also, the same connectivity issue was encountered.

On further Analysis, GetURL(URL.XXXX) was used in PeopleCode to get the third party system URL. GetURL() function fetches the information from the App Server Cached details. This was designed for a quicker response on the Application Server. The issue was finally resolved by DBAs clearing the cache and Application Servers bounced.

So, if there are any SQL update on the PSURLDEFN table, its good practice to clear the Application Server Cache.