If then else in XML Publisher using parameter--Help need

Hi
I am using xml data template in xml Publisher .we have three different layout in a rtf . we have three parameter P1, P2, P3 ,based on the parameter , the layout should display .
if P1 is not null then
display Layout1(one rtf contain 3 layout)
if P2 is not null then
display Layout2(one rtf contain 3 layout)
EXP. If p1 is not null then the 1st layout in rtf should display and rest two layout should suppress.
Similarly if p2 is not null then 2nd layout in rtf should display and rest two layout in rtf should suppress.
Please guide me how to implement this in rtf layout.
SS

At the top of your template put the following:
<?param@begin:P1?><?param@begin:P2?><?param@begin:P3?>
Assuming that if P1 is not null, P2 and P3 are both null...
Put <?if:$P1!=’’?> or <?if:$P1!=’NULL’?> before the beginning of your layout1. You may have to try one and then the other, or use NULL without the quotes, depending on what is returned in your xml data.
Put <?end if?> at the end of your layout1.
Repeat the same steps for layouts 2 and 3. Remember to change the P1 to P2 or P3 as needed.
Haresh

Similar Messages

  • Changing DataSource Configuration using ConfigTool - Help Needed.

    Hello Everyones,
    I have an EP 7 which I have installed on a WAS ABAP + JAVA. The Data Soruce configuraion is in dataSourceConfiguration_abap.xml because of this I cannot create any new users in the Portal, can someone tell me how I can change this Config file using the ConfigTool and what procedure is to be used.
    Thanks for your help,
    John.
    Message was edited by: John Bray

    See Changing DataSource Configuration using ConfigTool - Help Needed.

  • XML Publisher --Data Template-Help

    Hi
    we are using XML Publisher attached to R12 , we are using data template ( .XML file) in data definition .
    we have a requirement for master details report. for that we have parent query and child query .the data coming to parent query should be the parameter to child query
    Exp-- Parent Query-- select empno from emp
    Child Query --select  * from dept where empno=:p_empno (p_empno =empno from Parent query ) 
    For this requirement we are creating a data template (.XML file) . we are successfully to write for the parent query, but we fails when come to child query. Please help us how it can be wrote in data template . You can send any example related to this issue.

    This forum is noway related to XML Publisher. I had redirected you to the actual BI Publisher already once. You should post it there.

  • XML Publisher Issue - Please help.

    I am getting the following error when running the XML Report . The program is completing in warning message.
    “Beginning post-processing of request 235281769 on node RMOHSDCGR02 at 19-OCT-2010 10:27:33.
    Post-processing of request 235281769 failed at 19-OCT-2010 10:27:34 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.”
    I have checked the OPP file
    SELECT fcpp.concurrent_request_id req_id, fcp.node_name, fcp.logfile_name
    FROM fnd_conc_pp_actions fcpp, fnd_concurrent_processes fcp
    WHERE fcpp.processor_id = fcp.concurrent_process_id
    AND fcpp.action_type = 6
    AND fcpp.concurrent_request_id = 235281769;
    file_details
    [10/9/10 2:18:18 PM] [main] Starting GSF service with concurrent process id = 76893.
    [10/9/10 2:18:18 PM] [main] Initialization Parameters: oracle.apps.fnd.cp.opp.OPPServiceThread:2:0:max_threads=5
    [10/9/10 2:18:18 PM] [Thread-16] Service thread starting up.
    [10/9/10 2:18:18 PM] [Thread-17] Service thread starting up.
    [10/18/10 11:57:11 AM] [OPPServiceThread0] Post-processing request 235281598.
    [10/18/10 11:57:11 AM] [76893:RT235281598] Executing post-processing actions for request 235281598.
    [10/18/10 11:57:12 AM] [76893:RT235281598] Starting XML Publisher post-processing action.
    [10/18/10 11:57:12 AM] [76893:RT235281598]
    Template code: XXDC_MM_UPL_CREDIT_PROF
    Template app: XXDC
    Language: en
    Territory: 00
    Output type: PDF
    [101810_115712335][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
    [101810_115712335][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
    [101810_115712336][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
    [101810_115712336][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
    [101810_115712336][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
    [101810_115712336][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[UTF8]
    [101810_115712336][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[-1]
    [101810_115712336][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
    [101810_115712336][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
    [101810_115712336][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
    [101810_115712337][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
    [101810_115712337][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=rmohsdcgr07.oracleoutsourcing.com)(PORT=10710))(ADDRESS=(PROTOCOL=tcp)(HOST=rmohsdcgr02.oracleoutsourcing.com)(PORT=10710)))(CONNECT_DATA=(SID=DDCGRI)))]
    [101810_115712337][][EXCEPTION] [DEBUG] [RESP_ID]:[-1]
    [101810_115712337][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
    [101810_115712337][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
    [101810_115712337][][EXCEPTION] [DEBUG] [USER_ID]:[-1]
    [101810_115712337][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[AMERICA]
    [101810_115712337][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
    [101810_115712337][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
    [101810_115712338][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RR]
    [101810_115712338][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
    [101810_115712338][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
    [101810_115712338][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
    [101810_115712338][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
    [101810_115712338][][EXCEPTION] [DEBUG] [LOGIN_ID]:[-1]
    [101810_115712338][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
    [101810_115712338][][EXCEPTION] [DEBUG] [APPLTMP]:[ddcgri/applcsf/tmp]
    [101810_115712339][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
    [101810_115712339][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/i386]
    [101810_115712339][][EXCEPTION] [DEBUG] [java.vm.version]:[1.5.0_06-b05]
    [101810_115712339][][EXCEPTION] [DEBUG] [OVERRIDE_DBC]:[true]
    [101810_115712339][][EXCEPTION] [DEBUG] [dbcfile]:[ddcgri/applmgr/11510/fnd/11.5.0/secure/DDCGRI_rmohsdcgr02/ddcgri.dbc]
    [101810_115712339][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Sun Microsystems Inc.]
    [101810_115712339][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://java.sun.com/]
    [101810_115712339][][EXCEPTION] [DEBUG] [path.separator]:[:]
    [101810_115712339][][EXCEPTION] [DEBUG] [APPLCSF]:[ddcgri/applcsf]
    [101810_115712340][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Server VM]
    [101810_115712340][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
    [101810_115712340][][EXCEPTION] [DEBUG] [user.country]:[US]
    [101810_115712340][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[unknown]
    [101810_115712340][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
    [101810_115712340][][EXCEPTION] [DEBUG] [user.dir]:[ddcgri/applcsf/log/DDCGRI_rmohsdcgr02]
    [101810_115712340][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.5.0_06-b05]
    [101810_115712340][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.X11GraphicsEnvironment]
    [101810_115712341][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/endorsed]
    [101810_115712341][][EXCEPTION] [DEBUG] [os.arch]:[i386]
    [101810_115712341][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[ddcgri/applmgr/11510/fnd/11.5.0/secure/DDCGRI_rmohsdcgr02/ddcgri.dbc]
    [101810_115712341][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[tmp]
    [101810_115712341][][EXCEPTION] [DEBUG] [line.separator]:[
    [101810_115712341][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
    [101810_115712341][][EXCEPTION] [DEBUG] [os.name]:[Linux]
    [101810_115712341][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
    [101810_115712341][][EXCEPTION] [DEBUG] [cpid]:[76893]
    [101810_115712342][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[ANSI_X3.4-1968]
    [101810_115712342][][EXCEPTION] [DEBUG] [java.library.path]:[ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/i386/server:/ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/i386:/ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/../lib/i386:/ddcgri/product/iAS/lib:/ddcgri/product/806/network/jre11/lib/i686/native_threads:/ddcgri/product/806/network/jre11/lib/linux/native_threads:/ddcgri/applmgr/11510/cz/11.5.0/bin:/ddcgri/product/806/lib:/usr/X11R6/lib:/usr/openwin/lib]
    [101810_115712342][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
    [101810_115712342][][EXCEPTION] [DEBUG] [java.class.version]:[49.0]
    [101810_115712342][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Server Compiler]
    [101810_115712342][][EXCEPTION] [DEBUG] [os.version]:[2.6.9-89.0.26.0.1.ELlargesmp]
    [101810_115712342][][EXCEPTION] [DEBUG] [LONG_RUNNING_JVM]:[true]
    [101810_115712342][][EXCEPTION] [DEBUG] [user.home]:[ddcgri/product]
    [101810_115712342][][EXCEPTION] [DEBUG] [user.timezone]:[Europe/London]
    [101810_115712343][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.print.PSPrinterJob]
    [101810_115712347][][EXCEPTION] [DEBUG] [file.encoding]:[ANSI_X3.4-1968]
    [101810_115712347][][EXCEPTION] [DEBUG] [java.specification.version]:[1.5]
    [101810_115712347][][EXCEPTION] [DEBUG] [CACHEMODE]:[DISTRIBUTED]
    [101810_115712348][][EXCEPTION] [DEBUG] [java.class.path]:[ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/rt.jar:/ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/lib/dt.jar:/ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/lib/tools.jar:/ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/charsets.jar:/ddcgri/applmgr/common/java/appsborg2.zip:/ddcgri/product/806/forms60/java:/ddcgri/applmgr/common/java]
    [101810_115712348][][EXCEPTION] [DEBUG] [user.name]:[apddcgri]
    [101810_115712348][][EXCEPTION] [DEBUG] [DBCFILE]:[ddcgri/applmgr/11510/fnd/11.5.0/secure/DDCGRI_rmohsdcgr02/ddcgri.dbc]
    [101810_115712348][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
    [101810_115712348][][EXCEPTION] [DEBUG] [java.home]:[ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre]
    [101810_115712348][][EXCEPTION] [DEBUG] [sun.arch.data.model]:[32]
    [101810_115712348][][EXCEPTION] [DEBUG] [user.language]:[en]
    [101810_115712348][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
    [101810_115712349][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
    [101810_115712349][][EXCEPTION] [DEBUG] [logfile]:[ddcgri/applcsf/log/DDCGRI_rmohsdcgr02/FNDOPP76893.txt]
    [101810_115712349][][EXCEPTION] [DEBUG] [java.version]:[1.5.0_06]
    [101810_115712349][][EXCEPTION] [DEBUG] [java.ext.dirs]:[ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/ext]
    [101810_115712349][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/rt.jar:/ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/i18n.jar:/ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/sunrsasign.jar:/ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/jsse.jar:/ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/jce.jar:/ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/lib/charsets.jar:/ddcgri/applmgr/common/util/java/1.5/j2sdk1.5.0_06/jre/classes]
    [101810_115712349][][EXCEPTION] [DEBUG] [java.vendor]:[Sun Microsystems Inc.]
    [101810_115712349][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[2]
    [101810_115712349][][EXCEPTION] [DEBUG] [file.separator]:[]
    [101810_115712349][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://java.sun.com/cgi-bin/bugreport.cgi]
    [101810_115712350][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeLittle]
    [101810_115712350][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[little]
    [101810_115712350][][EXCEPTION] [DEBUG] [APPLOUT]:[out/DDCGRI_rmohsdcgr02]
    [101810_115712350][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[]
    [10/18/10 11:57:13 AM] [UNEXPECTED] [76893:RT235281598] java.io.FileNotFoundException: /tdcg1i/applmgr/common/temp/xdoQBnr8m42XW101810_1157132190.fo (No such file or directory)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    [10/18/10 11:57:13 AM] [76893:RT235281598] Completed post-processing actions for request 235281598.
    [10/18/10 12:09:20 PM] [OPPServiceThread1] Post-processing request 235281600.
    [10/18/10 12:09:20 PM] [76893:RT235281600] Executing post-processing actions for request 235281600.
    [10/18/10 12:09:20 PM] [76893:RT235281600] Starting XML Publisher post-processing action.
    [10/18/10 12:09:20 PM] [76893:RT235281600]
    Template code: XXDC_MM_UPL_CREDIT_PROF
    Template app: XXDC
    Language: en
    Territory: 00
    Output type: PDF
    [10/18/10 12:09:20 PM] [UNEXPECTED] [76893:RT235281600] java.io.FileNotFoundException: /tdcg1i/applmgr/common/temp/xdoTQ3qo0WVAG101810_1209202901.fo (No such file or directory)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    [10/18/10 12:09:20 PM] [76893:RT235281600] Completed post-processing actions for request 235281600.
    [10/18/10 12:18:30 PM] [OPPServiceThread0] Post-processing request 235281602.
    [10/18/10 12:18:30 PM] [76893:RT235281602] Executing post-processing actions for request 235281602.
    [10/18/10 12:18:30 PM] [76893:RT235281602] Starting XML Publisher post-processing action.
    [10/18/10 12:18:30 PM] [76893:RT235281602]
    Template code: XXDC_MM_UPL_CREDIT_PROF
    Template app: XXDC
    Language: en
    Territory: 00
    Output type: PDF
    [10/18/10 12:18:30 PM] [UNEXPECTED] [76893:RT235281602] java.io.FileNotFoundException: /tdcg1i/applmgr/common/temp/xdomVNG5CUiJU101810_1218307062.fo (No such file or directory)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    [10/18/10 12:18:30 PM] [76893:RT235281602] Completed post-processing actions for request 235281602.
    [10/18/10 1:45:05 PM] [OPPServiceThread1] Post-processing request 235281611.
    [10/18/10 1:45:05 PM] [76893:RT235281611] Executing post-processing actions for request 235281611.
    [10/18/10 1:45:05 PM] [76893:RT235281611] Starting XML Publisher post-processing action.
    [10/18/10 1:45:05 PM] [76893:RT235281611]
    Template code: XXDC_MM_UPL_CREDIT_PROF
    Template app: XXDC
    Language: en
    Territory: 00
    Output type: PDF
    [10/18/10 1:45:05 PM] [UNEXPECTED] [76893:RT235281611] java.io.FileNotFoundException: /tdcg1i/applmgr/common/temp/xdonSDr1Lclur101810_0145054643.fo (No such file or directory)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    [10/18/10 1:45:05 PM] [76893:RT235281611] Completed post-processing actions for request 235281611.
    [10/18/10 2:19:06 PM] [OPPServiceThread0] Post-processing request 235281617.
    [10/18/10 2:19:07 PM] [76893:RT235281617] Executing post-processing actions for request 235281617.
    [10/18/10 2:19:07 PM] [76893:RT235281617] Starting XML Publisher post-processing action.
    [10/18/10 2:19:07 PM] [76893:RT235281617]
    Template code: XXDC_MM_UPL_CREDIT_PROF
    Template app: XXDC
    Language: en
    Territory: 00
    Output type: PDF
    [10/18/10 2:19:07 PM] [UNEXPECTED] [76893:RT235281617] java.io.FileNotFoundException: /tdcg1i/applmgr/common/temp/xdoyj5TzkRids101810_0219070714.fo (No such file or directory)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    [10/18/10 2:19:07 PM] [76893:RT235281617] Completed post-processing actions for request 235281617.
    [10/19/10 5:56:25 AM] [OPPServiceThread0] Post-processing request 235281736.
    [10/19/10 5:56:25 AM] [76893:RT235281736] Executing post-processing actions for request 235281736.
    [10/19/10 5:56:25 AM] [76893:RT235281736] Starting XML Publisher post-processing action.
    [10/19/10 5:56:25 AM] [76893:RT235281736]
    Template code: XXDC_MM_UPL_CREDIT_PROF
    Template app: XXDC
    Language: en
    Territory: 00
    Output type: PDF
    [10/19/10 5:56:25 AM] [UNEXPECTED] [76893:RT235281736] java.io.FileNotFoundException: /tdcg1i/applmgr/common/temp/xdocZqznUyg1C101910_0556251555.fo (No such file or directory)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    [10/19/10 5:56:25 AM] [76893:RT235281736] Completed post-processing actions for request 235281736.
    [10/19/10 6:07:04 AM] [OPPServiceThread1] Post-processing request 235281738.
    [10/19/10 6:07:04 AM] [76893:RT235281738] Executing post-processing actions for request 235281738.
    [10/19/10 6:07:04 AM] [76893:RT235281738] Starting XML Publisher post-processing action.
    [10/19/10 6:07:04 AM] [76893:RT235281738]
    Template code: XXDC_MM_UPL_CREDIT_PROF
    Template app: XXDC
    Language: en
    Territory: 00
    Output type: PDF
    [10/19/10 6:07:04 AM] [UNEXPECTED] [76893:RT235281738] java.io.FileNotFoundException: /tdcg1i/applmgr/common/temp/xdoZmwsSPwwBh101910_0607047996.fo (No such file or directory)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    [10/19/10 6:07:04 AM] [76893:RT235281738] Completed post-processing actions for request 235281738.
    [10/19/10 6:25:28 AM] [OPPServiceThread1] Post-processing request 235281741.
    [10/19/10 6:25:28 AM] [76893:RT235281741] Executing post-processing actions for request 235281741.
    [10/19/10 6:25:28 AM] [76893:RT235281741] Starting XML Publisher post-processing action.
    [10/19/10 6:25:28 AM] [76893:RT235281741]
    Template code: XXDC_MM_UPL_CREDIT_PROF
    Template app: XXDC
    Language: en
    Territory: 00
    Output type: PDF
    [10/19/10 6:25:28 AM] [UNEXPECTED] [76893:RT235281741] java.io.FileNotFoundException: /tdcg1i/applmgr/common/temp/xdoe1cxbJpotK101910_0625284827.fo (No such file or directory)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    [10/19/10 6:25:28 AM] [76893:RT235281741] Completed post-processing actions for request 235281741.
    [10/19/10 7:13:07 AM] [OPPServiceThread0] Post-processing request 235281746.
    [10/19/10 7:13:07 AM] [76893:RT235281746] Executing post-processing actions for request 235281746.
    [10/19/10 7:13:07 AM] [76893:RT235281746] Starting XML Publisher post-processing action.
    [10/19/10 7:13:07 AM] [76893:RT235281746]
    Template code: XXDC_MM_UPL_CREDIT_PROF
    Template app: XXDC
    Language: en
    Territory: 00
    Output type: PDF
    [10/19/10 7:13:07 AM] [UNEXPECTED] [76893:RT235281746] java.io.FileNotFoundException: /tdcg1i/applmgr/common/temp/xdopfFpKMviMC101910_0713079968.fo (No such file or directory)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    [10/19/10 7:13:08 AM] [76893:RT235281746] Completed post-processing actions for request 235281746.
    [10/19/10 7:22:56 AM] [OPPServiceThread1] Post-processing request 235281748.
    [10/19/10 7:22:56 AM] [76893:RT235281748] Executing post-processing actions for request 235281748.
    [10/19/10 7:22:56 AM] [76893:RT235281748] Starting XML Publisher post-processing action.
    [10/19/10 7:22:56 AM] [76893:RT235281748]
    Template code: XXDC_MM_UPL_CREDIT_PROF
    Template app: XXDC
    Language: en
    Territory: 00
    Output type: PDF
    [10/19/10 7:22:56 AM] [UNEXPECTED] [76893:RT235281748] java.io.FileNotFoundException: /tdcg1i/applmgr/common/temp/xdoLVImdiAcDq101910_0722563869.fo (No such file or directory)
         at java.io.FileOutputStream.open(Native Method)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
         at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFileJDK118(TmpFile.java:146)
         at oracle.apps.xdo.common.tmp.TmpFile.createTmpFile(TmpFile.java:113)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:987)
         at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
         at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
         at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5888)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3438)
         at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3527)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:153)
    [10/19/10 7:22:56 AM] [76893:RT235281748] Completed post-processing actions for request 235281748.
    [10/19/10 8:00:28 AM] [OPPServiceThread0] Post-processing request 235281752.
    [10/19/10 8:00:28 AM] [76893:RT235281752] Executing post-processing actions for request 235281752.
    [10/19/10 8:00:28 AM] [76893:RT235281752] Starting XML Publisher post-processing action.
    [10/19/10 8:00:28 AM] [76893:RT235281752]
    Template code: XXDC_MM_UPL_CREDIT_PROF
    Template app: XXDC
    Language: en
    Territory: 00
    Output type: PDF
    ------ I could not paste the entire file. Please let me know if it is required.
    [10/19/10 10:52:06 AM] [76893:RT235281774] Completed post-processing actions for request 235281774.
    Please help to fix this issue .
    Thanks,
    Am

    Hi,
    What is the application release? Database version? OS?
    Please see these docs.
    XMl Publisher Reports Fail with java.io.FileNotFoundException on Temp Directory After Cloning [ID 1189764.1]
    JAVA.IO.FILENOTFOUNDEXCEPTION NO SUCH FILE FOR EXCEL FORMAT [ID 428855.1]
    XML Publisher Requests Fail Due To java.io.FileNotFoundException - No such file or directory [ID 1072383.1]
    When Running PDF Report, Getting Error File Is Not Accessable From Node/Machine Or java.io.FileNotFoundException [ID 398897.1]
    Thanks,
    Hussein

  • Output shown blank when we run report in xml publisher using excel template

    Hi,
    1) We have a requirement where we need to run report to shown 100 columns. Since Microsoft word supports only 63 columns. So we are building the report template in Excel.
    2) When I run the report in Excel locally I get the output. But when I uplaod in BIP server and then run the report It gives a blank output.
    BI Publisher version 10.1.3.4.1
    BI Publisher Desktop version 11.1.1.5
    Please look into the issue.
    Please help
    Thanks,
    Nita

    Pl post details of OS, database and EBS versions, along with the database characterset.
    Are you creating PDF output ? Can you print Chinese characters when using US/UK operating units ? Are you using Pasta ?
    How to Generate PDF Output With UTF8 in R12? [ID 778970.1]
    HTH
    Srini

  • Printing Chinese characters in XML Publisher - using RTF Template

    Hi All,
    I have to build RTF template for invoices report.
    When i run the report for US/UK operating units , it is working fine. But when i run the report for China invoice. Chinese characters were displaying like ?????
    Can any one help me how to fix this?? it is urgent issue...
    Thanks,
    MG

    Pl post details of OS, database and EBS versions, along with the database characterset.
    Are you creating PDF output ? Can you print Chinese characters when using US/UK operating units ? Are you using Pasta ?
    How to Generate PDF Output With UTF8 in R12? [ID 778970.1]
    HTH
    Srini

  • Help with XML - which is better - Help needed

    Current version of Oracle:
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    I'm new to XML & this is my first post.
    Background: I have a "few" relational tables which are designed to assist the form scraping and to store the values as Key-Value-Attribute from the UI capture. (the change to the design is not possible at this time). I've also built the "normalized" schema which will hold the normalized data from this form-scrapping schema.
    In order to achive this: I plan on having (1) XML view which the UI will call and then it will be inserted/updated in the normalized schema (2) to be able to use the same XML by the BI publisher for reporting (3) end user query this form-scraping db to view as normalized data.
    Following are my thoughts about the approach & please correct & guide if my understanding/approach is wrong.
    After some good reading on this forum and other materials, I've come up with the below mentioned XML generation method. How can I convert this XML "record" such that it can satisfy the above stated.
    output:
    <?xml version="1.0"?>
    <ROWSET>
    <ROW>
      <FORM_TYPE_ID>900</FORM_TYPE_ID>
      <SYSTEM_NAME>HAZMAT_ENROLLMENT</SYSTEM_NAME>
      <FORM_TYPE>ENR-HAZMAT</FORM_TYPE>
      <FORM_ID>2371370</FORM_ID>
      <SUBMISSION_TYPE_ID>60</SUBMISSION_TYPE_ID>
      <FILING_DATE>29-APR-11</FILING_DATE>
      <SECTION>
       <SECTION_ROW>
        <SECTION_ID>6750</SECTION_ID>
        <SECTION_NAME>Personal Information</SECTION_NAME>
        <ATTRIBUTE>
         <ATTRIBUTE_ROW>
          <SRC>FRM_RSP</SRC>
          <ATTR_ID>30001</ATTR_ID>
          <ATTR_NAME>ENROLLEE_FIRST_NAME</ATTR_NAME>
          <ATTR_DESC>Enrollee&apos;s First Name</ATTR_DESC>
          <ATTR_VAL>Test First Name</ATTR_VAL>
         </ATTRIBUTE_ROW>
         <ATTRIBUTE_ROW>
          <SRC>FRM_RSP</SRC>
          <ATTR_ID>30002</ATTR_ID>
          <ATTR_NAME>ENROLLEE_MIDDLE_INIT</ATTR_NAME>
          <ATTR_DESC>Enrollee&apos;s Middle Initial</ATTR_DESC>
          <ATTR_VAL>Test Middle Initial</ATTR_VAL>
         </ATTRIBUTE_ROW>
       </SECTION_ROW>
      </SECTION>
    </ROW>
    </ROWSET>
    Code:
    *(All REF_% tables are lookup and FRM_RESPONSE is a KVA capture table and TBL_RESPONSE is also a KVA capture only used if the input is table wise (rows X columns))*
    FORM is made up of SECTIONs (1-to-many), SECTIONs contain ATTR_IDs (question ids, 1-to-many), %RESPONSE is always linked to an ATTR_ID
    CREATE OR REPLACE function DEVDBA.gen_xmlstr (p_form_id form.form_id%type) return clob as
    str clob := '
    SELECT rft.form_type_id, rft.system_name,rft.form_type, f.form_id, f.submission_type_id, f.sp_id,
           f.filing_date, f.tracking_num, f.spplmntl_num, f.parent_form_id, f.created_date, f.created_by,
           f.updated_date, f.updated_by,
           CURSOR(SELECT rs.section_id,
                         rs.section_name,
                         CURSOR(SELECT ''FRM_RSP'' src, fr.frm_response_id, ra.attr_id, ra.attr_name, ra.attr_desc, fr.attr_val
                                  FROM frm_response fr, ref_attr ra, ref_section_attr rsa
                                 WHERE fr.form_id = f.form_id
                                 AND fr.attr_id = rsa.attr_id
                                 AND fr.form_section_id = rsa.form_section_id
                                 AND fr.attr_id = ra.attr_id
                                 AND rsa.form_section_id = rfs.form_section_id
                                UNION
                                SELECT ''TBL_RSP1'' src, tr.tbl_response_id, tr.col_attr_id1, ra.attr_name, ra.attr_desc, col_attr_val1
                                  FROM tbl_response tr, ref_attr ra, ref_section_attr rsa
                                 WHERE tr.form_id = f.form_id
                                 AND tr.col_attr_id1 = ra.attr_id
                                 AND tr.form_section_id = rsa.form_section_id
                                 AND rsa.form_section_id = rfs.form_section_id
                                UNION
                                SELECT ''TBL_RSP2'' src, tr.tbl_response_id, tr.col_attr_id2, ra.attr_name, ra.attr_desc, col_attr_val2
                                  FROM tbl_response tr, ref_attr ra, ref_section_attr rsa
                                 WHERE tr.form_id = f.form_id
                                 AND tr.col_attr_id2 = ra.attr_id
                                 AND tr.form_section_id = rsa.form_section_id
                                 AND rsa.form_section_id = rfs.form_section_id
                                UNION
                                SELECT ''TBL_RSP3'' src, tr.tbl_response_id, TO_NUMBER(tr.col_attr_id3), ra.attr_name, ra.attr_desc, col_attr_val3
                                  FROM tbl_response tr, ref_attr ra, ref_section_attr rsa
                                 WHERE tr.form_id = f.form_id
                                 AND TO_NUMBER(tr.col_attr_id3) = ra.attr_id
                                 AND tr.form_section_id = rsa.form_section_id
                                 AND rsa.form_section_id = rfs.form_section_id
                                UNION
                                SELECT ''TBL_RSP4'' src, tr.tbl_response_id, tr.col_attr_id4, ra.attr_name, ra.attr_desc, col_attr_val4
                                  FROM tbl_response tr, ref_attr ra, ref_section_attr rsa
                                 WHERE tr.form_id = f.form_id
                                 AND tr.col_attr_id4 = ra.attr_id
                                 AND tr.form_section_id = rsa.form_section_id
                                 AND rsa.form_section_id = rfs.form_section_id
                                UNION
                                SELECT ''TBL_RSP5'' src, tr.tbl_response_id, tr.col_attr_id5, ra.attr_name, ra.attr_desc, col_attr_val5
                                  FROM tbl_response tr, ref_attr ra, ref_section_attr rsa
                                 WHERE tr.form_id = f.form_id
                                 AND tr.col_attr_id5 = ra.attr_id
                                 AND tr.form_section_id = rsa.form_section_id
                                 AND rsa.form_section_id = rfs.form_section_id
                                UNION
                                SELECT ''TBL_RSP6'' src, tr.tbl_response_id, tr.col_attr_id6, ra.attr_name, ra.attr_desc, col_attr_val6
                                  FROM tbl_response tr, ref_attr ra, ref_section_attr rsa
                                 WHERE tr.form_id = f.form_id
                                 AND tr.col_attr_id6 = ra.attr_id
                                 AND tr.form_section_id = rsa.form_section_id
                                 AND rsa.form_section_id = rfs.form_section_id
                                UNION
                                SELECT ''TBL_RSP7'' src, tr.tbl_response_id, tr.col_attr_id7, ra.attr_name, ra.attr_desc, col_attr_val7
                                  FROM tbl_response tr, ref_attr ra, ref_section_attr rsa
                                 WHERE tr.form_id = f.form_id
                                 AND tr.col_attr_id7 = ra.attr_id
                                 AND tr.form_section_id = rsa.form_section_id
                                 AND rsa.form_section_id = rfs.form_section_id
                                UNION
                                SELECT ''TBL_RSP8'' src, tr.tbl_response_id, tr.col_attr_id8, ra.attr_name, ra.attr_desc, col_attr_val8
                                  FROM tbl_response tr, ref_attr ra, ref_section_attr rsa
                                 WHERE tr.form_id = f.form_id
                                 AND tr.col_attr_id8 = ra.attr_id
                                 AND tr.form_section_id = rsa.form_section_id
                                 AND rsa.form_section_id = rfs.form_section_id
                                UNION
                                SELECT ''TBL_RSP9'' src, tr.tbl_response_id, tr.col_attr_id9, ra.attr_name, ra.attr_desc, col_attr_val9
                                  FROM tbl_response tr, ref_attr ra, ref_section_attr rsa
                                 WHERE tr.form_id = f.form_id
                                 AND tr.col_attr_id9 = ra.attr_id
                                 AND tr.form_section_id = rsa.form_section_id
                                 AND rsa.form_section_id = rfs.form_section_id
                                UNION
                                SELECT ''TBL_RSP10'' src, tr.tbl_response_id, tr.col_attr_id10, ra.attr_name, ra.attr_desc, col_attr_val10
                                  FROM tbl_response tr, ref_attr ra, ref_section_attr rsa
                                 WHERE tr.form_id = f.form_id
                                 AND tr.col_attr_id10 = ra.attr_id
                                 AND tr.form_section_id = rsa.form_section_id
                                 AND rsa.form_section_id = rfs.form_section_id
                           attribute
                    FROM ref_section rs, ref_form_section rfs
                   WHERE rs.section_id = rfs.section_id
                   AND   rfs.form_type_id = f.form_type_id
                  ORDER BY rs.section_id, rfs.form_section_id)
             section
      FROM ref_form_type rft, form f
    WHERE rft.form_type_id = f.form_type_id
    AND f.form_id = ' || p_form_id; --2371370'';
    begin
      return dbms_xmlgen.getxml(str);
    end gen_xmlstr;
    Invocation:
    select gen_xmlstr(2371370)
    from dual;
    Below is the execution plan. Can this be better?
    Execution Plan
    Plan hash value: 2652539008
    | Id  | Operation                        | Name                 | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT                 |                      |     1 |    75 |     3   (0)| 00:00:01 |
    |   1 |  SORT UNIQUE                     |                      |    11 |  1024 |    40  (88)| 00:00:01 |
    |   2 |   UNION-ALL                      |                      |       |       |            |          |
    |   3 |    NESTED LOOPS                  |                      |       |       |            |          |
    |   4 |     NESTED LOOPS                 |                      |     1 |    91 |     5   (0)| 00:00:01 |
    |   5 |      NESTED LOOPS                |                      |     1 |    82 |     3   (0)| 00:00:01 |
    |*  6 |       TABLE ACCESS BY INDEX ROWID| FRM_RESPONSE         |     1 |    25 |     2   (0)| 00:00:01 |
    |*  7 |        INDEX RANGE SCAN          | FK3_FRM_RESPONSE     |    20 |       |     1   (0)| 00:00:01 |
    |   8 |       TABLE ACCESS BY INDEX ROWID| REF_ATTR             |     1 |    57 |     1   (0)| 00:00:01 |
    |*  9 |        INDEX UNIQUE SCAN         | PK_REF_ATTR          |     1 |       |     0   (0)| 00:00:01 |
    |* 10 |      INDEX RANGE SCAN            | FK2_REF_SECTION_ATTR |     2 |       |     1   (0)| 00:00:01 |
    |* 11 |     TABLE ACCESS BY INDEX ROWID  | REF_SECTION_ATTR     |     1 |     9 |     2   (0)| 00:00:01
    |  12 |    NESTED LOOPS                  |                      |       |       |            |          |
    |  13 |     NESTED LOOPS                 |                      |     1 |   105 |     2   (0)| 00:00:01 |
    |  14 |      NESTED LOOPS                |                      |     1 |    48 |     2   (0)| 00:00:01 |
    |* 15 |       INDEX RANGE SCAN           | FK1_REF_SECTION_ATTR |     9 |    36 |     1   (0)| 00:00:01 |
    |* 16 |       TABLE ACCESS BY INDEX ROWID| TBL_RESPONSE         |     1 |    44 |     1   (0)| 00:00:01 |
    |* 17 |        INDEX RANGE SCAN          | FK1_TBL_RESPONSE     |     1 |       |     0   (0)| 00:00:01 |
    |* 18 |      INDEX UNIQUE SCAN           | PK_REF_ATTR          |     1 |       |     0   (0)| 00:00:01 |
    |  19 |     TABLE ACCESS BY INDEX ROWID  | REF_ATTR             |     1 |    57 |     0   (0)| 00:00:01 |
    |  20 |    NESTED LOOPS                  |                      |       |       |            |          |
    |  21 |     NESTED LOOPS                 |                      |     1 |   100 |     2   (0)| 00:00:01 |
    |  22 |      NESTED LOOPS                |                      |     1 |    43 |     2   (0)| 00:00:01 |
    |* 23 |       INDEX RANGE SCAN           | FK1_REF_SECTION_ATTR |     9 |    36 |     1   (0)| 00:00:01 |
    |* 24 |       TABLE ACCESS BY INDEX ROWID| TBL_RESPONSE         |     1 |    39 |     1   (0)| 00:00:01 |
    |* 25 |        INDEX RANGE SCAN          | FK1_TBL_RESPONSE     |     1 |       |     0   (0)| 00:00:01 |
    |* 26 |      INDEX UNIQUE SCAN           | PK_REF_ATTR          |     1 |       |     0   (0)| 00:00:01 |
    |  27 |     TABLE ACCESS BY INDEX ROWID  | REF_ATTR             |     1 |    57 |     0   (0)| 00:00:01 |
    |  28 |    NESTED LOOPS                  |                      |       |       |            |          |
    |  29 |     NESTED LOOPS                 |                      |     1 |    86 |     3   (0)| 00:00:01 |
    |  30 |      NESTED LOOPS                |                      |     1 |    29 |     2   (0)| 00:00:01 |
    |* 31 |       INDEX RANGE SCAN           | FK1_REF_SECTION_ATTR |     9 |    36 |     1   (0)| 00:00:01 |
    |* 32 |       TABLE ACCESS BY INDEX ROWID| TBL_RESPONSE         |     1 |    25 |     1   (0)| 00:00:01 |
    |* 33 |        INDEX RANGE SCAN          | FK1_TBL_RESPONSE     |     1 |       |     0   (0)| 00:00:01 |
    |* 34 |      INDEX UNIQUE SCAN           | PK_REF_ATTR          |     1 |       |     0   (0)| 00:00:01 |
    |  35 |     TABLE ACCESS BY INDEX ROWID  | REF_ATTR             |     1 |    57 |     1   (0)| 00:00:01 |
    |  36 |    NESTED LOOPS                  |                      |       |       |            |          |
    |  37 |     NESTED LOOPS                 |                      |     1 |    93 |     2   (0)| 00:00:01 |
    |  38 |      NESTED LOOPS                |                      |     1 |    36 |     2   (0)| 00:00:01 |
    |* 39 |       INDEX RANGE SCAN           | FK1_REF_SECTION_ATTR |     9 |    36 |     1   (0)| 00:00:01 |
    |* 40 |       TABLE ACCESS BY INDEX ROWID| TBL_RESPONSE         |     1 |    32 |     1   (0)| 00:00:01 |
    |* 41 |        INDEX RANGE SCAN          | FK1_TBL_RESPONSE     |     1 |       |     0   (0)| 00:00:01 |
    |* 42 |      INDEX UNIQUE SCAN           | PK_REF_ATTR          |     1 |       |     0   (0)| 00:00:01 |
    |  43 |     TABLE ACCESS BY INDEX ROWID  | REF_ATTR             |     1 |    57 |     0   (0)| 00:00:01 |
    |  44 |    NESTED LOOPS                  |                      |       |       |            |          |
    |  45 |     NESTED LOOPS                 |                      |     1 |    93 |     2   (0)| 00:00:01 |
    |  46 |      NESTED LOOPS                |                      |     1 |    36 |     2   (0)| 00:00:01 |
    |* 47 |       INDEX RANGE SCAN           | FK1_REF_SECTION_ATTR |     9 |    36 |     1   (0)| 00:00:01 |
    |* 48 |       TABLE ACCESS BY INDEX ROWID| TBL_RESPONSE         |     1 |    32 |     1   (0)| 00:00:01 |
    |* 49 |        INDEX RANGE SCAN          | FK1_TBL_RESPONSE     |     1 |       |     0   (0)| 00:00:01 |
    |* 50 |      INDEX UNIQUE SCAN           | PK_REF_ATTR          |     1 |       |     0   (0)| 00:00:01 |
    |  51 |     TABLE ACCESS BY INDEX ROWID  | REF_ATTR             |     1 |    57 |     0   (0)| 00:00:01 |
    |  52 |    NESTED LOOPS                  |                      |       |       |            |          |
    |  53 |     NESTED LOOPS                 |                      |     1 |    90 |     2   (0)| 00:00:01 |
    |  54 |      NESTED LOOPS                |                      |     1 |    33 |     2   (0)| 00:00:01 |
    |* 55 |       INDEX RANGE SCAN           | FK1_REF_SECTION_ATTR |     9 |    36 |     1   (0)| 00:00:01 |
    |* 56 |       TABLE ACCESS BY INDEX ROWID| TBL_RESPONSE         |     1 |    29 |     1   (0)| 00:00:01 |
    |* 57 |        INDEX RANGE SCAN          | FK1_TBL_RESPONSE     |     1 |       |     0   (0)| 00:00:01 |
    |* 58 |      INDEX UNIQUE SCAN           | PK_REF_ATTR          |     1 |       |     0   (0)| 00:00:01 |
    |  59 |     TABLE ACCESS BY INDEX ROWID  | REF_ATTR             |     1 |    57 |     0   (0)| 00:00:01 |
    |  60 |    NESTED LOOPS                  |                      |       |       |            |          |
    |  61 |     NESTED LOOPS                 |                      |     1 |    95 |     2   (0)| 00:00:01 |
    |  62 |      NESTED LOOPS                |                      |     1 |    38 |     2   (0)| 00:00:01 |
    |* 63 |       INDEX RANGE SCAN           | FK1_REF_SECTION_ATTR |     9 |    36 |     1   (0)| 00:00:01 |
    |* 64 |       TABLE ACCESS BY INDEX ROWID| TBL_RESPONSE         |     1 |    34 |     1   (0)| 00:00:01 |
    |* 65 |        INDEX RANGE SCAN          | FK1_TBL_RESPONSE     |     1 |       |     0   (0)| 00:00:01 |
    |* 66 |      INDEX UNIQUE SCAN           | PK_REF_ATTR          |     1 |       |     0   (0)| 00:00:01 |
    |  67 |     TABLE ACCESS BY INDEX ROWID  | REF_ATTR             |     1 |    57 |     0   (0)| 00:00:01 |
    |  68 |    NESTED LOOPS                  |                      |       |       |            |          |
    |  69 |     NESTED LOOPS                 |                      |     1 |    90 |     2   (0)| 00:00:01 |
    |  70 |      NESTED LOOPS                |                      |     1 |    33 |     2   (0)| 00:00:01 |
    |* 71 |       INDEX RANGE SCAN           | FK1_REF_SECTION_ATTR |     9 |    36 |     1   (0)| 00:00:01 |
    |* 72 |       TABLE ACCESS BY INDEX ROWID| TBL_RESPONSE         |     1 |    29 |     1   (0)| 00:00:01 |
    |* 73 |        INDEX RANGE SCAN          | FK1_TBL_RESPONSE     |     1 |       |     0   (0)| 00:00:01 |
    |* 74 |      INDEX UNIQUE SCAN           | PK_REF_ATTR          |     1 |       |     0   (0)| 00:00:01 |
    |  75 |     TABLE ACCESS BY INDEX ROWID  | REF_ATTR             |     1 |    57 |     0   (0)| 00:00:01 |
    |  76 |    NESTED LOOPS                  |                      |       |       |            |          |
    |  77 |     NESTED LOOPS                 |                      |     1 |    90 |     2   (0)| 00:00:01 |
    |  78 |      NESTED LOOPS                |                      |     1 |    33 |     2   (0)| 00:00:01 |
    |* 79 |       INDEX RANGE SCAN           | FK1_REF_SECTION_ATTR |     9 |    36 |     1   (0)| 00:00:01 |
    |* 80 |       TABLE ACCESS BY INDEX ROWID| TBL_RESPONSE         |     1 |    29 |     1   (0)| 00:00:01 |
    |* 81 |        INDEX RANGE SCAN          | FK1_TBL_RESPONSE     |     1 |       |     0   (0)| 00:00:01 |
    |* 82 |      INDEX UNIQUE SCAN           | PK_REF_ATTR          |     1 |       |     0   (0)| 00:00:01 |
    |  83 |     TABLE ACCESS BY INDEX ROWID  | REF_ATTR             |     1 |    57 |     0   (0)| 00:00:01 |
    |  84 |    NESTED LOOPS                  |                      |       |       |            |          |
    |  85 |     NESTED LOOPS                 |                      |     1 |    91 |     2   (0)| 00:00:01 |
    |  86 |      NESTED LOOPS                |                      |     1 |    34 |     2   (0)| 00:00:01 |
    |* 87 |       INDEX RANGE SCAN           | FK1_REF_SECTION_ATTR |     9 |    36 |     1   (0)| 00:00:01 |
    |* 88 |       TABLE ACCESS BY INDEX ROWID| TBL_RESPONSE         |     1 |    30 |     1   (0)| 00:00:01 |
    |* 89 |        INDEX RANGE SCAN          | FK1_TBL_RESPONSE     |     1 |       |     0   (0)| 00:00:01 |
    |* 90 |      INDEX UNIQUE SCAN           | PK_REF_ATTR          |     1 |       |     0   (0)| 00:00:01 |
    |  91 |     TABLE ACCESS BY INDEX ROWID  | REF_ATTR             |     1 |    57 |     0   (0)| 00:00:01 |
    |  92 |  SORT ORDER BY                   |                      |    20 |  1040 |     7  (29)| 00:00:01 |
    |* 93 |   HASH JOIN                      |                      |    20 |  1040 |     6  (17)| 00:00:01 |
    |  94 |    TABLE ACCESS BY INDEX ROWID   | REF_FORM_SECTION     |    20 |   200 |     2   (0)| 00:00:01 |
    |* 95 |     INDEX RANGE SCAN             | FK1_FORM_SECTION     |    20 |       |     1   (0)| 00:00:01 |
    |  96 |    TABLE ACCESS FULL             | REF_SECTION          |   100 |  4200 |     3   (0)| 00:00:01 |
    |  97 |  NESTED LOOPS                    |                      |     1 |    75 |     3   (0)| 00:00:01 |
    |  98 |   TABLE ACCESS BY INDEX ROWID    | FORM                 |     1 |    59 |     2   (0)| 00:00:01 |
    |* 99 |    INDEX UNIQUE SCAN             | PK_FORM              |     1 |       |     1   (0)| 00:00:01 |
    | 100 |   TABLE ACCESS BY INDEX ROWID    | REF_FORM_TYPE        |     5 |    80 |     1   (0)| 00:00:01 |
    |*101 |    INDEX UNIQUE SCAN             | PK_REF_FORM_TYPE     |     1 |       |     0   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       6 - filter("FR"."FORM_SECTION_ID"=:B1)
       7 - access("FR"."FORM_ID"=:B1)
       9 - access("FR"."ATTR_ID"="RA"."ATTR_ID")
      10 - access("FR"."ATTR_ID"="RSA"."ATTR_ID")
      11 - filter("RSA"."FORM_SECTION_ID"=:B1 AND "FR"."FORM_SECTION_ID"="RSA"."FORM_SECTION_ID")
      15 - access("RSA"."FORM_SECTION_ID"=:B1)
      16 - filter("TR"."COL_ATTR_ID1" IS NOT NULL AND "TR"."FORM_ID"=:B1)
      17 - access("TR"."FORM_SECTION_ID"=:B1)
           filter("TR"."FORM_SECTION_ID"="RSA"."FORM_SECTION_ID")
      18 - access("TR"."COL_ATTR_ID1"="RA"."ATTR_ID")
      23 - access("RSA"."FORM_SECTION_ID"=:B1)
      24 - filter("TR"."COL_ATTR_ID2" IS NOT NULL AND "TR"."FORM_ID"=:B1)
      25 - access("TR"."FORM_SECTION_ID"=:B1)
           filter("TR"."FORM_SECTION_ID"="RSA"."FORM_SECTION_ID")
      26 - access("TR"."COL_ATTR_ID2"="RA"."ATTR_ID")
      31 - access("RSA"."FORM_SECTION_ID"=:B1)
      32 - filter("TR"."FORM_ID"=:B1)
      33 - access("TR"."FORM_SECTION_ID"=:B1)
           filter("TR"."FORM_SECTION_ID"="RSA"."FORM_SECTION_ID")
      34 - access("RA"."ATTR_ID"=TO_NUMBER("TR"."COL_ATTR_ID3"))
      39 - access("RSA"."FORM_SECTION_ID"=:B1)
      40 - filter("TR"."COL_ATTR_ID4" IS NOT NULL AND "TR"."FORM_ID"=:B1)
      41 - access("TR"."FORM_SECTION_ID"=:B1)
           filter("TR"."FORM_SECTION_ID"="RSA"."FORM_SECTION_ID")
      42 - access("TR"."COL_ATTR_ID4"="RA"."ATTR_ID")
      47 - access("RSA"."FORM_SECTION_ID"=:B1)
      48 - filter("TR"."COL_ATTR_ID5" IS NOT NULL AND "TR"."FORM_ID"=:B1)
      49 - access("TR"."FORM_SECTION_ID"=:B1)
           filter("TR"."FORM_SECTION_ID"="RSA"."FORM_SECTION_ID")
      50 - access("TR"."COL_ATTR_ID5"="RA"."ATTR_ID")
      55 - access("RSA"."FORM_SECTION_ID"=:B1)
      56 - filter("TR"."COL_ATTR_ID6" IS NOT NULL AND "TR"."FORM_ID"=:B1)
      57 - access("TR"."FORM_SECTION_ID"=:B1)
           filter("TR"."FORM_SECTION_ID"="RSA"."FORM_SECTION_ID")
      58 - access("TR"."COL_ATTR_ID6"="RA"."ATTR_ID")
      63 - access("RSA"."FORM_SECTION_ID"=:B1)
      64 - filter("TR"."COL_ATTR_ID7" IS NOT NULL AND "TR"."FORM_ID"=:B1)
      65 - access("TR"."FORM_SECTION_ID"=:B1)
           filter("TR"."FORM_SECTION_ID"="RSA"."FORM_SECTION_ID")
      66 - access("TR"."COL_ATTR_ID7"="RA"."ATTR_ID")
      71 - access("RSA"."FORM_SECTION_ID"=:B1)
      72 - filter("TR"."COL_ATTR_ID8" IS NOT NULL AND "TR"."FORM_ID"=:B1)
      73 - access("TR"."FORM_SECTION_ID"=:B1)
           filter("TR"."FORM_SECTION_ID"="RSA"."FORM_SECTION_ID")
      74 - access("TR"."COL_ATTR_ID8"="RA"."ATTR_ID")
      79 - access("RSA"."FORM_SECTION_ID"=:B1)
      80 - filter("TR"."COL_ATTR_ID9" IS NOT NULL AND "TR"."FORM_ID"=:B1)
      81 - access("TR"."FORM_SECTION_ID"=:B1)
           filter("TR"."FORM_SECTION_ID"="RSA"."FORM_SECTION_ID")
      82 - access("TR"."COL_ATTR_ID9"="RA"."ATTR_ID")
      87 - access("RSA"."FORM_SECTION_ID"=:B1)
      88 - filter("TR"."COL_ATTR_ID10" IS NOT NULL AND "TR"."FORM_ID"=:B1)
      89 - access("TR"."FORM_SECTION_ID"=:B1)
           filter("TR"."FORM_SECTION_ID"="RSA"."FORM_SECTION_ID")
      90 - access("TR"."COL_ATTR_ID10"="RA"."ATTR_ID")
      93 - access("RS"."SECTION_ID"="RFS"."SECTION_ID")
      95 - access("RFS"."FORM_TYPE_ID"=:B1)
      99 - access("F"."FORM_ID"=2371370)
    101 - access("RFT"."FORM_TYPE_ID"="F"."FORM_TYPE_ID")
    What tools/techniques are available to generate the XSLT? (use XMLSpy etc?), how to create a such that it can be as simple as "select from v_xml_view;" and be able to replace * with column names?*
    ==============================
    I've also tried the *SQL-XML extensions* but am stuck with the UNION PART (help is requested on how to union columns within the XMLAgg).
    {code}
    select
    xmlelement ("System",
    xmlforest(rft.form_type_id as "FormTypeID", rft.system_name as "SystemName", rft.form_type as "FormType", f.form_id as "FormID"),
    xmlelement("Sections",
    (select xmlagg(xmlelement("Section",
    xmlforest(rs.section_id as "SectionID", rs.section_name as "SectionName"),
    xmlelement("Attributes",
    (select xmlagg(xmlelement("Attr",
    xmlforest (rsa.attr_id as "AttrID", ra.attr_name as "AttrName", ra.attr_desc as "Attr_desc", fr.attr_val as "AttrValue")
    ) -- "attr"
    ) --xmlagg attr
    from ref_section_attr rsa, ref_attr ra, frm_response fr
    where rsa.attr_id = ra.attr_id
    and rsa.form_section_id = rfs.form_section_id
    and fr.form_id = f.form_id
    and fr.form_section_id = rsa.form_section_id
    and fr.attr_id = rsa.attr_id
    ) --attributes select
    ) -- attributes
    ) -- section elements
    ) -- xmlagg
    from ref_section rs, ref_form_section rfs
    where rs.section_id = rfs.section_id
    and rfs.form_type_id = f.form_type_id
    ) -- select query
    ) -- sections
    ) -- system
    as str
    from ref_form_type rft, FORM f
    where rft.form_type_id = f.form_type_id
    and f.form_id = 2371420;
    {code}
    *and the output is like:
    (I don't know how to format this for easy viewing!)*
    {code}
    <System><FormTypeID>900</FormTypeID><SystemName>HAZMAT_ENROLLMENT</SystemName><FormType>ENR-HAZMAT</FormType><FormID>2371420</FormID><Sections><Section><SectionID>6750</SectionID><SectionName>Personal Information</SectionName><Attributes><Attr><AttrID>30001</AttrID><AttrName>ENROLLEE_FIRST_NAME</AttrName><Attr_desc>Enrollee&apos;s First Name</Attr_desc><AttrValue>Enroll</AttrValue></Attr><Attr><AttrID>30002</AttrID><AttrName>ENROLLEE_MIDDLE_INIT</AttrName><Attr_desc>Enrollee&apos;s Middle Initial</Attr_desc><AttrValue> </AttrValue></Attr><Attr><AttrID>30003</AttrID><AttrName>ENROLLEE_LAST_NAME</AttrName><Attr_desc>Enrollee&apos;s Last Name</Attr_desc><AttrValue>User11</AttrValue></Attr><Attr><AttrID>30004</AttrID><AttrName>ENROLLEE_WORK_PHONE</AttrName><Attr_desc>Enrollee&apos;s Work Phone Number</Attr_desc><AttrValue>(703) 222-4444</AttrValue></Attr><Attr><AttrID>30005</AttrID><AttrName>ENROLLEE_FAX</AttrName><Attr_desc>Enrollee Fax Number</Attr_desc><AttrValue> </AttrValue></Attr><Attr><AttrID>30006</AttrID><AttrName>ENROLLEE_EXT</AttrName><Attr_desc>Enrollee&apos;s Work Extension</Attr_desc><AttrValue> </AttrValue></Attr><Attr><AttrID>30007</AttrID><AttrName>ENROLLEE_EMAIL</AttrName><Attr_desc>Enrollee&apos;s Email</Attr_desc><AttrValue>[email protected]</AttrValue></Attr><Attr><AttrID>30023</AttrID><AttrName>POC_TYPE</AttrName><Attr_desc>Point of Contact Type</Attr_desc><AttrValue>Consultant</AttrValue></Attr><Attr><AttrID>30008</AttrID><AttrName>ENROLLEE_MAIL_ADDR_1</AttrName><Attr_desc>Enrollee&apos;s Mailing Address #1</Attr_desc><AttrValue>123 Main St</AttrValue></Attr><Attr><AttrID>30009</AttrID><AttrName>ENROLLEE_MAIL_ADDR_2</AttrName><Attr_desc>Enrollee&apos;s Mailing Address #2</Attr_desc><AttrValue> </AttrValue></Attr><Attr><AttrID>30010</AttrID><AttrName>ENROLLEE_CITY</AttrName><Attr_desc>Enrollee&apos;s City</Attr_desc><AttrValue>Herndon</AttrValue></Attr><Attr><AttrID>30011</AttrID><AttrName>ENROLLEE_STATE</AttrName><Attr_desc>Enrollee&apos;s State</Attr_desc><AttrValue>VA</AttrValue></Attr><Attr><AttrID>30012</AttrID><AttrName>ENROLLEE_ZIP</AttrName><Attr_desc>Enrollee&apos;s Zip</Attr_desc><AttrValue>28408</AttrValue></Attr><Attr><AttrID>30013</AttrID><AttrName>ENROLLEE_USER_NAME</AttrName><Attr_desc>Enrollee&apos;s User Name</Attr_desc><AttrValue>enrolluser11</AttrValue></Attr></Attributes></Section><Section><SectionID>6800</SectionID><SectionName>Company Information</SectionName><Attributes><Attr><AttrID>30014</AttrID><AttrName>DUN_BRADSTREET_NUM</AttrName><Attr_desc>Company&apos;s Dun and Bradstreet #</Attr_desc><AttrValue>198455201</AttrValue></Attr></Attributes></Section><Section><SectionID>6850</SectionID><SectionName>Points of Contact</SectionName><Attributes></Attributes></Section><Section><SectionID>6900</SectionID><SectionName>Enrollment Verification</SectionName><Attributes></Attributes></Section><Section><SectionID>6950</SectionID><SectionName>Enrollment Confirmation</SectionName><Attributes></Attributes></Section></Sections></System>
    {code}
    *The execution plan:*
    {code}
    Execution Plan
    Plan hash value: 2641045985
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    ------------

    Thanks for the data.
    I thought you would have included data from TBL_RESPONSE, as the interesting part is how to deal with this "special" design ;)
    So, to run some tests, I've generated the following data for FORM_SECTION_ID 5350 and 5360 :
    insert into tbl_response (FORM_ID, FORM_SECTION_ID, COL_ATTR_ID1, COL_ATTR_VAL1, COL_ATTR_ID2, COL_ATTR_VAL2, COL_ATTR_ID3, COL_ATTR_VAL3, COL_ATTR_ID4, COL_ATTR_VAL4, COL_ATTR_ID5, COL_ATTR_VAL5, COL_ATTR_ID6, COL_ATTR_VAL6, COL_ATTR_ID7, COL_ATTR_VAL7, COL_ATTR_ID8, COL_ATTR_VAL8, COL_ATTR_ID9, COL_ATTR_VAL9, COL_ATTR_ID10, COL_ATTR_VAL10)
    values (2371420, 5350, 30000, '05/03/2011', 30001, 'John', '30002', 'J', 30003, 'Doe', 30004, '(555) 123-1234', 30005, '(555) 123-1235', 30006, '1234567', 30007, '[email protected]', 30008, '10 Maple Street', 30009, '.');
    insert into tbl_response (FORM_ID, FORM_SECTION_ID, COL_ATTR_ID1, COL_ATTR_VAL1, COL_ATTR_ID2, COL_ATTR_VAL2, COL_ATTR_ID3, COL_ATTR_VAL3, COL_ATTR_ID4, COL_ATTR_VAL4, COL_ATTR_ID5, COL_ATTR_VAL5, COL_ATTR_ID6, COL_ATTR_VAL6, COL_ATTR_ID7, COL_ATTR_VAL7, COL_ATTR_ID8, COL_ATTR_VAL8, COL_ATTR_ID9, COL_ATTR_VAL9, COL_ATTR_ID10, COL_ATTR_VAL10)
    values (2371420, 5350, 30011, 'MA', 30012, '02668', '30013', 'jdoe', null, '', null, '', null, '', null, '', null, '', null, '', null, '');
    insert into tbl_response (FORM_ID, FORM_SECTION_ID, COL_ATTR_ID1, COL_ATTR_VAL1, COL_ATTR_ID2, COL_ATTR_VAL2, COL_ATTR_ID3, COL_ATTR_VAL3, COL_ATTR_ID4, COL_ATTR_VAL4, COL_ATTR_ID5, COL_ATTR_VAL5, COL_ATTR_ID6, COL_ATTR_VAL6, COL_ATTR_ID7, COL_ATTR_VAL7, COL_ATTR_ID8, COL_ATTR_VAL8, COL_ATTR_ID9, COL_ATTR_VAL9, COL_ATTR_ID10, COL_ATTR_VAL10)
    values (2371420, 5360, 30014, '123456789', 30015, 'My Company', '30016', '50 Main Street', 30017, '.', 30018, 'Marstons Mills', 30019, 'MA', 30020, '02648', 30021, '(555) 123-1236', null, '', null, '');And here's the query :
    WITH attr_unpivot AS (
      SELECT form_section_id
           , attr_val
      FROM (
        SELECT form_section_id
             , XMLForest(col_attr_id1 as "AttrID", col_attr_val1 as "AttrValue") as attr01
             , XMLForest(col_attr_id2 as "AttrID", col_attr_val2 as "AttrValue") as attr02
             , XMLForest(col_attr_id3 as "AttrID", col_attr_val3 as "AttrValue") as attr03
             , XMLForest(col_attr_id4 as "AttrID", col_attr_val4 as "AttrValue") as attr04
             , XMLForest(col_attr_id5 as "AttrID", col_attr_val5 as "AttrValue") as attr05
             , XMLForest(col_attr_id6 as "AttrID", col_attr_val6 as "AttrValue") as attr06
             , XMLForest(col_attr_id7 as "AttrID", col_attr_val7 as "AttrValue") as attr07
             , XMLForest(col_attr_id8 as "AttrID", col_attr_val8 as "AttrValue") as attr08
             , XMLForest(col_attr_id9 as "AttrID", col_attr_val9 as "AttrValue") as attr09
             , XMLForest(col_attr_id10 as "AttrID", col_attr_val10 as "AttrValue") as attr10
        FROM tbl_response
        WHERE form_id = 2371420
      UNPIVOT (
        attr_val FOR attr_pos IN (attr01,attr02,attr03,attr04,attr05,attr06,attr07,attr08,attr09,attr10)
      UNION ALL
      SELECT form_section_id
           , XMLForest(fr.attr_id as "AttrID", fr.attr_val as "AttrValue")
      FROM frm_response fr
      WHERE fr.form_id = 2371420
    SELECT XMLElement("System",
             XMLForest(
               rft.form_type_id as "FormTypeID"
             , rft.system_name as "SystemName"
             , rft.form_type as "FormType"
             , f.form_id as "FormID"
           , XMLElement("Sections",
                SELECT XMLAgg(
                         XMLElement("Section",
                           XMLForest(
                             rs.section_id as "SectionID"
                           , rs.section_name as "SectionName"
                         , XMLElement("Attributes",
                              SELECT XMLAgg(
                                       XMLElement("Attr",
                                         XMLForest(
                                           ra.attr_desc as "AttrDesc"
                                         , ra.attr_name as "AttrName"
                                       , v.attr_val
                              FROM attr_unpivot v
                                   JOIN ref_section_attr rsa ON rsa.attr_id = extractValue(v.attr_val,'AttrID')
                                                            AND rsa.form_section_id = v.form_section_id
                                   JOIN ref_attr ra ON ra.attr_id = rsa.attr_id
                              WHERE rsa.form_section_id = rfs.form_section_id
                FROM ref_section rs
                     JOIN ref_form_section rfs ON rs.section_id = rfs.section_id
                WHERE rfs.form_type_id = f.form_type_id
           ) as xmldoc
    FROM ref_form_type rft
         JOIN form f ON rft.form_type_id = f.form_type_id
    WHERE f.form_id = 2371420
    ;The WITH clause builds a normalized result set out of TBL_RESPONSE and FRM_RESPONSE.
    That result set is then joined in the main query for each section of the form.
    The resulting XML document looks like :
    <System>
      <FormTypeID>900</FormTypeID>
      <SystemName>ENROLLMENT</SystemName>
      <FormType>ENR</FormType>
      <FormID>2371420</FormID>
      <Sections>
        <Section>
          <SectionID>6750</SectionID>
          <SectionName>Personal Information</SectionName>
          <Attributes>
            <Attr>
              <AttrDesc>Enrollment Date</AttrDesc>
              <AttrName>ENROLLMENT_DATE</AttrName>
              <AttrID>30000</AttrID>
              <AttrValue>05/03/2011</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee&apos;s First Name</AttrDesc>
              <AttrName>ENROLLEE_FIRST_NAME</AttrName>
              <AttrID>30001</AttrID>
              <AttrValue>John</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee&apos;s Middle Initial</AttrDesc>
              <AttrName>ENROLLEE_MIDDLE_INIT</AttrName>
              <AttrID>30002</AttrID>
              <AttrValue>J</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee&apos;s Last Name</AttrDesc>
              <AttrName>ENROLLEE_LAST_NAME</AttrName>
              <AttrID>30003</AttrID>
              <AttrValue>Doe</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee&apos;s Work Phone Number</AttrDesc>
              <AttrName>ENROLLEE_WORK_PHONE</AttrName>
              <AttrID>30004</AttrID>
              <AttrValue>(555) 123-1234</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee Fax Number</AttrDesc>
              <AttrName>ENROLLEE_FAX</AttrName>
              <AttrID>30005</AttrID>
              <AttrValue>(555) 123-1235</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee&apos;s Work Extension</AttrDesc>
              <AttrName>ENROLLEE_EXT</AttrName>
              <AttrID>30006</AttrID>
              <AttrValue>1234567</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee&apos;s Email</AttrDesc>
              <AttrName>ENROLLEE_EMAIL</AttrName>
              <AttrID>30007</AttrID>
              <AttrValue>[email protected]</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee&apos;s Mailing Address #1</AttrDesc>
              <AttrName>ENROLLEE_MAIL_ADDR_1</AttrName>
              <AttrID>30008</AttrID>
              <AttrValue>10 Maple Street</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee&apos;s Mailing Address #2</AttrDesc>
              <AttrName>ENROLLEE_MAIL_ADDR_2</AttrName>
              <AttrID>30009</AttrID>
              <AttrValue>.</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee&apos;s State</AttrDesc>
              <AttrName>ENROLLEE_STATE</AttrName>
              <AttrID>30011</AttrID>
              <AttrValue>MA</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee&apos;s Zip</AttrDesc>
              <AttrName>ENROLLEE_ZIP</AttrName>
              <AttrID>30012</AttrID>
              <AttrValue>02668</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Enrollee&apos;s User Name</AttrDesc>
              <AttrName>ENROLLEE_USER_NAME</AttrName>
              <AttrID>30013</AttrID>
              <AttrValue>jdoe</AttrValue>
            </Attr>
          </Attributes>
        </Section>
        <Section>
          <SectionID>6800</SectionID>
          <SectionName>Company Information</SectionName>
          <Attributes>
            <Attr>
              <AttrDesc>Company&apos;s DB #</AttrDesc>
              <AttrName>DBNUM</AttrName>
              <AttrID>30014</AttrID>
              <AttrValue>123456789</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Company Name</AttrDesc>
              <AttrID>30015</AttrID>
              <AttrValue>My Company</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Company Adress #1</AttrDesc>
              <AttrID>30016</AttrID>
              <AttrValue>50 Main Street</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Company Adress #2</AttrDesc>
              <AttrID>30017</AttrID>
              <AttrValue>.</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Company City</AttrDesc>
              <AttrID>30018</AttrID>
              <AttrValue>Marstons Mills</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Company State</AttrDesc>
              <AttrID>30019</AttrID>
              <AttrValue>MA</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Company Zip</AttrDesc>
              <AttrID>30020</AttrID>
              <AttrValue>02648</AttrValue>
            </Attr>
            <Attr>
              <AttrDesc>Company Phone</AttrDesc>
              <AttrID>30021</AttrID>
              <AttrValue>(555) 123-1236</AttrValue>
            </Attr>
          </Attributes>
        </Section>
        <Section>
          <SectionID>6850</SectionID>
          <SectionName>Points of Contact</SectionName>
          <Attributes/>
        </Section>
        <Section>
          <SectionID>6900</SectionID>
          <SectionName>Enrollment Verification</SectionName>
          <Attributes/>
        </Section>
        <Section>
          <SectionID>6950</SectionID>
          <SectionName>Enrollment Confirmation</SectionName>
          <Attributes/>
        </Section>
      </Sections>
    </System>

  • XML to PLAIN - urgent help needed

    Hello everybody!
    I have a ftp receiver adapter; in this adapter a xml file should be converted to a plain text file.
    The structure looks like this:
    <ns0:MFG_ORDERS xmlns:ns0="urn:test.com:edi:test">
    <HEADER>
      <So_recordtype>SOHD</So_recordtype>
      <So_nbr>07096111</So_nbr>
      <So_cust>0210</So_cust>
      <So_bill>0210</So_bill>
      <So_ship>0210</So_ship>
      <So_date>20060516</So_date>
    </HEADER>
    <LINEITEMS>
      <Sod_recordtype>SOLI</Sod_recordtype>
      <Sod_line>001</Sod_line>
      <Sod_part>BO2224-88916000</Sod_part>
      <Sod_qty_ord>000100,00</Sod_qty_ord>
      <Sod_um>PCE</Sod_um>
      <LINEITEMTEXTS>
        <Solt_recordtype>SOLT</Solt_recordtype>
        <Solt_nbr>07096111</Solt_nbr>
        <Solt_line>00001</Solt_line>
        <Solt_counter>01</Solt_counter>
        <Solt_text>001 1 Line Item Text Example</Solt_text>
      </LINEITEMTEXTS>
      <LINEITEMTEXTS>
        <Solt_recordtype>SOLT</Solt_recordtype>
        <Solt_nbr>07096111</Solt_nbr>
        <Solt_line>00001</Solt_line>
        <Solt_counter>02</Solt_counter>
        <Solt_text>001 2 Line Item Text Example</Solt_text>
      </LINEITEMTEXTS>
    </LINEITEMS>
    </ns0:MFG_ORDERS>
    After conversion it should look like this:
    SOHD......
    SOLI....
    SOLT...
    SOLT...
    My problem is that the "LINEITEMTEXTS"-segments are subsegments of the "LINEITEMS"-segment which is not converted properly.
    Can anybody help me?

    Hi Moorthy,
    thank you very much for your quick help.
    I configured the communciation adapter according to your tips and the output was really better.
    As you know I have to specify either the the fixed lengths or the field separators. Otherwise I receive the error message "Parameter 'HEADER.fieldFixedLengths' or 'HEADER.fieldSeparator' is missing". As I do not want to work with fixed lengths I would prefer the field separators.
    This is how it looks at the moment (with defined field separator " " (blank); first separator after "SOLT", second after "07096111", ...):
    SOLT 07096111 00001 02 001 2 Line Item Text Example Line 2
    This is how it should look like:
    SOLT070961110000102001 2 Line Item Text Example Line 2
    Do you know if/how it is possible to specify a field separator without content that all fields are just in one row without any (visible) separator?
    Kind regards
    Christian

  • Document Publishing Approval Workflow - Help Needed

    Hello All,
    I am trying to use Publishing Documents with an Approval workflow, but however when I am creating a Document and am publishing it, it does not show up in the UWL of the Approver.
    Can some one suggest what could be wrong or missing.
    Best Wishes,
    John.

    Hi,
      I you have configured approval process and you are receiving notification in Recent Notification iview, it's working fine, you should check:
    The UWL interacts with (task) item providers through specific connector. The connectors perform basic mapping of attribute values and determine the work item type and execution method. Connectors also help in connection to object and attachment repositories to retrieve additional custom attributes or attachments.
    The UWL comes with standard provider connectors and it is possible to configure their detailed behavior based on work item types.
    The connectors that are configured by default with UWL are:
    ·        AdHocWorkflowConnector
    ·        ActionInboxConnector
    Both connectors are configured by default, so both Collaboration Tasks and KM Recent Notifications show up in the UWL by default. Removing the connectors will remove the corresponding items from the UWL.
    ActionInboxConnector
    This connector relates to the Notifications received by UWL from Knowledge Management (KM).
    The ActionInboxConnector provides KM Recent Notifications into the UWL Notification tab, which include document feedback, subscription items, subscription administration, and document approval notifications; in addition, checked out documents appear under Tracking, and documents for approval under Tasks.
    By default the Action Inbox Connector for UWL is enabled.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/12d65d4e084ac886fcdf113909d03a/frameset.htm
    Inbox Service
    http://help.sap.com/saphelp_nw2004s/helpdata/en/89/bbfbba3e7040c39462350fc536e651/frameset.htm
    Notifications for Folders in the Universal Worklist
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/ad743c74fa6449e10000000a11402f/frameset.htm
    Patricio.

  • Parameter help needed

    In the SQL below there are two types of adtypes 'preprint' and 'block'. There are 4 types of 'preprint's. If select 'preprint' adtype i want to add an other parameter to select one of the 4 type's of preprint's, if i select 'block' i don't want that parameter(:PreprintType) at all.
    Select *
    FROM      vw_PrintManifest prd
    WHERE     
      (AdTypeId        IN (:adType))
    --want this only if adtype is 'preprint'
    Select *
    FROM      vw_PrintManifest prd
    JOIN Preprint.PageType pt ON pt.ProductID = prd.ProductID
         JOIN Preprint.PageTypePreprintType ptpt ON ptpt.PageTypeID = pt.PageTypeID
    JOIN Preprint.PreprintType ppt ON ppt.PreprintTypeID = ptpt.PreprintTypeID
    WHERE     
      (AdTypeId        IN (:adType))   and    (ppt.PreprintTypeID IN (:PreprintType))How do i put these together in Inline-SQL. Or atleast can we put in a stored procedure ??? Please help me with the SQL..

    Hi,
    Here's one way:
    SELECT  *
    FROM     vw_PrintManifest          prd
    JOIN      Preprint.PageType           pt   ON   pt.ProductID          = prd.ProductID
    JOIN      Preprint.PageTypePreprintType      ptpt ON   ptpt.PageTypeID    = pt.PageTypeID
    JOIN     Preprint.PreprintType           ppt  ON   ppt.PreprintTypeID = ptpt.PreprintTypeID
    WHERE     (AdTypeId        IN (:adType))  
    AND     (   ppt.PreprintTypeID IN (:PreprintType)
         OR  :adType            != 'preprint'
         OR  :adType            IS NULL
    ;:PreprintType will only matter when :adType = 'preprint'.
    You can definitely do this in a stored procedure, too, using dynamic SQL. It will be more complicated, and more error-prone, but it may run faster.
    Be careful: from the way you're using IN, it looks like :adType might be a comma-delimited string, such as
    'X','Y'or
    X,YNeiither of the following 1-character strings
    X
    Yis equal to the 7- or 3-character strings shown earlier.
    See the following threads to see how to make dynamic IN-lists:
    http://www.oracle-base.com/articles/misc/DynamicInLists.php
    http://tkyte.blogspot.com/2006/06/varying-in-lists.html

  • Importing XML into Java.  Help needed Please!!!

    Hi,
    I have downloaded j2sdk1.4.1_05 and want to configure it to import XML files into a DOM in Java. I am having trouble doing this and need help. I read that version 1.4 support JAXP 1.1 but I am having trouble finding the JAXP-api.jar file. It says to put all the other Jar files into a folder and leave the JAXP-api.jar.
    Could you please tell me how to set up Java so that I can import an XML file. I also downloaded JAXP 1.2. But there seems to be no installer.
    Thanx John

    You can learn about reading xml in java by reading the J2EE tutorial at
    http://java.sun.com/j2ee/1.4/docs/tutorial/doc/
    Here is sample program to read XML file into a DOM taken from this tutorial
    (http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXPXSLT4.html)
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMException;
    import java.io.*;
    public class TransformationApp
      static Document document;
      public static void main(String argv[])
        if (argv.length != 1) {
          System.err.println (
            "Usage: java TransformationApp filename");
          System.exit (1);
        DocumentBuilderFactory factory =
          DocumentBuilderFactory.newInstance();
        //factory.setNamespaceAware(true);
        //factory.setValidating(true);
        try {
          File f = new File(argv[0]);
          DocumentBuilder builder =
            factory.newDocumentBuilder();
          document = builder.parse(f);
        } catch (SAXParseException spe) {
          // Error generated by the parser
          System.out.println("\n** Parsing error"
            + ", line " + spe.getLineNumber()
            + ", uri " + spe.getSystemId());
          System.out.println("  " + spe.getMessage() );
          // Use the contained exception, if any
          Exception x = spe;
          if (spe.getException() != null)
            x = spe.getException();
          x.printStackTrace();
        } catch (SAXException sxe) {
          // Error generated by this application
          // (or a parser-initialization error)
          Exception x = sxe;
          if (sxe.getException() != null)
            x = sxe.getException();
          x.printStackTrace();
        } catch (ParserConfigurationException pce) {
          // Parser with specified options can't be built
          pce.printStackTrace();
        } catch (IOException ioe) {
          // I/O error
          ioe.printStackTrace();
      } // main
    } If you have java 1.4 sdk installed everything should compile and run. Separate
    JAXP package is nor required - JAXP is included in rt.jar in java-home-directory/jre/lib.

  • ToDO List doesn't show up on published calendar?HELP NEEDED

    I'm new to iCal. I've checked off the correct box to publish Alarms and ToDo List. When I view the published calendar in a Safari window, I can't see the ToDo list anywhere....all I see is the Calendar and "This Month's Events" at the bottom of the page. I want to be able to view the ToDo list via the web, but how?
    Thanks

    The .Mac webview of calendars only supports appointments, not tasks. Your tasks are actually published, so if anyone subscribes with iCal, they could see the tasks, but the browser doesn't display them. If you have access to a server to run a custom web calendar app, you could try phpicalendar. This works on the same principle as the .Mac server & parses the iCalendar file for display in a web page. It does support task display.

  • Flash and publishing for iOS (Help Needed)

    I currently own Adobe Create Suite 3 Design Premium.  I just recently heard that CS 5.5 can develop iOS Apps.  So I downloaded trial 2 days ago and thought I would see if I  could develop some apps and if things go well upgrade.
    Here is the issue I'm running into.  I created the CSR file with openssl since I don't own a mac, only a windows 7 based pc.  Apples developers program accepted my CSR and created the provisioning file for it.
    However, when I go to publish the for iOS it asks for a .p12 file.  I found online that is my CSR file.  However, it asks for a password.  I have no password for it.  It does not allow leaving the password field blank, and anything I put in it is incorrect.
    All I need help with is the .p12 file and getting past the password and I will be good to go.
    Anyone know a step by step guide or could walk me though this part.  Thank you and I greatly appreciate it.
    ~Chris

    the only thing is that i havent got a password set to my computer but i will have a look in to that thanks for the help

  • XML Publisher (now BI Publisher) reports without Using RDF

    Hi All,
    We am trying to generate XML Publisher (now BI Publisher) reports from Oracle EBS reports without Using RDF.
    We have generated the required report using RDF however as we are trying to move away from RDF, we are looking for this type of solution (i.e without RDF). We simply want to use SQL query for XML output.
    I tried to generate XML output from a concurrent program which is a SQL query however the output doesn't come out in proper XML format.
    I am sure this can be done through XML publisher using pl/sql procedure. By using a procedure and using the function DBMS_XMLGEN.getxml to generate the output in XML format & storing it in a variable declared as CLOB type. The reports are running fine smaller result set but its giving error "Value or Numeric Error' for larger resul set. Following is the way i am using the function:
    select DBMS_XMLGEN.GETXML('select * from dual') into result from dual;
    Where result is declared as CLOB Type.
    Can anyone help please?
    Thanks.

    I used a different approach.
    I registered a concurrent program with executable as XDODTEXE and output as XML.
    I added a XML data definition (which contains my SQL query) on XML Publsiher admin and Registerd a template against that XML data definition.
    This solved my problem.
    Thanks all.

  • Can i use XML publisher in a c/s enviroment?

    Hi. I'd like to know whether it's possible to use XML Publisher in a C/S enviroment. We're still using reports and forms 6i in C/S. I'd like to know whether one can use the client version of XML to build custom reports (invoices for instance).
    Thanks in advance ...!

    Hi. my main concern is whether one can use XML publisher in a Client / Server enviroment. What this mean is :
    If it's possible not to use the middle tier: the J2EE container thing?. Put in other words, keep it simpler: just use a client that process XML data (probably using 10g facilities). Use the desktop client of XML publisher to access an Oracle Database or some xml files and use this to configure custom invoice reports for example. Our application is still on forms and reports 6i (C/S). Since there are certain limitations in customising the layout model on reports, i've been advised to consider XML publisher. So i don't really need to use forms or reports 6i with XML publisher. What i need is access to an Oracle Database from a desktop client (or have the DB generate an XML file) and be still C/S. I don't want the complexity of the three tier arquitecture yet.
    Best regards, Luis ...!

Maybe you are looking for

  • Alert messages from Notification Center hang after using close button

    After opening my MacBook in the morning, Notification Center displays the alerts from my Calender (I realy like this new feature!). Problem When I click the Close Button on an Alert Message the Alert Message does not close but stops responding and st

  • How do you uncheck songs and TV shows in iTunes?

    I have iTunes 12.1.0.50. Everytime I try to uncheck a box an exclamation point in a circle pops up. Its extremely frustrating and I can't figure it out.

  • ISE Inline Node

    I have an ISE Inline Node that I successfully added to my admin ISE node.  After I added the inline node, I wasn't able to configure it until later.  When I went back to edit the configuration, the admin node says it is not able to communicate with t

  • Which version of windows 7 should i install

    I've installed Parallels and now wish to run Windows for the odd application. Does anyone know which is the best version of Windows 7 to install ( Home Premium, Professional, Ultimateetc) Also 32 or 64 bit? Grateful for any advice

  • Combining two like cd's into one in my library

    how do i combine two like cd's into one