Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

choose RTF template in the Before report trigger

a.stoyanovJun 30 2014 — edited Jul 15 2014

Hi all,

I'm using Oracle Report Builder 6i.

I have a report with a data definition and 2 RTFs - one is with language: English and the other one: French.

I want to specified which template to add in the Before Report Trigger of the Report/It is an Oracle Standard Report - RDF file/.

I tried to add a logic inside to pick the French RTF but it still add the default template/English/.

function BeforeReport return boolean is

result boolean;

begin

   -- Call the function

  result := fnd_request.add_layout(template_appl_name => 'Receivables',

                                   template_code => 'XXNCP_RESPONSE_FILE_RESULT',

                                   template_language => 'fr',

                                   template_territory => 'FR',

                                   output_format => 'PDF');

  -- populate global temp table with file data

  apps.xxncp_ar_inv_extract.fill_file_information(:p_dir_name,:p_file_name);

 

  commit;

  return(result);

  --return (TRUE);

end;

If I manually choose the French Language - the report works fine - picks up the French template.

Any ideas? Maybe calling the API is not right?

Thanks in advance,

A.Stoyanov.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 12 2014
Added on Jun 30 2014
5 comments
2,345 views