Calling an Application Engine from PeopleCode
摘要:The PeopleCode below will show you how to call an Application Engine from PeopleCode. Some refer to this as “Real-Time Application Engine Processing.” For example, when a user save’s a page, you may w...
阅读全文
Run an SQR From a PeopleSoft Application Engine
摘要:Here is a good sample of how to launch an SQR from within PeopleCode. You can use the peoplecode function called “ScheduleProcess”. Here is the example: &PROCESS_NAME = "SQRNAME"; &PROCESS_TYPE = "SQ...
阅读全文
Dynamic View and Drop Down Menu
摘要:This was kind of interesting to figure out. What I was going after is the following. I had a drop down box on a page that shows some Business Units. The values however need to be dynamic and change de...
阅读全文
Check Box Select/Deselect All on Grid
摘要:The below function is to be used on a grid with multiple check boxes. Place the code behind a FieldChange event and users will have the option to Select or Deselect grid rows all at once. Fucntion s...
阅读全文
Manipulating Data on a Grid: Scroll PeopleCode
摘要:When you have a grid that is filled with data; data that you don't want. How do you clear it out and then fill it with the data set that you do want? Well, here are the simple steps to do just that. ...
阅读全文
Read a File Using File Layout and insert data into a record
摘要:Local File &MYFILE; Local Record &REC; Local array of string &ARRAY; Local string &FILE_DIRECTORY, &FileName; &FileName = "MY_FILE_NAME.txt"; &FILE_DIRTORY = "/MYDIRECTORY/" /*open file for reading*/...
阅读全文
Convert From One Currency to Another
摘要:The function is ConvertCurrency to convert currency from US dollar to any other currency on the PS_RT_RATE_TBL . ConvertCurrency(amt, currency_cd, exchng_to_currency, exchng_rt_type, effdt, converted...
阅读全文
Call Unix Script from PeopleCode
摘要:A function to call UNIX and/or shell script from PeopleCode. /*call unix script from PeopleCode*/ Function CallScript; /*According to PeopleBooks, PS_HOME is always prefixed to the file location...
阅读全文