XML Publisher: Data Templates: Query and Data Template Structure

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 6

XML Publisher : Data Templates

XML Publisher 5.6 introduces Data Templates to the E-Business Suite. This
technology effectively removes the need for custom development in Oracle
Reports.
Roll-up Patch 4561451 installs this functionality.
Query and Data Template Structure
A simple data template for the following query was created:
select
usr.user_name,
resp.responsibility_name,
resp.description
from
fnd_user usr,
fnd_user_resp_groups_direct fdir,
FND_RESPONSIBILITY_TL resp
where
user_name like 'P%' and
usr.user_id = fdir.user_id and
fdir.responsibility_id = resp.responsibility_id and
fdir.responsibility_application_id = resp.application_id
order by user_name

Data Template:
<?xml version="1.0" encoding="WINDOWS-1252" ?>
<dataTemplate name="USERDATA" description="FND_USER Data" Version="1.0">
<parameters></parameters>
<dataQuery>
<sqlStatement name="Q1">
<![CDATA[select usr.user_name, resp.responsibility_name, resp.description
from
fnd_user usr,
fnd_user_resp_groups_direct fdir,
FND_RESPONSIBILITY_TL resp
where
user_name like 'O%' and
usr.user_id = fdir.user_id and
fdir.responsibility_id = resp.responsibility_id and
fdir.responsibility_application_id = resp.application_id order by
user_name ]]>
</sqlStatement>
</dataQuery>
<dataStructure>
<group name="G_USER_NAME" source="Q1">
<element name="USER_NAME" value="USER_NAME" />
<element name="RESP_NAME" value="RESPONSIBILITY_NAME" />
<element name="RESP_KEY" value="RESPONSIBILITY_KEY" />
</group>
</dataStructure>
</dataTemplate>

Registration

RTF Template:
User Name
F USER_NAME

Resp Name
RESP_NAME

Resp Key
RESP_KEY E

Basic Structure of XML file produced by Data Template:


<?xml version="1.0" encoding="UTF-8"?>
<USERDATA>
<LIST_G_USER_NAME>
<G_USER_NAME>
<USER_NAME>OBERG</USER_NAME>
<RESP_NAME>OSS Administrator Self Service</RESP_NAME>
<RESP_KEY>IGS_SS_ADMINISTRATOR</RESP_KEY>
</G_USER_NAME>
<G_USER_NAME>
<USER_NAME>OBERG</USER_NAME>
<RESP_NAME>Oracle Student System Super User</RESP_NAME>
<RESP_KEY>IGS_SUPER_USER</RESP_KEY>
</G_USER_NAME>
<G_USER_NAME>
<USER_NAME>OBERG</USER_NAME>
<RESP_NAME>Preferences SSWA</RESP_NAME>
<RESP_KEY>PREFERENCES</RESP_KEY>
</G_USER_NAME>
</LIST_G_USER_NAME>
</USERDATA>

5.6 Also introduces additional Administration functionality:

You might also like