0% found this document useful (0 votes)
31 views7 pages

Publisher Part 5 Notes

The document discusses how to submit XML Publisher reports from PL/SQL and display multiple languages in an XML Publisher report. It provides steps to create a concurrent program, add layouts, and submit reports programmatically. It also discusses how XML Publisher allows creating reports in different languages by assigning layouts and enabling translations.

Uploaded by

47Rutuja Shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views7 pages

Publisher Part 5 Notes

The document discusses how to submit XML Publisher reports from PL/SQL and display multiple languages in an XML Publisher report. It provides steps to create a concurrent program, add layouts, and submit reports programmatically. It also discusses how XML Publisher allows creating reports in different languages by assigning layouts and enabling translations.

Uploaded by

47Rutuja Shinde
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

12) how to submit xml publisher report from plsql or

/ Submit layout and concurrent program from back end

steps:

*create one concurrent program and register as xml publisher report

*add one more layout based on same data definition.

*now we will have two layouts for one concurrent program.

*to submit one by one from back end..create one procedure like below.

and register as concurrent program and submit it .

CREATE OR REPLACE PROCEDURE HBOMAINCONC (

errbuf OUT VARCHAR2,

retcode OUT VARCHAR2

IS

v_request_id NUMBER;

xml_layout BOOLEAN;

BEGIN

xml_layout :=

fnd_request.add_layout ('PO', 'HBOPOPURXMLtemp', 'en', 'US', 'PDF');

v_request_id :=

fnd_request.submit_request ('PO',

'HBOPOPURXML',

'Template 1',

NULL,

FALSE,

NULL
);

IF v_request_id > 0

THEN

fnd_file.put_line

(fnd_file.LOG,

'Report with Template 1 - successfully submitted.'

);

COMMIT;

ELSE

fnd_file.put_line (fnd_file.LOG,

'Report with Template 1 - not submitted.'

);

ROLLBACK;

END IF;

xml_layout :=

fnd_request.add_layout ('PO', 'COPYHBOPOPURXMLtemp', 'en', 'US', 'PDF');

v_request_id :=

fnd_request.submit_request ('PO',

'HBOPOPURXML',

'Template 2',

NULL,

FALSE,

NULL
);

IF v_request_id > 0

THEN

fnd_file.put_line

(fnd_file.LOG,

'Report with Template 2 - successfully submitted.'

);

COMMIT;

ELSE

fnd_file.put_line (fnd_file.LOG,

'Report with Template 2 - not submitted.'

);

ROLLBACK;

END IF;

END;

+++++++++++++++++++++++++++++++++++

FND_REQUEST.add_layout (

template_appl_name in varchar2,

template_code in varchar2,

template_language in varchar2,

template_territory in varchar2,

output_format in varchar2) return boolean;

This need to be call before submit request to add the layout to Request. It initiates the post process to
apply the Layout.
Arguments

-- Template_APPL_Name - Template Application Short name.

-- Template_code - Template code

-- Template_Language - Template File language (iso value)

-- Template_Territory - Template File Territory (iso value)

-- Output Format - Output Format

+++++++++++++++++++++++++++++++++++++++++++++++++

FND_REQUEST.Submit_Request

submit_request (

application IN varchar2 default NULL,

program IN varchar2 default NULL,

description IN varchar2 default NULL,

start_time IN varchar2 default NULL,

sub_request IN boolean default FALSE,

argument1 IN varchar2 default CHR(0),

argument2 IN varchar2 default CHR(0),

--

--

--

argument100 IN varchar2 default CHR(0))

return number;

This submits the concurrent request and returns the Request ID.

Attributes:

-- application - -Short name of application

-- program - concurrent program short name


-- description - -Optional Program Description

-- start_time - -Optional. Time at which the request has to start

-- - running

-- sub_request - Optional. Set to TRUE if the request is sub request, The default is false.

-- argument1..100 - Optional. Arguments for the concurrent request, Please pass the parameter
value define in CP Report definition.

13) how to display multi languges using xml publisher report

Oracle gives a very straightforward method to create multilingual reports if we use XML Publisher to design the reports. We no

longer need to create very different report layouts for the same report to be used across languages. Once a language has been

installed in addition to the default language, English, then we only need to assign the layout to the language and the

characteristics of the language will determine how the output will look like.

I have created a new report below on an Oracle instance where 2 languages are installed, English and Spanish

Step 1: Check enabled languages

Responsibility: System Administrator

Navigation: Install > Languages

Hit Ctrl+F11 to query for all the records

All the languages are displayed. Now scroll to the right.

You will notice that US English is the base language. This is true for all Oracle Apps installations. Along with English, Arabic

(language code AR) in the second line is installed.

You will notice the languages on the Oracle home page.


You can see the option of languages at the bottom as Spanish is installed for this Oracle instance. This means we can have

English reports as well as Spanish reports running in this instance.

1. created data template


2. create date definition and upload data template

3. create concurrent program ,attach xdodtexe,type xml ,enter parameter

4. attach to request group

5. submit from responsiblity

6. save output as .xml file

7. create rtf based on the output file

8. create template in xml publisher administrator

while create template enable translatable

export translation file

modify target language like below.

<file source-language="en-ES">
go to google and search with column headings into spanish.include translated names into
target language .save file with another name .

upload translation
Enable Template

Note : Source file is in english.its only one.but we can translate to many other languages.

9) go to responsibility view-reqeust- submit request.choose program

click on options
choose language specific template.
submit report
you will headings into spanish language.

Note : to see data also into Spanish language ,

go to oracle apps home page .choose spanish language .submit report it will give output in spanish.

14) subtemplate – calling a template from other template


1. In the subtemplate file, add the following tag to the beginning of the section to be included:

<?template:TemplateIdentifier?>

where (Template Identifier) --- any name ... later to call it.

Note that in a single subtemplate file, you can have multiple entries, marking different segments you
would like to include in other files.

2. Register the subtemplate in Template Manager in xml publisher by selecting Subtemplate = Yes

3. In the main template, include the following tag in the beginning of the file:

<?import:xdo: //(product_short_name).(subtemplate_code).(lang).(terr)?>

<?import:xdo://SQLAP.LEO_INVDETSUB.en.us?>

4. In the place in your main template file where you would like to use the subtemplate, add the
following tag:

<?call:TemplateIdentifier?>

Note : To find out the short name of the application / Module…

Go to application developer or system administrator Application ---> register ---> query with the
module name

You might also like