Posts Tagged ‘peoplesoft’

December 29th, 2008

Fusion Apps delayed, what to do next….

Tour de FusionAbout a year ago I raised the question how to prepare for Oracle Fusion Applications. Within Logica we had chosen to focus on creating awareness for the changes Fusion Apps would bring. In this so called Tour de Fusion programme we focused on several topics like SOA, BPEL and BPM. Topics which not only existed in theory, but already were supported with tools by Oracle. For instance the Oracle SOA suite or Oracle BPA suite. This allowed our consultants to work (‘to stand with their feet in the mud’) with these products in our skill centre environment. Examples are interfaces between PeopleSoft and eBusiness Suite based on BPEL. A rudimentary way of application integration.

At Openworld 2008 Oracle delayed the launch of Fusion Apps until end 2009 / beginning 2010. What is the impact on our competence development in general and the Tour de Fusion programme in particular?

December 18th, 2008

PeopleSoft export to formatted MS Word file using XML templates

You don’t need a program like Oracle XML Publisher to present a PeopleSoft user a formatted MS Word file, filled with PeopleSoft data. If you want to export PeopleSoft data to a formatted MS Word file, just follow these few simple steps:

  1. create a formatted xml file in MS Word containing placeholders for the PeopleSoft data. Store this xml in the database.
  2. Create a page containing an export button, which calls an IScript
  3. Create an IScript which retrieves the template from the database, fetches the data to be inserted from the database and substitutes the placeholders for the data.

In detail:

  1. Open MS Word and create and format a page normally. Create placeholders that will contain the data from the database or PeopleCode. For example {NAME}. Be sure to save the file as an XML document. We want to store the plain text “source” of the formatted XML document in the database. For this reason open the file in a plain text editor like Notepad. You can check your placeholder(s) here. Copy the contents and save them in the database. This can be in a custom table or perhaps in the message catalog. In this example we’ll use the message catalog 20.000 and item 1.
  2. Create a page in Application Designer and insert a button or hyperlink. The destination of the button is a PeopleCode command of a field in a derived record. For example DERIVED_REC.CALL_ISCRIPT. In the FieldChange event of the above mentioned field, call the ViewURL(URL_str) function. The parameter of this function is an IScript which we’ll create in the next step.
  3. Example:

    &sUrl = %Request.RequestURI | “?ICType=Script&ICScriptProgramName=DERIVED_REC.CALL_ISCRIPT.FieldFormula.ISCRIPT_XML_RESPONSE”;

    ViewURL(&sUrl);

    In newer versions you can use functions like GenerateScriptContentURL to compose the IScript URL.

  4. Create an IScript with the following content:

Function ISCRIPT_XML_RESPONSE

/* set filename */

&XMLFileName = “xml_export”;

/* set headers so the browser sends a save dialog box */

&contDisposition = “attachment; filename=” | &XMLFileName | “.doc”;

%Response.SetHeader(“content-disposition”, &contDisposition);

/* set content type to word, so MS Word can be opened */

%Response.SetContentType(“application/msword”);

/* get the template xml file */

&sXMLTpl = MsgGetExplainText(20000, 1, “XML not found”);

/* get the data */

&sName = “John Doe”;

/* substitute placeholder for the data */

&sXMLTpl = Substitute(&sXMLTpl, “{NAME}”, &sName);

/* send to browser */

%Response.Write(&sXMLTpl);

End-Function;

A couple of notes:

  • Because we are using an IScript we can’t access the component buffer data. So if you want to use content specific variables in your IScript, create some global variables in step 2 which can be addressed in the IScript.
  • Don’t forget to add the IScript to the weblibrary of your permission list.
  • When creating the xml template, turn off any spelling or grammar checks for this can disturb the xml placeholders.
  • When you’ve made an error in a placeholder, completely retype the placeholder. A partial correction can disturb the xml.

 

November 13th, 2008

Older PeopleSoft and Web 2.0 Step 1

Every PeopleSoft developer has read something about the new Oracle products incorporating web 2.0 functionality like personalized pages. But what if you’re not among the lucky developers that use those new, modern, up2date products? In this post I’d like to show how we can create web 2.0 functionality in older PeopleSoft versions step by step.

First a small introduction. At the moment I am a member of a team which is busy building Selfservice functionality for a very large oranisation. Development is done in PS HRMS 8.22. I was asked to think about a selfservice page with dynamicaly ordered content blocks. Still there? I mean that the page has several blocks containing content and the employee  must be able to organize these blocks himself.

So, what’s the plan? Let’s start by describing the big picture. We must create a page in app designer containing the blocks that shall contain the content. After that we’ll add some Javascript (client side script)  to make the blocks draggable. The order of the blocks must then be stored in the database. For this we’ll use Ajax and IScript. Almost there, hang on. The last thing to do is to make sure that if the page is reloaded / revisited we get the order of the blocks from the database with Ajax and IScript again and order the blocks.

The philosophy is that  the page is designed in app designer as always and will work without all the fancy web 2.0 stuff. We will only use the web 2.0 stuff to enhance the user experience.

In the next post we will set up a simple page with content blocks, and make these blocks draggable.

Hopefully see you then!

October 27th, 2008

What’s new in PeopleTools 8.50

During this year’s Oracle OpenWorld cool new features in the new release of PeopleTools are unveiled. This new version should become available somewhere in 2009, together with the PeopleSoft 9.1 Application versions.

Look and Feel
One of the big changes in PeopleTools 8.50 is the User Experience. If you look at this screenshot you can see that the layout is still PeopleSoft common, but Oracle’s blue has arrived. Or did the blue arrive with the takeover of PeopleSoft …
pt850blog1

June 5th, 2008

Debugging Component Interfaces from PeopleCode

Within the new PeopleTools versions PeopleSoft often uses Component Interfaces in PeopleCode to adjust data. These constructions are sometimes very hard to understand. Especially if the update of data goes wrong, the error generated from the Component Interface is tucked away in an array which can only be read when debugging the proces.

There is a very simple way to get around this.