We had a requirement that we wanted to save data through a component interface via PeopleCode in a record that has a related language record also and we wanted to save data in both English and an other language.
Following is how your code will look like:
rem ***** Get current PeopleSoft Session *****;
&oSession = %Session;
®_LNG = &oSession.RegionalSettings.LanguageCd;
&oSession.RegionalSettings.LanguageCd = "Your related language";
rem do your processing of saving data through ci via peoplecode
&oSession.RegionalSettings.LanguageCd = ®_LNG;
Omar's Blog
Monday, 4 March 2013
Monday, 24 December 2012
PeopleSoft - App Engine - Pending Process Error
Recently while running a custom made Application Engine process we faced the following error:
"A pending process was found for the current Operator id, Run Control id, and Application Engine Program. This process either is running now or has abended. Please restart the pending process if it has abended, and allow it to run to completion, before submitting a new process request."
To resolve the issue run the following query:
delete from ps_aeruncontrol where oprid like 'OPRID_RUNNING_THAT_PROCESS'
Warning: This query might mess up the data of processes that are already running so please proceed with caution.
"A pending process was found for the current Operator id, Run Control id, and Application Engine Program. This process either is running now or has abended. Please restart the pending process if it has abended, and allow it to run to completion, before submitting a new process request."
To resolve the issue run the following query:
delete from ps_aeruncontrol where oprid like 'OPRID_RUNNING_THAT_PROCESS'
Warning: This query might mess up the data of processes that are already running so please proceed with caution.
Tuesday, 18 December 2012
PeopleSoft - How to disable plus/minus button on a scroll in PeopleCode?
Use the following code:
&Level0_Row = GetLevel0()(1);
&VAR = &Level0_Row.GetRowset(Scroll.*Your Scroll Name or the main record of the scroll comes here*);
&VAR.InsertEnabled = False;
&VAR.DeleteEnabled = False;
&Level0_Row = GetLevel0()(1);
&VAR = &Level0_Row.GetRowset(Scroll.*Your Scroll Name or the main record of the scroll comes here*);
&VAR.InsertEnabled = False;
&VAR.DeleteEnabled = False;
Saturday, 16 April 2011
Windows 8 Update - Portability - Ability to boot from USB
As more details are being revealed about Windows 8, word about a long awaited feature has come out. Windows 8 will have the ability to boot from USB. It was a long awaited feature for Windows platform as it has already been there for Linux for quite some time.
For more details checkout the following link:
Windows 8: Portable Workspace allows you to run Windows from a USB device
For more details checkout the following link:
Windows 8: Portable Workspace allows you to run Windows from a USB device
Monday, 28 March 2011
How to find your public IP address?
Lifehacker recently posted an article about a web site that can help you find your public ip address in a very simple way.
Following is the link:
http://icanhazip.com/
Following is the link:
http://icanhazip.com/
Friday, 25 March 2011
Online JSON Validator and Formatter
I found a free online JSON validator and formatter that can be useful for people working with JSON.
Following is the link:
http://www.jsonlint.com/
Following is the link:
http://www.jsonlint.com/
Wednesday, 23 March 2011
Turn Off Your Monitor/LCD with One Click - Works For Both Laptops and Desktops
I found a useful utility that can turn off your monitor/LCD with just one click/double-click. Its just one file that needs no installation so its easier to keep it on your desktop.
Works for both Laptops and Desktops.
Here is the link:
http://www.redmondpie.com/turn-off-your-notebook-lcd-with-one-click/
Works for both Laptops and Desktops.
Here is the link:
http://www.redmondpie.com/turn-off-your-notebook-lcd-with-one-click/
Subscribe to:
Posts (Atom)