June 19, 2007 -...

Preview:

Citation preview

1

Oracle Applications 11.5.10 Development Tools Getting started with XML Publisher and Forms Customizations

Dave Stuessi, Fujitsu Consulting

June 19, 2007

Fujitsu Consulting Confidential

Agenda

n XML Publisher n  Description n  Benefits & Limitations n  Demonstration

n Forms Personalization's n  Description n  Benefits & Limitations n  Demonstration

Fujitsu Consulting Confidential

XML Publisher

n  Overview Oracle XML Publisher allows users to

create a Microsoft Word template for a customized layout of an existing Oracle Report (seeded in Oracle E-Business Suite). The seeded report can be modified to output XML rather than the Oracle Report, which the Word Template can use to populate as data.

Fujitsu Consulting Confidential

XML Publisher

n Benefits n  Users can modify custom report layout in

Microsoft Word n  Based on seeded Oracle Reports definition and

output n  Easily change formatting, text, font, add

images, etc n  Developer is freed up for further development

rather than report formatting

Fujitsu Consulting Confidential

XML Publisher

n Limitations n  Tightly tied to Oracle Reports

n Adding field to Report Definition required

n Grouping/Summing dependent on Report definition and output (or html coding)

n  Import definition w/Reports 9i only (not in 11.5.10)

Fujitsu Consulting Confidential

XML Publisher

n Demonstration n  Create XML File from report n  Create Data Defintion n  Download & install word tool bar n  Create template in word using XML as data

source n  Upload template n  Preview report in word (as .pdf) n  Execute in Apps (two-step) n  Next steps

Fujitsu Consulting Confidential

XML Publisher Demonstration

n Generate XML from Oracle Reports: n Copy Concurrent Request, changing output to XML

Change in copy of concurrent request

Fujitsu Consulting Confidential

XML Publisher Demonstration

n  Execute new concurrent request, view Output: n  Save output locally as pick_slip.xml

Fujitsu Consulting Confidential

XML Publisher Demonstration

n Create Data Definition n  Responsibility: XML Publisher Administrator n  Navigation: Data Definition > Create

XML output here! (pick_slip.xml)

Short Name (MUST Match concurrent Request short Name!)

Fujitsu Consulting Confidential

XML Publisher Demonstration

n Per Note:422508.1 (May 22, 2007) n Install Patch 5887917 Oracle XML Publisher Desktop 5.6.3 n Result is this tool bar:

Fujitsu Consulting Confidential

XML Publisher Demonstration

n Load XML Data into Word n Click Data > Load XML n Click Insert Fields and Table via this field selection window:

Fujitsu Consulting Confidential

XML Publisher Demonstration

n Template looks like Mail Merge:

Fujitsu Consulting Confidential

XML Publisher Demonstration

n Once tables and fields are selected, save as .rtf to become the Template n Preview the report in Word prior to Apps:

Fujitsu Consulting Confidential

XML Publisher Demonstration n Upload the Template similar to Data Definition n Responsibility: XML Publisher Administrator n Navigation: Templates > Create Template n Preview output from Apps

Pick_slip.rtf

Data Definition previously defined and uploaded

Fujitsu Consulting Confidential

XML Publisher Demonstration

n Execution processes n  1 Step vs. 2 Step (1 step requires patch 3435480) n  Execute concurrent report concurrent request (Step 1) n  Add XML Report Publisher to Request Group

Fujitsu Consulting Confidential

XML Publisher Demonstration

n Execute XML Report Publisher concurrent request (Step 2) n  choose the request_id from step 1. n  View Output opens the report in .pdf format.

Fujitsu Consulting Confidential

XML Publisher Demonstration

n View pdf output (logo added):

Fujitsu Consulting Confidential

XML Publisher

n Next Steps n Questions

Fujitsu Consulting Confidential

Forms Personalization

n Overview n  Provide a configurable tool to customization the

Oracle Forms Application n  Response to custom.pll

n Try personalization before resorting to Custom.pll n Check Note ID: 279034.1 for further information

Fujitsu Consulting Confidential

Forms Personalization

n Benefits over custom.pll n  Configuration vs. coding n  Multiple users in Personalization vs.

single developer with custom.pll n  Compiles immediately (no downtime)

Fujitsu Consulting Confidential

Forms Personalization

n  Limitations compared to custom.pll (from metalink note):

n  You cannot create new items n  You cannot move items between canvases n  You cannot display an item which is not on a

canvas (thus, individual flexfield segments cannot be displayed)

n  You cannot set certain properties such as the Datatype of an Item.

n  You cannot change frames, graphics, or boilerplate

n  You cannot hide the item that currently has focus

Fujitsu Consulting Confidential

Forms Personalizations

n Form Personalizations respond to these events: n  WHEN-NEW-FORM-INSTANCE n  WHEN-NEW-BLOCK-INSTANCE n  WHEN-NEW-RECORD-INSTANCE n  WHEN-NEW-ITEM-INSTANCE. n  WHEN-VALIDATE-RECORD

Fujitsu Consulting Confidential

Forms Personalization Demonstration

n To Open Form Personalizations n Help > Diagnostics > Custom Code > Personalize (or Off!)

Fujitsu Consulting Confidential

Forms Personalization Demonstration

n Condition: Set First_Name to required n Option to choose just a person (myself for testing) n Can easily enable or disable each personalization

Fujitsu Consulting Confidential

Forms Personalization Demonstration

n Action: Set First_Name to required

Fujitsu Consulting Confidential

Forms Personalization Demonstration

n First Name now required:

Fujitsu Consulting Confidential

Forms Personalization Demonstration

n Condition: Field is populated n Validation test for last_name (testing validations)

Fujitsu Consulting Confidential

Forms Personalization Demonstration

n Action 1: Add custom Form title

Fujitsu Consulting Confidential

Forms Personalization Demonstration

n Action 2: Add message Box n One condition can have multiple Actions

Fujitsu Consulting Confidential

Forms Personalization Demonstration

n Custom Form Title and Message Box

Fujitsu Consulting Confidential

Forms Personalization Demonstration

n Easily configure many aspects of Form Applications without the complexities of custom.pll

Recommended