Rendering xml in apex 4.2

Hi,
After upgrading to APEX 4.2 I can not see the reference to swf file like below code from 4.1 version.
How can I do this?
Thanks.
<embed src="/i/flashchart/anygantt_4/swf/AnyGantt.swf?XMLFile=http://fedora.doosanimgb.com:8080/apex/apex_util.flash?p=121:4:548438967075279:FLOW_FLASH_CHART5_R3595001622092988_en"
quality="high"
width="1200"
height="600"
name="c3595001622092988"
scale="noscale"
align=""
allowScriptAccess="sameDomain"
allowNetworking="all"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
wmode="transparent"
FlashVars="initText=Initializing...&xmlLoadingText=Loading data...&resourcesLoadingText=Loading resources...&noDataText=No data found.&waitingForDataText=Loading data. Please wait.&templatesLoadingText=Loading templates...">
</embed>

Hello Gabriel,
Just changed the res chart query from:
SELECT NULL          LINK,
       em1.EMPno        ID,          
       em1.ename         NAME,         
       null     PARENT_ID,  
       to_timestamp(to_char(sysdate + rownum,'dd-mon-yyyy hh24:mi'),'dd-mon-yyyy hh24:mi')    ACTUAL_START,
       to_timestamp(to_char(sysdate + rownum +10/24,'dd-mon-yyyy hh24:mi'),'dd-mon-yyyy hh24:mi')      ACTUAL_END    
FROM   emp em1,
           emp em2to
SELECT NULL          LINK,
       em1.EMPno        ID,          
       em1.ename         NAME,         
       null     PARENT_ID,  
       to_timestamp(to_char(sysdate + rownum,'dd-mon-yyyy hh24:mi'),'dd-mon-yyyy hh24:mi')    ACTUAL_START,
       to_timestamp(to_char(sysdate + rownum +10/24,'dd-mon-yyyy hh24:mi'),'dd-mon-yyyy hh24:mi')      ACTUAL_END    
FROM   emp em1After upgrading to APEX 4.2 I can not see the reference to swf file like below code from 4.1 version.
>
Yes indeed the Region Source for Charts is not shown in 4.2. But don't know why!
<embed src="/i/flashchart/anygantt_4/swf/AnyGantt.swf?XMLFile=http://fedora.doosanimgb.com:8080/apex/apex_util.flash?p=121:4:548438967075279:FLOW_FLASH_CHART5_R3595001622092988_en"
quality="high"
width="1200"
height="600"
name="c3595001622092988"
scale="noscale"
align=""
allowScriptAccess="sameDomain"
allowNetworking="all"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer"
wmode="transparent"
FlashVars="initText=Initializing...&xmlLoadingText=Loading data...&resourcesLoadingText=Loading resources...&noDataText=No data found.&waitingForDataText=Loading data. Please wait.&templatesLoadingText=Loading templates...">
</embed>Hope it helps!
Regards,
Kiran

Similar Messages

  • Rendering XML?

    I created new "PolicyPropertyBundle" and binding it with my class object("MYTESTING")
    ,but 'type test.xml' returns "The system cannot find the file specified."
    following is data of mytesting object.
    Isn't it very simple?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    select * from odm_mytesting;
    ID
    TITLE
    AUTHOR
    OPERATOR
    COMPANY
    9634
    ACT ON EXTERNAL AUDIT
    Veronica
    kyoungseop
    01 inc
    <HR></BLOCKQUOTE>
    I think all of servers started well.
    log files does not report any error.
    I tried to Render into browser by following direction.
    http://technet.oracle.com:89/ubb/Forum36/HTML/000444.html
    but 'Document.renderAsReader("SmbRenderer",null,null)' returns null.
    what's going on?
    There are big problems, but I don't know how to solve them and where they are.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    public Reader getContent()
    System.out.println("in getContent() m_XmlDocument:"+m_XmlDocument);
    Reader r=null;
    try
    System.out.println("m_XmlDocument.renderAsReader('SmbRenderer',null,null)");
    r = m_XmlDocument.renderAsReader("SmbRenderer",null,null);
    System.out.println("Reader getContent()"+r);
    catch (IfsException ie)
    System.out.println("exception in getContent() reader="+r);
    ie.printStackTrace();
    return r;
    <HR></BLOCKQUOTE>
    java web server's message
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    javawebserver: XmlRendererBean(request,response): Bean Created.
    javawebserver: obtainSession(request,response): Servlet Parameters =
    javawebserver: Parameter List:
    javawebserver: path
    javawebserver: Parameter Processing Completed.
    javawebserver: JspUtilities.obtainSession: Unable to get Session. - Attempting to create new Session
    javawebserver: JspUtilities.obtainSession: Creating new Session.
    javawebserver: Username = ksko
    javawebserver: Password = ksko
    javawebserver: Service = IfsDefault
    javawebserver: Schema Password = ifssys
    javawebserver: JspUtilities.obtainSession: Session Created.
    javawebserver: JspUtilities.obtainSession: Login Object Saved.
    javawebserver: getObject(request,response): Path = /home/ksko/testingfolder/test.xml
    javawebserver: else
    javawebserver: Public object =test.xml
    javawebserver: getObject(request,response): Object is a MYTESTING
    javawebserver: PublicObject.getResolvedPublicObject() =test.xml
    javawebserver: in getContent() m_XmlDocument:test.xml
    javawebserver: m_XmlDocument.renderAsReader('SmbRenderer',null,null)
    javawebserver: Reader getContent()null
    javawebserver: xmlBean.getContent()
    javawebserver: new BufferedReader(reader)
    javawebserver: Error during JSP page processing: /ifs/jsp-bin/XmlRendererJSP.jsp
    javawebserver: java.lang.NullPointerException
    <HR></BLOCKQUOTE>
    Renderring page's message
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    Error during JSP page processing
    java.lang.NullPointerException
    at java.io.BufferedReader.readLine(Compiled Code)
    at ifs.jsp_sbin._XmlRendererJSP._jspService(Compiled Code)
    at oracle.ifs.protocols.http.jsp.pagecompile.jsp.runtime.HttpJspBase.service(HttpJspBase.java:94)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at oracle.ifs.protocols.http.jsp.IfsJspServlet.runServlet(IfsJspServlet.java:865)
    at oracle.ifs.protocols.http.jsp.IfsJspServlet.processJspPage(Compiled Code)
    at oracle.ifs.protocols.http.jsp.IfsJspServlet.service(IfsJspServlet.java:240)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at com.sun.server.ServletState.callService(Compiled Code)
    at com.sun.server.ServletManager.callServletService(Compiled Code)
    at com.sun.server.ProcessingState.invokeTargetServlet(Compiled Code)
    at com.sun.server.http.HttpProcessingState.execute(Compiled Code)
    at com.sun.server.http.stages.Runner.process(Compiled Code)
    at com.sun.server.ProcessingSupport.process(Compiled Code)
    at com.sun.server.Service.process(Compiled Code)
    at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code)
    at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code)
    at com.sun.server.HandlerThread.run(Compiled Code)
    <HR></BLOCKQUOTE>

    Thanks Mark.
    Finally I got rendered xml files from iFS repository....
    I appreciate your continuous help..
    m_XmlDocument.renderAsReader("SmbRenderer","SmbXmlRenderer",null);
    and
    m_XmlDocument.renderAsStream("SmbRenderer","SmbXmlRenderer",null);
    work....
    rest of them does not.
    Even though the result is not what I want, it is too simple, I am glad to see that.
    Thanks again Mark..
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    If rendererName is not null, the Policy named rendererName for the operation specified by rendererType is obtained. The fully-qualified classname of the Renderer is contained in the IMPLEMENTATION attribute of that Policy.
    If rendererName is null, the default Policy for this LibraryObject for the operation specified by rendererType is obtained. The fully- qualified classname of the Renderer is contained in the IMPLEMENTATION attribute of that Policy.
    <HR></BLOCKQUOTE>

  • Problem with XML in APEX ORA-06502

    i, I have a problem with XML generation, I developed an application in APEX, and in a html page I have this process:
    declare
    l_XML varchar2(32767);
    begin
    select xmlElement
    "iva",
    xmlElement("numeroRuc",J.RUC),
    xmlElement("razonSocial", J.RAZON_SOCIAL),
    xmlElement("idRepre", J.ID_REPRE),
    xmlElement("rucContador", J.RUC_CONTADOR),
    xmlElement("anio", J.ANIO),
    xmlElement("mes", J.MES),
    xmlElement
    "compras",
    select xmlAgg
    xmlElement
    "detalleCompra",
    --xmlAttributes(K.ID_COMPRA as "COMPRA"),
    xmlForest
    K.COD_SUSTENTO as "codSustento",
    K.TPLD_PROV as "tpldProv",
    K.ID_PROV as "idProv",
    K.TIPO_COMPROBANTE as "tipoComprobante",
    to_char(K.FECHA_REGISTRO, 'DD/MM/YYYY') as "fechaRegistro",
    K.ESTABLECIMIENTO as "establecimiento",
    K.PUNTO_EMISION as "puntoEmision",
    K.SECUENCIAL as "secuencial",
    to_char(K.FECHA_EMISION, 'DD/MM/YYYY') as "fechaEmision",
    K.AUTORIZACION as "autorizacion",
    to_char(K.BASE_NO_GRA_IVA, 9999999999.99) as "baseNoGraIva",
    to_char(K.BASE_IMPONIBLE, 9999999999.99) as "baseImponible",
    to_char(K.BASE_IMP_GRAV, 9999999999.99) as "baseImpGrav",
    to_char(K.MONTO_ICE, 9999999999.99) as "montoIce",
    to_char(K.MONTO_IVA, 9999999999.99) as "montoIva",
    to_char(K.VALOR_RET_BIENES, 9999999999.99) as "valorRetBienes",
    to_char(K.VALOR_RET_SERVICIOS, 9999999999.99) as "valorRetServicios",
    to_char(K.VALOR_RET_SERV_100, 9999999999.99) as "valorRetServ100"
    xmlElement
    "air",
    select xmlAgg
    xmlElement
    "detalleAir",
    xmlForest
    P.COD_RET_AIR as "codRetAir",
    to_char(P.BASE_IMP_AIR, 9999999999.99) as "baseImpAir",
    to_char(P.PORCENTAJE_AIR, 999.99) as "porcentajeAir",
    to_char(P.VAL_RET_AIR, 9999999999.99) as "valRetAir"
    from ANEXO_COMPRAS P
    where P.ID_COMPRA = K.ID_COMPRA
    AND P.ID_INFORMANTE_XML = K.ID_INFORMANTE_XML
    xmlElement("estabRetencion1", K.ESTAB_RETENCION_1),
    xmlElement("ptoEmiRetencion1", K.PTO_EMI_RETENCION_1),
    xmlElement("secRetencion1", K.SEC_RETENCION_1),
    xmlElement("autRetencion1", K.AUT_RETENCION_1),
    xmlElement("fechaEmiRet1", to_char(K.FECHA_EMI_RET_1,'DD/MM/YYYY')),
    xmlElement("docModificado", K.DOC_MODIFICADO),
    xmlElement("estabModificado", K.ESTAB_MODIFICADO),
    xmlElement("ptoEmiModificado", K.PTO_EMI_MODIFICADO),
    xmlElement("secModificado", K.SEC_MODIFICADO),
    xmlElement("autModificado", K.AUT_MODIFICADO)
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    AND K.ID BETWEEN 1 AND 25
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    declare
    l_XML CLOB;
    begin
    --Oculta XML
    sys.htp.init;
    wwv_flow.g_page_text_generated := true;
    wwv_flow.g_unrecoverable_error := true;
    --select XML
    select xmlElement
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+

    JohannaCevallos07 wrote:
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+The likeliest explanation for this is that length of the XML exceeds 32K, which is the maximum size that <tt>htp.p</tt> can output. A CLOB can store much more than this, so it's necessary to buffer the output as shown in +{message:id=4497571}+
    Help us to help you. When you have a problem include as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    And always post code wrapped in <tt>\...\</tt> tags, as described in the FAQ.
    Thanks

  • Problem rendering html in Apex 3.1

    I recently upgraded an older 2.0 app to Apex 3.1. In the app, I have a few textarea with html editor fields so the user can customize page instructions. In 2.0, I was able to query the database and store the text in a hidden item, then reference the value of that item in an html region for the text to render correctly. (EX: Region Header has a source of &P100_HEADER_TEXT.)
    Now, in Apex 3.1, this no longer works. Instead, it is showing all of the html tags. If I copy and paste the contents of the hidden value directly, the html is rendered. If I change the hidden item to display as text, it is formatted correctly, but the alignment I had set up previously is off.
    I have numerous regions like this and would like to avoid having to go through and reformat all my pages. Does anyone have any suggestions?
    Thanks!

    Hi Scott,
    Yes, I was able to get it to work by adjusting my item to display as text (does not save state). However, previously I was able to compute a hidden item and use the value of the item as the source of an html region, or header for any other region, and it would render correctly. So, if the value of item p100_directions was "Please enter all valid information" in bold, previously it would display in bold. After the upgrade, it would display with the html tags around it.
    I will workaround with the display as text functionality.
    Thanks!

  • Error when running ireport xml on apex using pL-JRxml2pdf

    Hi,
    I have created a report and it runs successfully on Jasper ireport but when I copied the xml to the apex in pL-JRxml2pdf and tried to preview it it gave me the error below:
    ORA-06502: PL/SQL: numeric or value error: dbms_sql.describe_columns overflow, col_name_len=35. Use describe_columns2
    Please assist.

    Mr.Andreas I've already sent my question before to post it there but no one replied to me.
    the xml which is working fine on ireport:
    <?xml version="1.0" encoding="UTF-8"?>
    <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="pharmacy2014" language="groovy" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="dd1428eb-8306-47c8-881c-1b53b576b8b6">
      <property name="ireport.zoom" value="1.0"/>
      <property name="ireport.x" value="0"/>
      <property name="ireport.y" value="60"/>
      <queryString>
      <![CDATA[select pare.mmr,pare.FIRSTNAME||' '||pare.FAMILYNAME,ep.EPISODEID,ep.admission,ep.DISCHARGE,pade.packagename,inor.orderid,inor.QUANTITY,orit.DESCRIPTION,orit.PRICE
    from PATIENTSREGISTRATION pare inner join EPISODE ep on (pare.mmr = ep.mmr)
    full join PACKAGEDEAL pade on (pade.PACKAGEID = ep.PACKAGE)
    full join INPATIENTORDER inor on(inor.EPISODEID = ep.EPISODEID)
    full join ORDERITEMS orit on (orit.ORDERID = inor.ORDERID)
    where ep.episodeid=2046]]>
      </queryString>
      <field name="MMR" class="java.math.BigDecimal"/>
      <field name="PARE.FIRSTNAME||&apos;&apos;||PARE.FAMILYNAME" class="java.lang.String"/>
      <field name="EPISODEID" class="java.math.BigDecimal"/>
      <field name="ADMISSION" class="java.sql.Timestamp"/>
      <field name="DISCHARGE" class="java.sql.Timestamp"/>
      <field name="PACKAGENAME" class="java.lang.String"/>
      <field name="ORDERID" class="java.lang.String"/>
      <field name="QUANTITY" class="java.math.BigDecimal"/>
      <field name="DESCRIPTION" class="java.lang.String"/>
      <field name="PRICE" class="java.math.BigDecimal"/>
      <variable name="TotalPerItem" class="java.lang.Double">
      <variableExpression><![CDATA[$F{QUANTITY}*$F{PRICE}]]></variableExpression>
      </variable>
      <variable name="TotalDue" class="java.lang.Double" calculation="Sum">
      <variableExpression><![CDATA[$V{TotalPerItem}]]></variableExpression>
      </variable>
      <background>
      <band splitType="Stretch"/>
      </background>
      <title>
      <band height="126" splitType="Stretch">
      <staticText>
      <reportElement uuid="33d865d1-eefd-4151-816e-5a43563072ed" x="101" y="0" width="351" height="48"/>
      <textElement textAlignment="Center">
      <font fontName="Monospaced" size="28" isBold="true" isUnderline="false"/>
      </textElement>
      <text><![CDATA[Pharmacy Report]]></text>
      </staticText>
      <staticText>
      <reportElement uuid="abc684c0-fdcc-4bda-b87c-46f2ec871fe1" x="0" y="83" width="87" height="20"/>
      <textElement/>
      <text><![CDATA[Report Date:]]></text>
      </staticText>
      <staticText>
      <reportElement uuid="a1ec3467-dbda-415a-80f3-597d422fb6fb" x="0" y="103" width="87" height="20"/>
      <textElement/>
      <text><![CDATA[Admission Date:]]></text>
      </staticText>
      <staticText>
      <reportElement uuid="d3cf4575-0255-4a57-ba6f-d8fe73205b1c" x="351" y="82" width="87" height="20"/>
      <textElement/>
      <text><![CDATA[Discharge Date:]]></text>
      </staticText>
      <textField pattern="dd/MM/yyyy h.mm a">
      <reportElement uuid="9f649db1-8fee-4aa5-a719-2b6930f3b434" x="87" y="84" width="100" height="20"/>
      <textElement/>
      <textFieldExpression><![CDATA[new java.util.Date()]]></textFieldExpression>
      </textField>
      <textField>
      <reportElement uuid="64de1f0d-f5ef-4142-bdde-42926376ad3c" x="87" y="104" width="100" height="20"/>
      <textElement/>
      <textFieldExpression><![CDATA[$F{ADMISSION}]]></textFieldExpression>
      </textField>
      <textField>
      <reportElement uuid="f4f3d6cb-7442-486b-8738-5c427e819909" x="438" y="82" width="100" height="20"/>
      <textElement/>
      <textFieldExpression><![CDATA[$F{DISCHARGE}]]></textFieldExpression>
      </textField>
      </band>
      </title>
      <pageHeader>
      <band height="55" splitType="Stretch">
      <staticText>
      <reportElement uuid="e420994a-235d-4530-8360-e876c8ae40b6" x="0" y="8" width="100" height="20"/>
      <textElement>
      <font size="10" isBold="true" isItalic="false"/>
      </textElement>
      <text><![CDATA[MMR NO.]]></text>
      </staticText>
      <staticText>
      <reportElement uuid="1978f81a-f9a5-4675-8628-7c0ceb48e9d2" x="0" y="29" width="100" height="20"/>
      <textElement>
      <font size="10" isBold="true" isItalic="false"/>
      </textElement>
      <text><![CDATA[PATIENT NAME]]></text>
      </staticText>
      <textField>
      <reportElement uuid="ae113a7d-51c3-49a2-b79c-94d57e078f7f" x="101" y="9" width="285" height="20"/>
      <textElement/>
      <textFieldExpression><![CDATA[$F{MMR}]]></textFieldExpression>
      </textField>
      <textField>
      <reportElement uuid="fbdf24b3-4dd4-4c8b-b766-2d5f5fb65f84" x="100" y="29" width="288" height="20"/>
      <textElement/>
      <textFieldExpression><![CDATA[$F{PARE.FIRSTNAME||''||PARE.FAMILYNAME}]]></textFieldExpression>
      </textField>
      <line>
      <reportElement uuid="0a11e615-f74d-404d-8a8c-542db62ea786" x="1" y="49" width="554" height="1"/>
      </line>
      </band>
      </pageHeader>
      <columnHeader>
      <band height="50" splitType="Stretch">
      <staticText>
      <reportElement uuid="c4d62eda-bc1d-42cf-888f-60da313ed021" x="469" y="30" width="64" height="19" forecolor="#000000" backcolor="#CCCCCC"/>
      <textElement textAlignment="Left">
      <font isBold="true" isUnderline="true"/>
      </textElement>
      <text><![CDATA[Total]]></text>
      </staticText>
      <staticText>
      <reportElement uuid="d9df5da5-eab5-4c65-9265-9133f9e720ab" x="305" y="31" width="100" height="19" forecolor="#000000" backcolor="#CCCCCC"/>
      <textElement textAlignment="Left">
      <font isBold="true" isUnderline="true"/>
      </textElement>
      <text><![CDATA[QTY]]></text>
      </staticText>
      <staticText>
      <reportElement uuid="01dc4561-b521-4ab9-aa23-bdc9bc4ff870" x="0" y="30" width="212" height="20" forecolor="#000000" backcolor="#CCCCCC"/>
      <textElement textAlignment="Left">
      <font isBold="true" isUnderline="true"/>
      </textElement>
      <text><![CDATA[Description]]></text>
      </staticText>
      <staticText>
      <reportElement uuid="3bd3288c-40d9-4ab3-abab-19196f6112c5" x="405" y="31" width="64" height="19" forecolor="#000000" backcolor="#CCCCCC"/>
      <textElement textAlignment="Left">
      <font isBold="true" isUnderline="true"/>
      </textElement>
      <text><![CDATA[Price]]></text>
      </staticText>
      <staticText>
      <reportElement uuid="be12f0d4-1cfd-48ac-b207-b58cd22267d1" x="0" y="0" width="79" height="20" forecolor="#000000" backcolor="#CCCCCC"/>
      <textElement textAlignment="Left">
      <font isBold="true" isUnderline="true"/>
      </textElement>
      <text><![CDATA[Package Name:]]></text>
      </staticText>
      <textField>
      <reportElement uuid="29994cd4-59a9-4d7e-b7d0-56114e0bb198" x="79" y="0" width="430" height="20"/>
      <textElement/>
      <textFieldExpression><![CDATA[$F{PACKAGENAME}]]></textFieldExpression>
      </textField>
      </band>
      </columnHeader>
      <detail>
      <band height="29" splitType="Stretch">
      <textField>
      <reportElement uuid="fea937c7-db92-4d99-9ba2-ba5973fe80e9" x="0" y="0" width="305" height="28"/>
      <textElement/>
      <textFieldExpression><![CDATA[$F{DESCRIPTION}]]></textFieldExpression>
      </textField>
      <textField>
      <reportElement uuid="8a46e1b4-01fb-45ad-96d8-e23ecbb5d0c7" x="305" y="0" width="100" height="28"/>
      <textElement/>
      <textFieldExpression><![CDATA[$F{QUANTITY}]]></textFieldExpression>
      </textField>
      <textField>
      <reportElement uuid="f27bd251-ac0e-407e-8778-fe09eb91bfb5" x="405" y="0" width="64" height="28"/>
      <textElement/>
      <textFieldExpression><![CDATA[$F{PRICE}]]></textFieldExpression>
      </textField>
      <textField>
      <reportElement uuid="fad53b1c-cb81-470c-bb2c-de490b5f981d" x="469" y="0" width="64" height="28"/>
      <textElement/>
      <textFieldExpression><![CDATA[$V{TotalPerItem}]]></textFieldExpression>
      </textField>
      </band>
      </detail>
      <columnFooter>
      <band height="80" splitType="Stretch">
      <staticText>
      <reportElement uuid="1aec00ca-e067-4616-888f-abcbee0e5e51" x="398" y="30" width="157" height="50"/>
      <textElement textAlignment="Right">
      <font size="8"/>
      </textElement>
      <text><![CDATA[PO BOX Jeddah 21353
    Saudi Arabia
    Tel: +966 - 2 - 2292222
    Fax: + 966 - 2 2292222
    www.almashfa.com]]></text>
      </staticText>
      <rectangle>
      <reportElement uuid="9d0a82c5-625a-466d-8691-49e9114b69cf" x="80" y="1" width="337" height="20" forecolor="#999999" backcolor="#999999"/>
      </rectangle>
      <staticText>
      <reportElement uuid="71445699-fc2d-4fa0-bab1-1098eba756cf" x="101" y="1" width="299" height="20" backcolor="#999999"/>
      <textElement textAlignment="Center" verticalAlignment="Middle">
      <font size="11" isBold="true" isItalic="false"/>
      </textElement>
      <text><![CDATA[We Value Your Health ]]></text>
      </staticText>
      </band>
      </columnFooter>
      <summary>
      <band height="22" splitType="Stretch">
      <staticText>
      <reportElement uuid="597004a3-0ae9-43a0-beaf-5bdd9103db52" x="405" y="0" width="64" height="20"/>
      <textElement>
      <font isUnderline="true"/>
      </textElement>
      <text><![CDATA[TOTAL DUE:]]></text>
      </staticText>
      <textField pattern="###0.00;(###0.00)" isBlankWhenNull="true">
      <reportElement uuid="1f7381a9-fea6-4af9-be01-fb01e9d7aa96" x="469" y="0" width="86" height="20"/>
      <textElement/>
      <textFieldExpression><![CDATA[$V{TotalDue}]]></textFieldExpression>
      </textField>
      </band>
      </summary>
    </jasperReport>

  • Error generating XML in Apex 4.1.1

    Hi,
    please, I need your help. I have an XML develped in APEX with this process:
    declare
    begin
    select xmlElement(
    "iva",
    xmlElement("numeroRuc",J.RUC),
    xmlElement("mes", J.MES),
    xmlElement(
    "compras", (
    select xmlAgg(
    xmlElement(
    "detalleCompra",
    xmlElement("codSustento", K.COD_SUSTENTO),
    xmlElement("tpldProv", K.TPLD_PROV ),
    xmlElement("idProv", K.ID_PROV ),
    xmlElement("tipoComprobante", K.TIPO_COMPROBANTE),
    xmlElement("fechaRegistro",to_char(K.FECHA_REGISTRO, 'DD/MM/YYYY') ),
    xmlElement("establecimiento", K.ESTABLECIMIENTO ),
    xmlElement("puntoEmision", K.PUNTO_EMISION ),
    xmlElement("secuencial", K.SECUENCIAL),
    xmlElement("fechaEmision", to_char(K.FECHA_EMISION, 'DD/MM/YYYY') ),
    xmlElement("autorizacion", K.AUTORIZACION ),
    xmlElement("baseNoGraIva", K.BASE_NO_GRA_IVA ),
    xmlElement("baseImponible", K.BASE_IMPONIBLE ),
    xmlElement("baseImpGrav", K.BASE_IMP_GRAV ),
    xmlElement("montoIce", K.MONTO_ICE ),
    xmlElement("montoIva", K.MONTO_IVA ),
    xmlElement("valorRetBienes", K.VALOR_RET_BIENES),
    xmlElement("valorRetServicios",K.VALOR_RET_SERVICIOS),
    xmlElement("valorRetServ100",K.VALOR_RET_SERV_100),
    xmlElement("estabRetencion1", K.ESTAB_RETENCION_1),
    xmlElement("ptoEmiRetencion1", K.PTO_EMI_RETENCION_1),
    xmlElement("secRetencion1", K.SEC_RETENCION_1),
    xmlElement("autRetencion1", K.AUT_RETENCION_1),
    xmlElement("fechaEmiRet1", to_char(K.FECHA_EMI_RET_1,'DD/MM/YYYY')),
    xmlElement("docModificado", K.DOC_MODIFICADO),
    xmlElement("estabModificado", K.ESTAB_MODIFICADO),
    xmlElement("ptoEmiModificado", K.PTO_EMI_MODIFICADO),
    xmlElement("secModificado", K.SEC_MODIFICADO),
    xmlElement("autModificado", K.AUT_MODIFICADO)
    xmlElement(
    "air", (
    select xmlAgg (
    xmlElement (
    "detalleAir",
    xmlForest (
    P.COD_RET_AIR as "codRetAir",
    from ANEXO_COMPRAS P
    from SRI_COMPRAS K
    ).getClobVal()
    into l_clob_XML
    from ...
    LOOP
    buffer := DBMS_LOB.SUBSTR(l_clob_XML, text_1, text_2);
    EXIT WHEN buffer IS NULL;
    --proceso para preparar la informacion
    sys.htp.p(buffer);
    text_1 := text_1 + text_2;
    END LOOP;
    end;
    but I have a problem, because the "SRI_COMPRAS" table has 38 columns with 950 rows, and the xml is generated only when considering the first 14 columns in that table with all existing records. But I need generate this XML with all the columns of "SRI_COMPRAS".
    The error generate is: *"error on line 2 at column 1: expect '>'"*
    Edited by: JohannaCevallos07 on Sep 27, 2012 3:25 PM

    AdamQ wrote:
    Why is apex_application.add_validation_error deleted in Apex 4.1?What version were you using?
    I thought this was a supported API.Why? It wasn't documented. Off the map there be dragons:
    +{thread:id=294789}+
    +{thread:id=2295323}+
    Always better to seek clarification before tickling their tails:
    +{thread:id=2321397}+
    (I'm waiting patiently...)
    Re: How to create an Apex 3.1 a session context programmatically? contributes to the confusion: that kind of thing is interesting and helpful (unit test package code that references APEX collections) but you use it at your own risk, with appropriate circumspection when it comes to inclusion in production code.
    In my opinion it's bad practice on Oracle's part to include private/unpublished methods in the same packages as public/published APIs. Instead of the {noformat}<tt>apex_*</tt>{noformat} APIs consisting of synonyms on {noformat}<tt>wwv_*</tt>{noformat} objects they should be wrapper packages that only expose public, documented methods&mdash;and preferably these public packages should be in their own schema. Wouldn't hurt performance too much would it? (Guess I'll have to benchmark that...)
    Another question is why not all of the {noformat}<tt>wwv_*</tt>{no format} package bodies are wrapped to limit off-road exploration and subsequent exposure of undocumented methods?

  • BIP 11g default xml for apex

    BI Publisher 11.1.1.5.0
    The problem is that Publisher generates XML templates that is not supported by apex by default.
    For example default xml data model based on SQL Query is like
    <?xml version="1.0" encoding="UTF-8"?>
    <DATA_DS>
    <G_1>
    <Q>X</Q>
    </G_1>
    </DATA_DS>Corresponding rtf template is
    <?for-each-group:G_1;./Q?><?Q?><?end for-each-group?>But APEX expects it to be like this
    <?for-each-group:ROW;./Q?><?Q?><?end for-each-group?>because for the same SQL it generates xml as follow
    <?xml version="1.0" encoding="UTF-8"?>
    <ROWSET>
    <ROW>
    <Q>X</Q>
    </ROW>
    </ROWSET>I know the xml of data model can be overridden individually.
    Is it possible to adjust default generating xml and fix corresponding G_X BIP tags to apex xml tags ?
    Regards,
    Igor

    one of the way u can manually edit the group name in Data Model - Structure tab .
    i don't think u can make it by default to come with ROW as far as i know for all the reports we develop unless u make one time change in data model structure tabf for every data model we create.

  • Rendering XML output (with large number of columns) to browser breaks

    We have a stored procedure in our database which returns a cursor with over 400 columns.  When we call the stored procedure from within the QT (using mode FixedQueryWithOutput), it renders just fine and very quickly in CSV format.  however, when we attempt to render it (e.g. post it) as HTML format or XML format, it takes a very long time to render (even thought the results come back very quickly). 
    We are using the following specs:
    OS:  Microsoft Vista
    Browser:  IE (v7.0)
    Java:  Java 6, patch 20 (plug-in disabled)
    Any hints/help would be greatly appreciated!

    Hi Aaron,
    Can you limit the output to a very few rows on the 400 columns you have to render?  It might be a memory or a XML parser constraint on the output client.
    Other option: save the XML in a file (WEB area) then try to export & open the saved data with the browser.
    This will tell you if  the error is at the client level. Also, you can examine the output easily, offline.
    This is practically what I'm doing to analyze XML data transferred to and from SAP using various RFCs.
    IE 8.0 never crashed with XMLs having a size of 3Mb or more (approx 60columns, 10000+ rows, 14 different tables).
    Paul.

  • Bug in rendering  HTML content Apex 2.2 (in Apex 2.0 was OK)

    We have many PLSQL processes which are called through boolean function which return some message as well as the result.
    <br>
    function some_func (pid IN NUMBER,err_msg OUT NOCOPY VARCHAR2) RETURN BOOLEAN;<br>
    and at the end function looks like:
    <br>
      :err_msg := 'Pitanje <*b>'||TO_CHAR(p_id)||'<*/b> je OK!';
      RETURN TRUE;<br>
    Later, in "On load before header", we call this function and assign "err_msg" value to hidden item "P2_MESSAGE", placed on the same page. Assigment is done in an way like:
    <br>
      some_bool:=some_func (:P2_ID,:P2_MESSAGE);<br>
    In one HTML reagion, we put in "Source", code like:
    <br>
    <*class="t16dataalt">&P2_MESSAGE.</class><br>
    and until now, bold tags are applied as well as class-we get only text!
    <br>
    But now, in Apex 2.2, (original theme 16 used) in result we get all content as it is not recognized as HTML code.
    <br>
    In browser the result(in a case of OK result) is:
    <br>
    Pitanje <*b>1<*/b> je OK!<br>
    and the generated source is:
    <br>
    <*class="*t16dataalt">Pitanje &*lt;*b&*gt;1&*lt;/b&*gt; je OK!</*class="*t16dataalt"><br>
    Is that a bug or what?
    <br>
    Once more, before the same code was working nice, theme 2 used...
    <br>
    THX!
    <br>
    P.S
    <br>
    "*" is added to be read clearly!
    <br>
    P.S II
    <br>
    We have imported app that was exported on Apex 2.0 and the same problem occure!
    <br>
    So we think this is a bug in rendering HTML region!
    <br>
    Is there any hint to overcome that until patch come ?
    Message was edited by:
    Funky

    The issue is easy to reproduce. Create HTML region:
    User Interface Template-Reports Region
    Display point-Page template body
    Assign one hiden item in on load process with value:
    P2_MESSAGE := "< b>OK</ b<>";
    Put P2_MESSAGE in HTML Source with content like this:
    < class="t16dataalt">&P2_MESSAGE.</ class>
    and you have it!

  • Rendering XML Bug?

    This is the most strange issue...
    I'm generating XML and returning it to the page for output. I've got 4 pages that do the exact same thing with the exact same code... variables are the only things that change.
    For 3 of the pages, the XML data render in the browser and looks wonderful in View Source.
    For 1 elusive page, the XML data does not render in the browser, but the XML is clearly there in View Source.
    I'm beginning to reason that this is cause some phantom issue that I can't seem to solve, and it isn't making any sense whatsoever!
    Anyone have something similar happen to them or know of a solution?

    This is the function that creates the XML:
    <cfscript>
                   // TODO move the below function from user to library
                   var qAssets      = session.user.getLibraryAssets( libraryId=arguments.libraryId, filterByType=arguments.filterByType );
                   var assets           = xmlNew();
              </cfscript>
              <!--- TODO: use xml functions to do this --->
              <cfsavecontent variable="assets">
                   <cfoutput><assets></cfoutput>
                   <cfif qAssets.recordCount gt 0>
                        <cfoutput query="qAssets">
                             <#lCase(qAssets.assetTypeName)#>
                                  <id>#qAssets.id#</id>
                                  <name>#xmlFormat(qAssets.name)#</name>
                                  <data>#xmlFormat(qAssets.data)#</data>
                                  <isAdmin>#iif( isDefined("qAssets.isAdmin") and qAssets.isAdmin eq 1, de(1), de(0) )#</isAdmin>
                             </#lCase(qAssets.assetTypeName)#>
                        </cfoutput>     
                   </cfif>
                   <cfoutput></assets></cfoutput>
              </cfsavecontent>
              <cfreturn assets>
    This is the page the XML is finally rendered in:
    <cfsetting enablecfoutputonly="true">
    <!--- 0 = all libraries --->
    <cfset variables.xmlAssets = application.library.getAssetXml( libraryId=0, filterByType=application.assetType.VIDEO )>
    <cfoutput>#xmlParse(xmlAssets)#</cfoutput>

  • Rendering xml-table into logical filename in SAP R/3

    Hi,
    I am trying to translate an xml-table with bytes into a logical filepath in SAP R3.
    Do I have to use the method gui-download or shall I loop the internal xml-table?
    When I tried to loop the xml-table into a structure, and then transfering the structure into the logical filename, I get problems with the line breaks in my xml-file. How do I get the lines to break exactly the same as I wrote them in my ABAP-code?
    Edited by: Kristina Hellberg on Jan 10, 2008 4:24 PM

    I believe you posted in the wrong forum.
    This forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
    Ludek

  • Htp.p not rendering correctly in Apex PL/SQL region

    I'm using Apex 3.0.1 and have an application that merges data with an email template. I have a mailing list review function that allows you to preview any of the emails. This works by calling a packaged merge function in a PL/SQL region as in:
    htp.p (package.merge_function (p1 => 1, p2 => 2, p3 => 3));
    The "merge_function" returns a CLOB which contains the complete HTML message.
    The problem is this: when the email is sent and received it looks fine, but when previewed as above the font size changes in the HTML are not recognised. The other attributes, e.g. colour and font face are OK. I am more experienced with PL/SQL than with HTML so any help would be appreciated.

    Rick,
    The CSS files that APEX uses set some default font settings for all regions. Unless overridden, these default settings will be applied to most everything on the page.
    If you're going to use an htp.p() to put some text on the page, you may want to consider wrapping the entire output of htp.p with a DIV tag.
    For instance:
    htp.p('&lt;div style="font-size:12px;"&gt;' || your_contents || '&lt;/div&gt;');Hope that helps!
    - Scott -

  • Hiding some part of rendered XML form

    Hi all,
    is it possible to hide some part of displayed xml form? For example, I have XML form with texts in two languages (two schema nodes, one for each language). I would like to show only text in users language. Users language could be determined from UME or from personalization of iView.
    Thank you very much for answers.
    Zdenek

    Hi Wassilios,
    thanks for helpful answer. Exists some documentation about these xsl files (I mean KM specific information)?
    Regards,
    Zdenek
    Message was edited by: Zdenek Smolik

  • Apex Charts custom XML integration

    Hi All,
    I found a chart in Anycharts.com and downloaded its XML.I wanted to integrate this chart with apex. But the XML,which i downloaded uses data from a .csv file. How to integrate this XML with apex. I found we can edit the default XML in the chart generated by. But How does XML take the values from the query which we write. There is only #DATA# at the end of the chart generated by apex and no clue on how and in what format this Data comes.
    Please help me out.
    Thanks,
    Ajay

    Ajay -
    Others may be able to explain this process better than I but I'll give it my best.
    The #DATA# tag that you see in the default custom xml for a chart is a substitution string. When your page is rendered, APEX runs the queries associated with your chart and then creates XML based on the chart type of the series. Next, it takes this XML that it generated and puts it in the chart custom XML where that #DATA# tag is located.
    There are other ways to get custom data into your chart. You can create the XML yourself in a page item and then insert the contents of that page item into the custom XML of the chart. This can be an advanced topic, but it really isn't too bad once you get the hang of it. The following link contains some pretty good examples of the things you can do. It even shows you how to format your SQL to obtain similar results. Custom XML generation is in the MISC tab. http://apex.oracle.com/pls/apex/f?p=36648:1:2979429292819853::NO I am not responsible for putting this page together, another forum member is, and perhaps they will chime in.
    Hope this helps
    Austin

  • XML does not render inside iframe using the built-in Firefox renderer as of Firefox 17.0.1

    We make a Content Management system that renders XML inside of iframe in a few different areas. As of Firefox 17, these iframes no longer render using the built-in Firefox XML renderer but instead as plain text.

    A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
    *http://forums.mozillazine.org/viewforum.php?f=25
    The helpers at that forum are more knowledgeable about web development issues.<br>
    You need to register at the MozillaZine forum site in order to post at that forum.
    It is probably best if you have a web page with example code, so they can test this themselves.

Maybe you are looking for