Posts

Showing posts from 2013

Using Related Field as a Prompt Field without using Translate values

Image
Before learning the process of having related field as a prompt field, you need to know the final output of PIA screen looks like, check out the below screen. here actually the Profession field store only one character like "E", "H", but user can experience it values in their screens. Do the following steps to do the task titled. 1. Create the Record with field you actually want to store in DB. in our example it is MV_PROF 2. Assign the Prompt Table which you want to prompt while clicking the Related Field prompt. As shown above 3. Make sure that your Prompt Table has the Field you are displaying (Descr) is having Alternative Search Key and List Box Item checked 4. Comes to page design, have the Display Control Field properties like below, 5. And Related Field properties like below,

Selecting multiple rows into a single row - Oracle 11g feature

Image
Like you I was also searching this solution, finally we have a compact function introduced in Oracle 11g Function   :    listagg() Syntax      :     For a specified measure,  LISTAGG   orders data within each group specified in the   ORDER   BY   clause and then concatenates the values of the measure column. As a single-set aggregate function,  LISTAGG  operates on all rows and returns a single output row. As a group-set aggregate, the function operates on and returns an output row for each group defined by the  GROUP   BY  clause. As an analytic function,  LISTAGG  partitions the query result set into groups based on one or more expression in the  query_partition_clause . The arguments to the function are subject to the following rules: The  measure_expr  can be any expression. Null values in the measure column are ignored. The  delimiter_expr ...

PeopleSoft Performance Tune-Up Tips

2. Use Array Record object for sequential insertion instead of Record Object with Insert function for example consider the below code, Local Record &rUserEmail; &rUserEmail = createrecord(record.XX_USER_EMAIL); &rUserEmail.EMPLID.Value = '86948'; &rUserEmail.EMAILID.Value = 'Support.hello@yahoo.com'; &rUserEmail.Insert(); &rUserEmail.EMPLID.Value = '47393'; &rUserEmail.EMAILID.Value = 'support.youone@yahoo.com'; &rUserEmail.Insert(); ... ... and the same code can be written by using the Array Record object. local array &aryUserEmail; &aryUserEmail = createArray(); &aryUserEmail.push(createRecord(record.XX_USER_EMAIL)); &aryUserEmail[1].EMPLID.value = '2383'; &aryUserEmail[1].EMAILID.value = 'support.welcome@yahoo.com'; ... ... &SQL = CreateSQL("insert into %table(XX_USER_EMAIL) (EMPLID, EMAILID) values (:1,:2)"); &SQL.BulkMode = true; for ...

PeopleSoft Performance Tune-Up Tips

1. Use RowSet Fill instead of using SQL Objects Fetch mehod For example see the below code which is written with SQL Object with fetch local SQL &sqlOprDefn; &sqlOprDefn = createSQL("select oprid, oprdefndesc, emailid from PSOPRDEFN where emailid <> ' ' "); while (&sqlOprDefn.fetch(&id, &name, &email))     ...do some operations... end-while; and the same code can be written as below using Rowset Fill method local rowset &rsOprDefn; &rsOprDefn = createrowset(record.PSOPRDEFN); &rsOprDefn.fill("where emailid <> ' ' "); for &i = 1 to &rsOprDefn.ActiveRowCount s&id = rsOprDefn[&i].OPRID.value; s&name = rsOprDefn[&i].OPRDEFNDESC.value; s&emailid = rsOprDefn[&i].EMAILID.value;     ...do some operations... end-for; when you do like this, you see dramatically the performance improved.

Localize your PeopleSoft System Date

In Peoplesoft system you can easily localize your Date format based on your country format. For that what you need to do is Log on to PIA (Pure Internet Architecture) through the User ID has PTPT1000 Permission List Go to Root >> PeopleTools >> Personalization >> Locale Defaults Search for your PIA's default language code (e.g.: "en-us") For user option "Date Format" change the "Override Value" to  D for DDMMYY format M for MMDDYY format Y for YYMMDD format Note YY or YYYY is based on Page Field properties Also for "Date Separator" you can use any Single Character to separate / (Forward Slash) is a default one Save the Page Now where ever the Date field is occurring which will appear in the updated format. and this can be overridden by Users personalization which is in, My Personalizations >> Regional Settings and change the Date Format and Date Separator options based on your convenience....