OAF page with XML Publisher report
Hi All,
I am trying to create a OAF page with an XML Publisher report. I am not able to create a 'defaultSingleColumn' region which extends '/oracle/apps/xdo/oa/common/webui/DocumentViewerRn.MainRegion', getting a Confirm message and Validation error and they are:
Confirm message:
Component "/oracle/apps/xdo/12.0.0/mds/oa/common/webui/DocumentViewerRn.MainRegion" cannot be referenced from
"/xx/oracle/apps/xxbsk/payslip/webui/PaySlipViewPG.region1" because it violates scope restrictions.
Are you sure you want to use component "/oracle/apps/xdo/12.0.0/mds/oa/common/webui/DocumentViewerRn.MainRegion"?
Validation Error:
The value "oracle/apps/xdo/12.0.0/mds/oa/common/webui/DocumentViewerRn.MainRegion"
set on the "Extends" property for component
"/xx/oracle/apps/xxbsk/payslip/webui/PaySlipViewPG" contains multiple naming separators.
I am trying to develop this page for R12.1.3 and using correct version of JDev (Patch 9879989).
I am following the below link for embedding the XML PO into my page:
http://oracle-hack.blogspot.co.uk/2012/04/launching-xml-publisher-from-oa.html
Could you please help why I am getting error while extending region.
Thank you,
Ramu
Hi. Could you please tell me how did you make it work. I read and try the same document at ttp://oracle-hack.blogspot.co.uk/2012/04/launching-xml-publisher-from-oa.html
But I got null point exception at one of xdo package which is Oracles own class. I think something is wrong or forgotten in this document.
Berkay
Similar Messages
-
Extra Blank page in XML Publisher report
Hi,
I am getting extra blank page in XML publisher report.
The RTF has two pages and each page has one table.These two tables will be populated with data based on some if condtion.
eg:
In RTF:
for each Header
if PMA='Y' THEN
Table1 data in 1st page
end if;
pageBreak
IF OTC='Y' then
Table2 data in 2nd page
END IF;
end for each
And also another issue is: The data is starting from the same page instead of new page.
Please help me in solving the issue.
Thanks,
SrinivasHi,
Thanks for reply.
I am using <xsl:attribute name="break-before">page</xsl:attribute> page break.
I tried split-by-page-break also,but still its not resolved.
Today I have noticed one thing: When generating this report locally,then there is no blank page coming.But when generating from APPS then blank page is coming.
Please help me to resolve this issue.
Thanks,
Srinivas -
How to avoid blank page in xml publisher report
hi,
i have a xml report, it shows 7 rows in one page. the question is: if there are just 7 rows , when previews with pdf, it will generate 2 pages, the first page shows 7 rows, and the second page is blank.
anyone can help?
you can get the rar file that contains the .rtf and then .xml file at this site: [http://www.4shared.com/file/azhdqCp_/DELIVERY.html]I am running a report in xml publisher. The output of the report prints 2
pages, one page with correct report output and other page is a blank page
with header details.
I want to avoid this blank page. Is there something wrong? Please help to fix this issue!Is the issue with this specific XML Publisher report only?
Do you have all the patches in (Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]) applied? -- Search for "blank page".
Thanks,
Hussein -
Excel Output problem with XML Publisher Report
Hi Experts,
I am working on XML Publisher report with EBS 11i and database 9i. My XML Report output type is EXCEL, i have below issue with the output.
I have column 'quantity' with xml tag <?QUANTITY?>.
In the XML file it's showing the value '028' for quantity, but when i open the output in EXCEL, it's showing up '28', removing leading zero. I want to show the data in EXCEL also '028'. Could somebody help me how to print the XML Tag value as it is in EXCEL output.
Thanks in advance.Hi, try using this in your template.
<fo:bidi-override direction="ltr" unicode-bidi="bidi-override"><?QUANTITY?></fo:bidi-override> -
Problem with XML Publisher report when there are no detail records.
I am working on an Oracle XML Publisher procurement report (Oracle E-Business Suite R12) that starts with a budget amount that is imported from our financial system, then lists all requisitions and orders that are in process (not approved). The amounts of all those unapproved requisitions/orders are totaled using a Sum form field, to be followed by a field where the unapproved requisition/order total is subtracted from the budget amount (amount available). I am running into a problem when there are no unapproved requisitions. When I run the report for such instances, it completes with a warning -- here is what it states in the OPP log:
oracle.xdo.parser.v2.XPathException: Extension function error: Method not found 'sum'
I have altered my sum field on the RTF template to include an if statement in case of a null value...
<?sum (EXTENDED_COST)?> <?xdofx:if sum (EXTENDED_COST) = " then 0 end if?>
...but this does not work.Hi,
You are on right track. Simply put summary field in header group and remember to set reset at property to Header Group Not Child and now you can use this field in format trigger.
Format trigger must be written on header frame.
Cheers !
Adinath Kamode -
Xml publisher report giving warning
Hi friends,
I have a issue with xml publisher report. All existing xml publisher reports are working fine. Only the problem is newly created one.
Application version 11.5.10.2
dDtabase 9i
BIdesktop version is 10.1.3.4.1
MS office 2010
i checked the OPP log file also.
but i was unable to find the actual problem.
Any help please..
thanks in advance.
here is the my log data
[9/15/13 5:39:50 PM] [main] Starting GSF service with concurrent process id = 1673179.
[9/15/13 5:39:50 PM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
[9/15/13 5:39:50 PM] [Thread-16] Service thread starting up.
[9/15/13 5:39:50 PM] [Thread-17] Service thread starting up.
[9/15/13 5:42:53 PM] [OPPServiceThread1] Post-processing request 3596875.
[9/16/13 7:37:34 AM] [OPPServiceThread0] Post-processing request 3597565.
[9/16/13 8:05:32 AM] [OPPServiceThread0] Post-processing request 3597581.
[9/16/13 8:55:50 AM] [OPPServiceThread0] Post-processing request 3597617.
[9/16/13 9:10:13 AM] [OPPServiceThread1] Post-processing request 3597629.
[9/16/13 9:20:53 AM] [OPPServiceThread1] Post-processing request 3597634.
[9/16/13 9:20:53 AM] [1673179:RT3597634] Executing post-processing actions for request 3597634.
[9/16/13 9:20:54 AM] [1673179:RT3597634] Starting XML Publisher post-processing action.
[9/16/13 9:20:54 AM] [1673179:RT3597634]
Template code: XXDB_PENSION
Template app: PER
Language: en
Territory: GB
Output type: PDF
[9/16/13 9:20:56 AM] [UNEXPECTED] [1673179:RT3597634] java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:473)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:188)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:156)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:916)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:869)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:204)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1497)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:913)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:1816)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:1278)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
Caused by: java.io.UnsupportedEncodingException: &Encoding
at sun.io.Converters.getConverterClass(Converters.java:215)
at sun.io.Converters.newConverter(Converters.java:248)
at sun.io.ByteToCharConverter.getConverter(ByteToCharConverter.java:64)
at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:223)
at sun.nio.cs.StreamDecoder$ConverterSD.<init>(StreamDecoder.java:209)
at sun.nio.cs.StreamDecoder.forInputStreamReader(StreamDecoder.java:76)
at java.io.InputStreamReader.<init>(InputStreamReader.java:83)
at oracle.xdo.parser.v2.XMLReader.setEncoding(XMLReader.java:848)
at oracle.xdo.parser.v2.XMLReader.checkXMLDecl(XMLReader.java:2718)
at oracle.xdo.parser.v2.XMLReader.pushXMLReader(XMLReader.java:471)
at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:263)
... 16 more
[9/16/13 9:20:57 AM] [1673179:RT3597634] Completed post-processing actions for request 3597634.I got the solution.
Cause
Incorrect encoding value in the report's prolog
http://appselangovan.blogspot.com/2012/04/reprte-nlsnumericcharacters-error.htmlSolution
To resolve the issue:
1.Open the custom report in the Report Builder
2.Go to the property pallette of the Report
3.Remove the xml prologue value
4.Save the changes
5.Retest the issue. -
XML Publisher Report Output from OAF Page
Hi,
I created a button in a OAF page, and called the XML publisher Report program on click of this button. The concurrent request was ran when check from View Requests. When I click on viewout, the pdf document was open with the option, open, save, cancel. But this is not coming up in the OAF page. when debugged the code, the url is null.
Please see the below code.
OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)paramOAPageContext.getRootApplicationModule().getOADBTransaction();
String s1 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("TWO_TASK");
System.out.println("s1 = " + s1);
String s2 = oadbtransactionimpl.getAppsContext().getEnvStore().getEnv("GWYUID");
System.out.println("s2 = " + s2);
String s3 = "BEGIN :1 := fnd_webfile.get_url(fnd_webfile.request_out, :2, :3, :4, 2); end;";
CallableStatement callablestatement = paramOAPageContext.getApplicationModule(paramOAWebBean).getOADBTransaction().createCallableStatement(s3, 1);
System.out.println("s3 = " + s3);
if(requestId != 0)
try
Number number = new Number(requestId);
callablestatement.registerOutParameter(1, 12);
callablestatement.setInt(2, number.intValue());
callablestatement.setString(3, s2);
callablestatement.setString(4, s1);
callablestatement.execute();
String s4 = callablestatement.getString(1);
System.out.println("Before S4 if statement");
if(s4 == null || s4.equals(""))
// throw new RuntimeException();
System.out.println("URL is null");
System.out.println(" print ouput url - " + s4 );
// throw OAException.wrapperException(exception);
oadbtransactionimpl.putValue("OutputURL", s4);
System.out.println(" print ouput url - " + s4 );
}Look at the links AJ gave.
Basically what you will do is create a Data Definition and assign a Data Template to it. Create a (document) Template and assign it to your data definition. You will use the XML Publisher Java API classes to pass parameters to your data template and extract the XML data. Then you will use this in conjunction with your document template and the OAF integration region to present the final output to the user.
All of these things are in the XML Publisher documentation and Javadocs. -
Problem in XML Publisher Report submission from OAF Pages
Hi,
I am trying to submit Concurrent Program from OAF Page which is an XML Publisher Report.
The request is Submitting and Completing successfully but when we open to view the out put we are able to view the HTML tags.
We checked the same Concurrent program by submitting from the SRS window After completing if we click on view output the rtf file is getting opened correctly.
I tested with normal rdf report it is working fine with standard Concurrent program used in OAF
So my doubt is
Does the Standard Concurrent program used in OAF supports the rtf reports.
Please suggest if any modifications to be done in the Concurrent program
KrishnaKrishna
Modified your code a little bit.Use this
public int submitCPRequest(String shipmentId) {
System.out.println("into submitCPRequest");
OAPageContext pageContext;
OAWebBean webBean;
try {
OAApplicationModule am =pageContext.getApplicationModule(webBean);
OADBTransaction tx = (OADBTransaction)am.getOADBTransaction();
java.sql.Connection pConncection = tx.getJdbcConnection();
ConcurrentRequest cr = new ConcurrentRequest(pConncection);
String applnName = new String("XXAPL"); //Application that contains the concurrent program
System.out.println("ApplName"+ applnName);
String cpName = new String("XXAPLPOSMPRD"); //Concurrent program name
System.out.println("Concc Name"+ cpName);
String cpDesc = new String(" APL PO Shipping Material Pickup Request"); // concurrent Program description
// Pass the Arguments using vector
// Here i have added my parameter headerId to the vector and passed the
//vector to the concurrent program
Vector cpArgs = new Vector();
cpArgs.addElement(shipmentId);
System.out.println("Args"+ cpArgs);
// Calling the Concurrent Program
int requestId = cr.submitRequest(applnName, cpName,cpDesc, null, false, cpArgs);
cr.addLayout("XXAPL", "XXAPLPOSMPRT", "ENG", "US" , "RTF");
System.out.println("Req Id"+ requestId);
tx.commit();
return requestId;
catch (RequestSubmissionException e) {
System.out.println("Into Exception");
OAException oe = new OAException(e.getMessage());
oe.setApplicationModule(this);
throw oe;
catch(Exception exception)
throw OAException.wrapperException(exception);
}Thanks
AJ -
How to Avoid Blank Page in XML Publisher oracle report
Hi,
I am running a report in xml publisher. The output of the report prints 2
pages, one page with correct report output and other page is a blank page
with header details.
I want to avoid this blank page. Is there something wrong? Please help to fix this issue!
Thanks!I am running a report in xml publisher. The output of the report prints 2
pages, one page with correct report output and other page is a blank page
with header details.
I want to avoid this blank page. Is there something wrong? Please help to fix this issue!Is the issue with this specific XML Publisher report only?
Do you have all the patches in (Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]) applied? -- Search for "blank page".
Thanks,
Hussein -
Concurrent Request report with XML Publisher
I have Concurrent program (report) which I modified to work with XML Publisher. I change the output format to XML at the concurrent program page. Then I create the data defenition and template at XML Publisher administrator. Then I uploaded and assign the RTF template as the default template for this concurrent program.
Now I can run this report and get the output in XML report publisher .
But when I am running directly as concurrent request , I dont get any output. What am I doing wrong?
**Please Help*George Thomas*
I posted initially at a wrong place and I am re-posting here. my apologyDuplicate thread ..
Concurrent Request with XML Publisher
Re: Concurrent Request with XML Publisher -
XML Publisher Report with PL/SQL
Hi
Like to know how to develop the XML Publisher Report with PL/SQL, i did the following
1. created a pkg like as below
CREATE OR REPLACE PACKAGE BODY APPS.TEST_XMLTAG_PKG AS
PROCEDURE main (errbuf OUT VARCHAR2,
retcode OUT NUMBER
) IS
BEGIN
DECLARE
ctx DBMS_XMLGEN.ctxHandle;
xml CLOB;
BEGIN
ctx := dbms_xmlgen.newcontext('select * from scott.emp');
dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
xml := dbms_xmlgen.getxml(ctx);
dbms_output.put_line(xml);
Fnd_file.put_line (fnd_file.LOG, XML);
END;
END;
END TEST_XMLTAG_PKG;
this pkg produces the output with xml tag in the view log.
I have registered the conc program & xml rtf but it does not produce the output in PDF, , I am not able to get the xml tag when i click the Diagnostics --> View XML.
can you please let me know the next steps involved.
Regards
YramI think the problem is because there is no begin and end tag. save the xml from the logfile and open with xml editor or IE.. then you will see the problem.
add Begin and end tag...then you should be fine.. i.e
fnd_file.put_line(fnd_file.output,'<EMP_DATA>'); -- begin Tag
tx := dbms_xmlgen.newcontext('select * from scott.emp');
dbms_xmlgen.setrowtag(ctx, 'MY-ROW-START-HERE');
xml := dbms_xmlgen.getxml(ctx);
dbms_output.put_line(xml);
Fnd_file.put_line (fnd_file.LOG, XML);
fnd_file.put_line(fnd_file.output,'</EMP_DATA>'); -- End Tag
Hope this helps..>Good Luck
Ravi -
XML Publisher report to view as a self service page in EBS R12
Hi All,
I would like to show my XML publisher report as a self service page. What are the different methods in which i can show these reports. I would like to just click the function of the responsibility and see the report as a page.
Your suggestions would be appreciable. Thanks in advance.
Regards,
BorisHi All,
I would like to show my XML publisher report as a self service page. What are the different methods in which i can show these reports. I would like to just click the function of the responsibility and see the report as a page.
Your suggestions would be appreciable. Thanks in advance.
Regards,
Boris -
XML Publisher report output in RTF format does not display full page
Hi,
We have one XML Publisher report, the output of report in RTF format is not getting displayed in Full Page in normal way (MS Word -->View menu --> Print layout) but we can see full page display when we do MS Word -->View menu --> Outline.
Appreciate your valuable inputs on this.
Is this a template issue or any profiles needs to be set.
Thanks
VijayDo you have any header and footer on your template?
If you have any header and footer then try to adjust it as of to display full page.
Thanks
Yasar -
XML Publisher Report EXCEL output Huge stored as Web Pages
Hello
I have a XML Publisher Report which generates EXCEL output and the output file size is huge.
What I notice that it is stored as Web Pages *.htm; *.html (Save as Type) in Excel this is the reason it is huge.
If I save as Microsoft Office Excel Workbook *.xls it Reduce the size.
I don't know how to save as ".xls" through XML Publisher using PL/SQL.
Any body knows? please Help..
XML Publisher Template Builder for WORD
Version 5.6 Build 45
PATCH BUG_NUMBER
XDO.H *3263588*
4.5.0 *3554613*
5.0.0 *3822219*
5.5.0 *4206181*
5.0.1 *4236958*
5.6.0 *4561451*
5.6.1 *4905678*
5.6.2 *5097966*
5.6.3 *5472959*
Thanks.Hi Vetsrini,
We're on 10.1.3.4.1 and siebel 8.1.1.3 and when trying to open a report from within siebel in the output format EXCEL (selected from the parameter applet), it just opens the document in the browser.
Is there a way to get it to open directly in Excel? I guess the reason is the file extension*.EXCEL, how could we get the extension to be in excel format (xls)?
We don't want our users to have to do this themself.
Regards,
Hakan -
11i EBS XML Publisher Report with Multiple Data Source
I need to create XML Publisher report in 11i EBS pulling data from another 10.7 EBS Instance as well as 11i EBS in single report.
I am not allowed to create extract or use db links.
My problem is how to create Data Source Connection using Java Concurrent Program.
The approach I am trying is
1. create Java concurrent program to establish connection to 10.7 instance.
2. Will write the SQL queries in Data Tempalete with 2 Data Source 1 for 11i EBS and 2 for 10.7 EBS
3. Template will show the data from both query in 1 report..
Is there any other way to proceed using datasource API...
thanksoption1:
The query should be same @ detail level, only the template has to be different for summary and details.
@runtime, user can choose to see the detail/summary
Disadvantage, if the data is huge,
advantage , only one report.
option2:
create two separate reports summary and details
and create diff data and diff layout and keep it as different report
Advantage, query will perform based on the user run report, summary/detail, so that you can write efficient query.
Dis advantage , two reports query/template to be maintained.
Maybe you are looking for
-
My comp wont let me update my ipod
this message pops up every time i try to update my ipod, Attempting to copy to the disk (my ipod) failed. An unknown error occured. now i have sooo much stuff i need on my ipod. wut should i do?????????? cmv Windows XP cmv Windows XP
-
I am trying to download the new version of itunes 11.0 but am getting an error message that reads "Feature your trying to use is on a network resource that is unavailable" Does anybody know how to resolve?
-
Help with changing my apple ID?!
How do I put apps that are downloaded on one account and put it on the other so they update through the new one?
-
Can i use Oracle9i 9.2.0.5 JDBC on oracle8i ??
Hi all!! My java app is developed under Weblogic 6.1 and oracle 8i, but we are migrating it to weblogic 8.1, and we have some deprecated classes in ojdbc14.jar (those are Clob and Blob classes) and some troubles with Oracle Types definitions, so, we
-
ICloud removed my Outlook 7 contacts and I cannot get them back
When I moved over from Mobile Me, I selected on the iCloud control panel on my Win 7 machine to sync Contacts from Outlook 7, as I was doing successfully on Mobile Me. The sync appeard to go normally, however at the end of the process I got the follo