Help needed in XML Publisher rtf file
Hi,
My RTF is like, In first Page I will get Customer details, after that in the same page I will get invoice details, You can find my RTF srtucture from fallowing.
Customer Name Phone Number:
Address
Invoice_Number Inv_Date Inv_Amount
My RTF output is fine. But I have another requirement like if Invoice details are going to second page then I need to show message 'Continued' in the first page bottom right side, I need to show this before the last page.
How can I control the number of Invoice lines per each page and how can I show that 'continued' message?
Could you help me in this?
Thanks in advance
Hi,
Thanks for your help. I tried with that solution. But after page break I have another page which is like
If you have any queries contact us
Yours faithfully
Emploee Name.
This page is cominng repeatedly after each page break.
Suppose If I give the variable value=4 then, this last page is coming one time for each page before the Invoice lines.
Could you help me in this?
Thanks
Similar Messages
-
Help needed with xml to flat file conversion
Hi all,
I am doing a webservice (SOAP) to file scenario. The file I get into the target directory is as below.
<?xml version="1.0" encoding="UTF-8"?>
<ns1:MT_Test_interface xmlns:ns1="http://test_namespace.co.uk"><fieldA>0000012345</fieldA><fieldB></fieldB><fieldC>0010203040</fieldC><transaction_type>NEW</transaction_type><transaction_date>2011/08/21</transaction_date><sales data>PARTNERS (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), (382225.17 73214.976, 398410.463 95156.636)))</sales data></ns1:MT_Test_interface>
But I want it to be a plain text file like below, not an xml file.
0000012345
0010203040
NEW
2011/08/21
PARTNERS
(((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), (382225.17 73214.976, 398410.463 95156.636)))
What are all the modules I need and also the parameters and their values please?
Any help is appreciated.
Thanks.
Ramesh.Thanks guys.
My xml now is like this:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MT_test xmlns:ns1="http://test.co.uk">
- <REPORT>
<company_number>0000043239</company_number>
<transaction_type>CREATE</transaction_type>
<transaction_date>2011/08/21</transaction_date>
<sales_data>Partners (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), (382225.17 73214.976, 398410.463 95156.636)))</Partners>
</REPORT>
</ns1:MT_test>
I am using the content conversion as below:
Recordset Structure: REPORT
Name: REPORT.addHeaderLine Value: 1
Name: REPORT.fieldSeparator Value: ,
Name: REPORT.endSeparator Value: 'nl'
Name: company_number.endSeparator Value: 'nl'
and I am getting the result as:
company_number,transaction_type,transaction_date,sales_data
0000043239,CREATE,2011/08/21,Partners (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), 382225.17 73214.976, 398410.463 95156.636)))
But I want file like this:
company_number,transaction_type,transaction_date,sales_data
0000043239
CREATE
2011/08/21
Partners (((119006.258 169077.102), (372718.323 77854.466, 371449.872 70783.383), 382225.17 73214.976, 398410.463 95156.636)))
What will be the CC parameters please?
Many thanks.
Ramesh. -
URGENT Help needed in XML Publisher Please...Business critical
Hi
I am having 2 different types of invoices like
1.Normal Invoice
2.Bundled Invoice
Both cases will have different bodies BUT SAME summaries.
So based on the Formula column FLAG (BUNDLED=YES or NO) I would like to
choose a different body like G_NORMAL INVOICE_BODY Or G_BUNDLED_INVOICE_BODY.
The summary for both of them are the same.
Case 1: Normal Invoice Group
<G_INV_TERM>
<G_INVOICE>
<G_LINES>
invoice line details
--------Line1
------- LIne2
------- LIne3
</G_LINES>
<G_SUMMARY>
</G_SUMMARY>
</G_INVOICE>
</G_INV_TERM>
Case 2: Bundled Invoice Group
<G_INV_TERM>
<G_INVOICE>
<G_BUNDLE>
---Bundled Invoice Line
</G_BUNDLE>
<G_SUMMARY></G_SUMMARY>
</G_INVOICE>
</G_INV_TERM>
Based on a condition.Like if BUNDLE=N then do the following:
For Normal Invoice
with <G_INV_TERM> --HEADER
and then invoice lines group <G_LINES> for normal invoice.---BODY
and then FOOTER Summary--<G_SUMMARY>
Based on a condition.Like if BUNDLE=Y then do the following:
with <G_INV_TERM> --HEADER
and then invoice lines group <G_BUNDLE> for normal invoice.---BODY
and then FOOTER Summary--<G_SUMMARY>
In one single template How can I handle Different GROUPS based on a condition.?
Thanks
PrasannaIs this Sample XML ?
<G_INV_TERM>
<BUNDLED>Y</BUNDLED>
<G_INVOICE>
<G_LINES>
<LINE>1 </LINE>
<LINE>2 </LINE>
<LINE>3 </LINE>
<LINE>4 </LINE>
<LINE>5 </LINE>
<LINE>6 </LINE>
<LINE>7 </LINE>
</G_LINES>
<G_BUNDLE>
<BUNDLE>A</BUNDLE>
<BUNDLE>B</BUNDLE>
<BUNDLE>C</BUNDLE>
<BUNDLE>D</BUNDLE>
<BUNDLE>E</BUNDLE>
</G_BUNDLE>
<G_SUMMARY>
Summary For all
</G_SUMMARY>
</G_INVOICE>
</G_INV_TERM> -
Page Break In XML Publisher RTF Templates Are Not Working
Please refer to the Metalink Doc below:
Subject: Page Break In XML Publisher RTF Templates Are Not Working.
Doc ID: 559111.1
Type: PROBLEM
Modified Date: 24-MAR-2008
Status: MODERATED
In this Document
Symptoms
Cause
Solution
References
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV) process, and therefore has not been subject to an independent technical review.
Applies to:
Oracle XML Publisher - Version: 5.6.3
This problem can occur on any platform.
Symptoms
Using XML Publisher version 5.6.3 in 11.5.10.
Find <?split-by-page-break:?> syntax is ignored.
EXPECTED BEHAVIOR
Expect page breaks to occur at point set by "split-by-page-break:" code.
STEPS
The issue can be reproduced at will with the following steps:
1. Create a template.
2. Call split-by-page-break: inside a loop.
3. Output is not formatted correctly, page break call is ignored,
Cause
Unpublished BUG 5011628 SPLIT-BY-PAGE-BREAK NOT WORKING IF ADDED SORT WITHIN DYNAMIC GROUP
Unpublished BUG 5011628 matches the client issue as it is a call to split-by-page-break inside a loop.
Fix is in ScalableStringList.java version 115.4.
This is delivered in <Bug 6165466> XDOFX:CHR(N) FUNCTION FAILING.
Solution
To implement the solution, please execute the following steps:
1. Apply Patch 6165466 when it is released.
2. Test your report.
References
Bug 6165466 - XDOFX:CHR(N) FUNCTION FAILING
Keywords
XML~PUBLISHER; LOOP; DYNAMIC~GROUP; PAGE~BREAK;
Help us improve our service. Please email us your comments for this document. .Hi JDev,
Check this out:
http://oracle.anilpassi.com/xml-publisher-developing-reports-printed-on-pre-printed-stationary-2.html
Hope this might help.
Thanks -
How to catch XML Publisher bursted file from Workflow
Hello,
I have to catch xml publisher bursted file in oracle workflow and send it as the content of mail (not like attachment).
Does anyone know if this is possible and how can I do it?
Any help is appreciated, thanks in advance!
Regards
Iveoracle seeded XDO regions is available to integrate concurrent program in the page.
You got to extend this RN oracle.apps.xdo.oa.common.DocumentViewerRn.xml
And oracle.apps.xdo.oa.common.DocumentHelperAPI, should help you to download or View from the page
Its straight forward , given in the doc i guess.
Let me pull the metalink note for this. -
Need help in developing XML Publisher Report in Multi Language
Hi Tim,
We have requirement to develop XML Publisher report in Multi language.
I know we can upload multiple Templates, one for each language.
Can any one help me in knowing the process other than uploading multiple templates.
Any documents or setup process related to this will be of great help.
I appretiate your help.
Thanks & Regards,
SahooHi,
Lets say you have two smart styles with X and Y, and runtime based on the number of pages, if you would like to modify the style, then check any standard table or structue which holds and responsible for the holding the style value.
If you can trace that, based on the coding we can modify accordingly.
Regards,
Santhosh. -
Help needed in XML bi publisher security side
Hi all
i have a requirement to set groups and access permissions to these groups for using XML publisher.
am trying to find documents but i cant
if anyone has experience please let me know
appreciatedHi,
Thanks for your help. I tried with that solution. But after page break I have another page which is like
If you have any queries contact us
Yours faithfully
Emploee Name.
This page is cominng repeatedly after each page break.
Suppose If I give the variable value=4 then, this last page is coming one time for each page before the Invoice lines.
Could you help me in this?
Thanks -
IN Operator in xml publisher RTF
Hi,
I am working on XML Publisher reports ( r12 EBS, Database 10g). Is there any way i can use 'IN' operator in RTF.
I have following requirement.
my rtf:
<?count?> --paramter
name1 name2 name3 name4
<?for each-group?> <?name1?> <?name2?> <?name3?> <?name4?> <?end for-each?>
if i enter count 1, i want to display 'name1'
if i enter count 2, i want to display 'name1 and name2'
if i enter count 3, i want to display 'first 3 names'
if enter count 3, i want to display all names.
Could somebody help me how to achieve this. Can i use 'IN' Operator in RTF.
Thanks in advance.You can use the 'contains' function. Check out the following:
Re: Using Wild Card % in the IF condition of RTF templates
Re: Syntax for IN / NOT IN Commands
Thanks,
Bipuser -
Hi,
I am creating a report using XML publisher and output is an RTF File,I want to wrap coloumns how it can be done.
Thanks in advance.Hi,
If you are on 11i, please see (Oracle XML Publisher User's Guide), Page 2-40 and 2-41
Oracle XML Publisher User's Guide
http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115xdoug.zip
Thanks,
Hussein -
XML Publisher rtf output not consistent with the rtf created
I am using XML publisher to generate a custom report.
The approach I folllowed:
1) AM Class: Write the VO data to XMLNode using vo.writeXML() method
2) XML Publisher Administrator Responsibility: Create a data template and attach the xml created in step1 as "Preview Data"
3) XML Publisher Administrator Responsibility: Create a rtf template (contains images and text), attach the data template (step 2) and attach the rtf created.
4) Controller class: Use TemplateHelper.processTemplate() method, passing the rtf template and the XML data from VO.
5) Verify the rtf output in application.
Issues I am having are as follows:
1) Major issue is page format. I have saved my rtf file with a different page format as below:
File->Page Setup->Paper->Width:255 pt
->Height:165 pt
File->Page Setup->Margins->Top: 12 pt
->Bottom: 0.1 pt
->Left: 0.1 pt
->Right: 12 pt
When I open my document from the application, the margins and page setup rtf output is not retained (as given in teh doc), hence my whole layout is disturbed.
Thus, I am getting a very weird layout when I open my rtf output from application.
How can I retain the page settings?
2) I added a image, and the size of the image also is not retained as well.
And if I set the layout wrapping style anything other than "In line with text", the image does not show up in the output.
Would greatly appreciate if someone can put some light on this.RTF & PDF output can't be exact same, we can minimize the difference by eliminating all extra spaces(Ex: from table rows, in between form fields etc.) from RTF while generating RTF output.
For reference:
BUG:8662322 - RTF FORMAT DOES NOT SHOWS WITH FIXED HEIGHT OF ROW
Thanks,
Sandeep -
How to sort Data in XML template (rtf) file?
Hi, I have an oracle 11i custom report (rdf) with an xml output to a PDF. There is a formula column in the report. Now I need the data to be sorted on this formula column. As we cannot sort on formula column, i have decided to find a way to sort it in the data in the XML template. But I don't really know how to sort and also where to specify the sort tag in the rtf file. I appreciate your response.
Databse version : 9.2.0.8.0
E-Biz Version : 11.5.10.2
Oracle Reports Version : 6.0.8.27.0
Oracle BI version : 10.1.3.2.1
Note : I posted this question under : XML General forum also. But did not get any response. I assumed that may be thats not the right place to post it as my report is in e-Biz environment.Hi
As long as you don't have your ^field commands grouped inside a ^group the order in the .dat file is not important. Your last command
^field BG_DOC_LN__LN_AM
246624.12
should populate field BG_DOC_LN_AM wherever you place it on your form. Obviously you need to name the fields according to your ^field commands and not just use tab (move to next field).
Shout if this was not what you are asking.
Stale Sodal -
Parse Error in XML Publisher .rtf template during "preview"
I've created a template based upon a working one with a few tweaks, but it does not work. It validates okay in XML PUblisher but the preview fails with this error:
Caused by: oracle.xdo.parser.v2.XMLParseException: Attribute 'select' not found in 'xsl:for-each'.
at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:806)
at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:571)
... 14 more
Since I don't have explicitly "xsl" anywhere, the actual problem is unclear to me. I have attached the template. I'd appreciate any sugestions. All I need to do is
1. Loop through all Campus Community checklist items
2. Loop through all STDNT_TEST_COMP rows
As I cannot attach the template or sample data, I"m pasting below the relevant portion of the template, even though it may look odd in plain text.
<?for-each-group:row_CHECKLIST_ITEMS;./fld_CHECKLIST_CD?>
APP Materials Associated ID
<?for-each:current-group()?><?sort:fld_CHKLST_ITEM_CD;'ascending';data-type='text'?> <?if:fld_ITEM_STATUS='I'?> fld_CHKLST_ITM_DESCR
fld_NAME
fld_ASSOC_ID_DESCR
<?end if?><?end for-each?>
<?end for-each-group?>
<?for-each:row_APU_AD_UG_EXT_TEST_SCORES?>
TEST COMPONENTS SCORE TEST DATE DATE RECD
<?B.TEST_ID?> <?B.TEST_COMPONENT?> <?B.SCORE?> <?format-date:B.TEST_DT;'MM-DD-YYYY'?> <?format-date:B.DATE_LOADED;'MM-DD-YYYY'?>
<?end for-each?>
Thanks.
KenPl post details of OS, database and EBS versions.
Have you checked the XML Publisher Developer Guide and Designer Guide ?
http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120xdoig.pdf
http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120xdorg.pdf
HTH
Srini -
XML PUBLISHER : excel file generated is of large size
Hi ,
scenario: Using XML publisher I am able to get the output in the Excel format but the file size is 28.2 MB
Issue : The file size is too big so unable to send email through XML bursting program.
Observation:
For the generated excel sheet when save as option is chosen then its save as type is Web Page (*.htm,*.html ) with the file name appearing in double quotes "sample.xls" , when the save as type was changed to excel and saved , the file size was found to be 5.7 MB .
Please advise on the following:-
xml publisher's generated output file size is 6 times bigger than the actual excel file size , is there a way to rectify this huge size output for EXCEL file.
Regards,
SRThis is a know Bug, Refer below document for the patch detail & other info:
BI Publisher Enterprise Excel Output File Size is Too Large [ID 1271544.1]
BUG:6739943 ,7356451
Thanks,
Sandeep -
Urgent, Help on conversion: xml to flat file
Dear experts,
Here is the scenario, XML FILE ->XI-> JMS
In JMS recevier side, we use localejbs/AF_Modules/MessageTransformBean to convert xml to flat file.
Transform.Class: com.sap.aii.messaging.adapter.Conversion
Transform.ContentType: text/plain;charset=utf-8
xml.conversionType: SimpleXML2Plain
xml.fieldFixedLengths: 5,20,5,8
When input source xml file contents are non-unicode, it works fine.
But when the contents contain unicode characters such as Chinese word, it works but with wrong length in the output flat file. It seems xi treat one Chinese word length is 1. Actually, one chinese word should take 2 bytes.
My question is how to make XI handle unicode characters with correct lengths while conversing to flat file.
Thanks in advance.Jai Shankar
Thanks for your response.
I am already using the standard adapter modules provided by SAP:
localejbs/AF_Modules/MessageTransformBean
Transform.Class: com.sap.aii.messaging.adapter.Conversion
My input file's encoding is UTF-8
"You need to change the encoding scheme according to your input file" , do you mean change the output file's encoding or else?
I can't find the article you mentioned: "Encoding schemes in XI", Would you please give me the link?
Thanks a lot. -
XML Publisher - RTF Template - No of Rows Fixed
Hi,
We are printing a report which is developed in XML Publisher, but user requirement is to print 10 lines in each page under one group.
I have did the following code, The code is compiled successfully, but output is not generating as per user requirement.
I have followed this example Never name it.: Limit rows per page
<?for-each:G_SUB_INVENTORY_INFO?>
Sub-Inventory:
<?SUBINVENTORY?>
Locator:
<?STOCK_LOCATOR?>
<?for-each:LIST_G_ITEM_DETAIL?>
Tag # <xsl:variable name="rowlimit" select="number(10)"/>
Item Code
Item Description
Lot #
Expiry Date
MOH
Status
Counted Qty
F TAG_NUMBER
ITEM_CODE
ITEM_DESCRIPTION0.00
LOT_NUMBER
EXPIRY_DATE
<?position()?>
<?if:(((position()-1) mod $rowlimit=0) and position()>1)?> <xsl:attribute name="break-before">page</xsl:attribute> <?end if?>
E
<?for-each:xdoxslt:foreach_number($_XDOCTX,1,$rowlimit-(count(G_ITEM_DETAIL) mod $rowlimit),1)?>
<?position()?>
<?end for-each?>
<?end for-each:LIST_G_ITEM_DETAIL?>
page breakend <?end for-each:G_SUB_INVENTORY_INFO?>
Please guide me where I am getting wrong.
Regards,
Waqas HassanHi,
I have found the solution,
I was missing a number function.
Before: <?for-each:xdoxslt:foreach_number($_XDOCTX,1,$rowlimit-(count(G_ITEM_DETAIL) mod $rowlimit),1)?>
After: <?for-each:xdoxslt:foreach_number($_XDOCTX,1,number($rowlimit)-(count(G_ITEM_DETAIL) mod $rowlimit),1)?>
Thanks
Maybe you are looking for
-
Installing OMS 10.2.0.5 on server with Oracle 11.1.0.7
IBM w/AIX 6.1 I am wondering if there would be any expected issues to download and install the latest version of OMS (Oracle Management Server for Grid Control), 10.2.0.5 onto a server that already has Oracle 11.1.0.7 running on it. I intend to use t
-
Hi, I did create a VBA application for scheduling jobs in SAP using XBP. This application is not working anymore with XBP 3.0 because of some new parameters has been added to function module BAPI_XBP_JOB_ADD_ABAP_STEP. The parameter FREE_SELINFO (typ
-
Photoshop CS5 extended installation
Hi I recently bought photoshop cs5 extended. Unfortunately I have problems with the installation. At some point the intaller asks me to insert the phtoshp cs5 disk. is this a difernt disk? thank you
-
can anyone see why this always returns false regardless of ObservedType?? <cfset isNullfwdExtraWindow = false> <cfif arguments.trade.ObservedType eq 'C'> isNullfwdExtraWindow = true> </cfif> <cfif arguments.trade.ignoreBarrier
-
I can't import my .3FR-files from the Hasselblad H5D-50? Importing the .fff from Phocus works. These are not corrupt files since Phocus can handle them without issues. I get this error after import. The statement is that Lightroom 5.2 has support for