Data template - no xml data?

Hello,
I have a data template that does not seem to want to display my data. I am at a loss as to why… The select works and returns the data correctly.
Data I get when I run the select is from SQL Developer:
01-JAN-08     Hourly     1155     31     0
01-JAN-08     Salary     269     1     0
01-FEB-08     Hourly     1196     56     2
01-FEB-08     Salary     271     0     2
01-MAR-08     Hourly     1396     45     0
01-MAR-08     Salary     316     6     0
My data template is here:
<dataTemplate name="AZZ_HR_TURNOVER">
     <!-- Confidential and Copyright AZZ Inc. -->
     <properties>
          <property name="xml_tag_case" value="upper"/>
     </properties>
     <parameters>
          <parameter name="P_START_DATE" dataType="date"/>
          <parameter name="P_END_DATE" dataType="date"/>
     </parameters>
     <dataQuery>
          <sqlStatement name="Q_AZZ_HR_TURNOVER">
               <![CDATA[
SELECT TURNOVER_MONTH AZZ_TURNOVER_MONTH,
decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis) AZZ_PAY_BASIS,
COUNT(
CASE
WHEN pps_date_start <= trunc(TURNOVER_MONTH,'MM')
AND pps_actual_termination_date IS NULL OR pps_actual_termination_date >= trunc(TURNOVER_MONTH,'MM')
THEN 1 --active during period
END) EE_ACTIVE,
COUNT(
CASE
WHEN pps_actual_termination_date IS NOT NULL
AND pps_actual_termination_date BETWEEN trunc(TURNOVER_MONTH,'MM') AND last_day(TURNOVER_MONTH)
THEN 'T' --term during period
END) EE_TERM,
COUNT(
CASE
WHEN pps_date_start BETWEEN trunc(TURNOVER_MONTH,'MM') AND last_day(TURNOVER_MONTH)
THEN 'N' --new hire
END) EE_NEWHIRE
FROM (
SELECT ppb.name pay_basis,
pps.date_start pps_date_start,
pps.actual_termination_date pps_actual_termination_date,
TURNOVER_MONTH
FROM per_all_people_f ppf,
per_periods_of_service pps,
per_all_assignments_f asg,
hr_soft_coding_keyflex hsck,
hr_all_organization_units hou_gre,
hr_all_organization_units hou,
per_person_type_usages_f pptu,
per_person_types ppt,
per_pay_bases ppb,
hr_lookups hrl_l,
(SELECT DISTINCT(TRUNC(to_date(substr(:p_start_date,1,10),'YYYY-MM-DD') + rownum -1, 'MM')) turnover_month
FROM all_objects
WHERE rownum <= to_date(substr(:p_end_date,1,10),'YYYY-MM-DD') - to_date(substr(:p_start_date,1,10),'YYYY-MM-DD') + 1)
WHERE ppf.person_id = pps.person_id
AND ppf.person_id = asg.person_id
AND asg.pay_basis_id = ppb.pay_basis_id
AND pps.period_of_service_id = asg.period_of_service_id
AND asg.soft_coding_keyflex_id = hsck.soft_coding_keyflex_id
AND hsck.segment1 = hou_gre.organization_id
AND hsck.enabled_flag = 'Y'
AND asg.primary_flag = 'Y'
AND asg.assignment_type = 'E'
AND asg.organization_id = hou.organization_id
AND ppf.person_id = pptu.person_id
AND pptu.person_type_id = ppt.person_type_id
AND user_person_type IN ('Employee','Ex-employee')
AND hrl_l.lookup_type(+) = 'LEAV_REAS'
AND hrl_l.lookup_code(+) = pps.leaving_reason
AND date_start = (SELECT MAX(date_start)
FROM per_periods_of_service pps1
WHERE pps1.period_of_service_id = pps.period_of_service_id
AND date_start <= last_day(TURNOVER_MONTH) )
AND ppf.effective_start_date = (SELECT MAX(effective_start_date)
FROM per_all_people_f ppf1
WHERE ppf1.person_id = ppf.person_id
AND effective_start_date <= last_day(TURNOVER_MONTH) )
AND asg.effective_start_date = (SELECT MAX(effective_start_date)
FROM per_all_assignments_f asg1
WHERE asg1.person_id = asg.person_id
AND effective_start_date <= last_day(TURNOVER_MONTH) )
AND pptu.effective_start_date = (SELECT MAX(effective_start_date)
FROM per_person_type_usages_f pptu1,
per_person_types ppt1
WHERE pptu1.person_id = pptu.person_id
AND pptu1.person_type_id = ppt1.person_type_id
AND ppt1.user_person_type IN ('Employee','Ex-employee')
AND effective_start_date <= last_day(TURNOVER_MONTH) )
AND last_day(TURNOVER_MONTH) BETWEEN NVL(hou.date_from,last_day(TURNOVER_MONTH)) AND NVL(hou.date_to, last_day(TURNOVER_MONTH))
AND last_day(TURNOVER_MONTH) BETWEEN NVL(hou_gre.date_from,last_day(TURNOVER_MONTH)) AND NVL(hou_gre.date_to, last_day(TURNOVER_MONTH))
AND last_day(TURNOVER_MONTH) BETWEEN NVL(hsck.start_date_active,last_day(TURNOVER_MONTH)) AND NVL(hsck.end_date_active, last_day(TURNOVER_MONTH))
AND TRUNC(pps.date_start) != TRUNC(NVL(pps.actual_termination_date, to_date('31-DEC-4712','DD-MON-YYYY')))
WHERE pps_date_start <= trunc(TURNOVER_MONTH,'MM')
AND (pps_actual_termination_date IS NULL OR pps_actual_termination_date >= trunc(TURNOVER_MONTH,'MM'))
GROUP BY TURNOVER_MONTH,
decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis)
ORDER BY TURNOVER_MONTH,
decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis)
]]>
          </sqlStatement>
     </dataQuery>
     <dataStructure>
          <group name="G_TURNOVER_MONTH" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
               <element name="AZZ_TURNOVER_MONTH" dataType="varchar2" value="AZZ_TURNOVER_MONTH"/>
               <group name="G_AZZ_PAY_BASIS" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
                    <element name="AZZ_PAY_BASIS" dataType="varchar2" value="AZZ_PAY_BASIS"/>
                    <group name="G_AZZ_EE_COUNT" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
                         <element name="EE_ACTIVE" dataType="varchar2" value="EE_ACTIVE"/>
                         <element name="EE_TERM" dataType="varchar2" value="EE_TERM"/>
                         <element name="EE_NEWHIRE" dataType="varchar2" value="EE_NEWHIRE"/>
                    </group>
               </group>
          </group>
     </dataStructure>
     <dataTrigger name="afterReportTrigger" source="AZZ_HR_TURNOVER.afterreport()"/>
</dataTemplate>
And the only output I am getting are my parms and my first group:
<?xml version="1.0" encoding="UTF-8" ?>
- <AZZ_HR_TURNOVER>
<P_START_DATE>2008-01-01 00:00:00.0</P_START_DATE>
<P_END_DATE>2008-07-15 00:00:00.0</P_END_DATE>
<LIST_G_TURNOVER_MONTH />
</AZZ_HR_TURNOVER>
Any asistance is much appreciated.
Scott

Thanks, but I just found the problem... Never trust Oracle to handle date conversions, esp in BIP. The corrected template below -- only change was the dataType of my parms to char (!)
Scott
<dataTemplate name="AZZ_HR_TURNOVER">
     <!-- Confidential and Copyright AZZ Inc. -->
     <properties>
          <property name="xml_tag_case" value="upper"/>
     </properties>
     <parameters>
          <parameter name="P_START_DATE" dataType="char"/>
          <parameter name="P_END_DATE" dataType="char"/>
     </parameters>
     <dataQuery>
          <sqlStatement name="Q_AZZ_HR_TURNOVER">
               <![CDATA[
SELECT substr(to_char(TURNOVER_MONTH),1,10) AZZ_TURNOVER_MONTH,
decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis) AZZ_PAY_BASIS,
COUNT(
CASE
WHEN pps_date_start <= trunc(TURNOVER_MONTH,'MM')
AND pps_actual_termination_date IS NULL OR pps_actual_termination_date >= trunc(TURNOVER_MONTH,'MM')
THEN 1 --active during period
END) EE_ACTIVE,
COUNT(
CASE
WHEN pps_actual_termination_date IS NOT NULL
AND pps_actual_termination_date BETWEEN trunc(TURNOVER_MONTH,'MM') AND last_day(TURNOVER_MONTH)
THEN 'T' --term during period
END) EE_TERM,
COUNT(
CASE
WHEN pps_date_start BETWEEN trunc(TURNOVER_MONTH,'MM') AND last_day(TURNOVER_MONTH)
THEN 'N' --new hire
END) EE_NEWHIRE
FROM (
SELECT ppb.name pay_basis,
pps.date_start pps_date_start,
pps.actual_termination_date pps_actual_termination_date,
TURNOVER_MONTH
FROM per_all_people_f ppf,
per_periods_of_service pps,
per_all_assignments_f asg,
hr_soft_coding_keyflex hsck,
hr_all_organization_units hou_gre,
hr_all_organization_units hou,
per_person_type_usages_f pptu,
per_person_types ppt,
per_pay_bases ppb,
hr_lookups hrl_l,
(SELECT DISTINCT(TRUNC(to_date(substr(:p_start_date,1,10),'YYYY-MM-DD') + rownum -1, 'MM')) turnover_month
FROM all_objects
WHERE rownum <= to_date(substr(:p_end_date,1,10),'YYYY-MM-DD') - to_date(substr(:p_start_date,1,10),'YYYY-MM-DD') + 1)
WHERE ppf.person_id = pps.person_id
AND ppf.person_id = asg.person_id
AND asg.pay_basis_id = ppb.pay_basis_id
AND pps.period_of_service_id = asg.period_of_service_id
AND asg.soft_coding_keyflex_id = hsck.soft_coding_keyflex_id
AND hsck.segment1 = hou_gre.organization_id
AND hsck.enabled_flag = 'Y'
AND asg.primary_flag = 'Y'
AND asg.assignment_type = 'E'
AND asg.organization_id = hou.organization_id
AND ppf.person_id = pptu.person_id
AND pptu.person_type_id = ppt.person_type_id
AND user_person_type IN ('Employee','Ex-employee')
AND hrl_l.lookup_type(+) = 'LEAV_REAS'
AND hrl_l.lookup_code(+) = pps.leaving_reason
AND date_start = (SELECT MAX(date_start)
FROM per_periods_of_service pps1
WHERE pps1.period_of_service_id = pps.period_of_service_id
AND date_start <= last_day(TURNOVER_MONTH) )
AND ppf.effective_start_date = (SELECT MAX(effective_start_date)
FROM per_all_people_f ppf1
WHERE ppf1.person_id = ppf.person_id
AND effective_start_date <= last_day(TURNOVER_MONTH) )
AND asg.effective_start_date = (SELECT MAX(effective_start_date)
FROM per_all_assignments_f asg1
WHERE asg1.person_id = asg.person_id
AND effective_start_date <= last_day(TURNOVER_MONTH) )
AND pptu.effective_start_date = (SELECT MAX(effective_start_date)
FROM per_person_type_usages_f pptu1,
per_person_types ppt1
WHERE pptu1.person_id = pptu.person_id
AND pptu1.person_type_id = ppt1.person_type_id
AND ppt1.user_person_type IN ('Employee','Ex-employee')
AND effective_start_date <= last_day(TURNOVER_MONTH) )
AND last_day(TURNOVER_MONTH) BETWEEN NVL(hou.date_from,last_day(TURNOVER_MONTH)) AND NVL(hou.date_to, last_day(TURNOVER_MONTH))
AND last_day(TURNOVER_MONTH) BETWEEN NVL(hou_gre.date_from,last_day(TURNOVER_MONTH)) AND NVL(hou_gre.date_to, last_day(TURNOVER_MONTH))
AND last_day(TURNOVER_MONTH) BETWEEN NVL(hsck.start_date_active,last_day(TURNOVER_MONTH)) AND NVL(hsck.end_date_active, last_day(TURNOVER_MONTH))
AND TRUNC(pps.date_start) != TRUNC(NVL(pps.actual_termination_date, to_date('31-DEC-4712','DD-MON-YYYY')))
WHERE pps_date_start <= trunc(TURNOVER_MONTH,'MM')
AND (pps_actual_termination_date IS NULL OR pps_actual_termination_date >= trunc(TURNOVER_MONTH,'MM'))
GROUP BY TURNOVER_MONTH,
decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis)
ORDER BY TURNOVER_MONTH,
decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis)
]]>
          </sqlStatement>
     </dataQuery>
     <dataStructure>
          <group name="G_TURNOVER_MONTH" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
               <element name="AZZ_TURNOVER_MONTH" dataType="varchar2" value="AZZ_TURNOVER_MONTH"/>
               <group name="G_AZZ_PAY_BASIS" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
                    <element name="AZZ_PAY_BASIS" dataType="varchar2" value="AZZ_PAY_BASIS"/>
                    <group name="G_AZZ_EE_COUNT" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
                         <element name="EE_ACTIVE" dataType="varchar2" value="EE_ACTIVE"/>
                         <element name="EE_TERM" dataType="varchar2" value="EE_TERM"/>
                         <element name="EE_NEWHIRE" dataType="varchar2" value="EE_NEWHIRE"/>
                    </group>
               </group>
          </group>
     </dataStructure>
     <dataTrigger name="afterReportTrigger" source="AZZ_HR_TURNOVER.afterreport()"/>
</dataTemplate>

Similar Messages

  • Problem with data template in XML publisher

    When I create data template in xml publisher and save it, I get next message:
    dbase:
    Failed to save data.
    Error occurred when creating xml data.
    undefined
    NaN
    NaN
    dbase is a database server
    JDBC connection name:asu_fox
    JDBC connection URL: jdbc:oracle:thin:@dbase:1521:ora03
    Text in data template:
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="data_report_2" description="data template for reports 2 and 10"
    dataSourceRef="asu_fox" version="1.0">
    <dataQuery>
         <sqlStatement name="Q1">
              <![CDATA[select kol_pl,kol_sv,trud_pl,trud_sv,nom_per_p,kod_polu_p,p_v,kod_tmc,liter,kol_skl,nom_per,shifr_dse,shifr_izd,kod_polu,kod_post,trud,kol_m,tip_rin,kod_op,kod_op0,order1,n_val,shifr_usel_val,sum_trud_val,sum_trud_val_sv from reporter.t_plan_report_2]]>
         </sqlStatement>
    </dataQuery>
    <dataStructure>
         <group name="group_all" source="Q1">
              <element name="kol_pl_l" value="kol_pl"/>
              <element name="kol_sv_l" value="kol_sv"/>
              <element name="trud_pl_l" value="trud_pl"/>
              <element name="trud_sv_l" value="trud_sv"/>
              <element name="nom_per_p_l" value="nom_per_p"/>
              <element name="kod_polu_p_l" value="kod_polu_p"/>
              <element name="p_v_l" value="p_v"/>
              <element name="kod_tmc_l" value="kod_tmc"/>
              <element name="liter_l" value="liter"/>
              <element name="nom_per_l" value="nom_per"/>
              <element name="shifr_dse_l" value="shifr_dse"/>
              <element name="shifr_izd_l" value="shifr_izd"/>
              <element name="kod_polu_l" value="kod_polu"/>
              <element name="kod_post_l" value="kod_post"/>
              <element name="trud_l" value="trud"/>
              <element name="kol_m_l" value="kol_m"/>
              <element name="tip_rin_l" value="tip_rin"/>
              <element name="kod_op_l" value="kod_op"/>
              <element name="kod_op0_l" value="kod_op0"/>
              <element name="order1_l" value="order1"/>
              <element name="n_val_l" value="n_val"/>
              <element name="shifr_usel_val_l" value="shifr_usel_val"/>
              <element name="sum_trud_val_l" value="sum_trud_val"/>
              <element name="sum_trud_val_sv_l" value="sum_trud_val_sv"/>
         </group>
    </dataStructure>
    </dataTemplate>
    I get this error with different data templates.
    Help me, please.
    Vladimir

    Hi Vladimir
    Can you test the data template posted here. http://static7.userland.com/oracle/gems/leslieStuddard/EMPLOYEES.xml
    It needs to connect to the sample scott schema, hopefully you have it installed?
    Let me know if you get the same error.
    thanks
    Tim

  • How to modify Data Template  ARXSGPO.xml

    We are on EBS 12.1.1. My client want to customize AR Customer Balance Statement Letter. They need rtf to be modified as well as some additional info for which I need to modify Data Template ARXSGPO.xml .
    But I am not able to modify above xml file. Update File button has been disabled. Could someone tell me how I can update existing xml file ?
    Thanks in Advance

    Hi
    You could use the XDOLoader command to upload data templates.
    http://bipublisher.blogspot.com/2008/01/bi-publisher-xdo-loader.html
    But it would be better if you could create a custom report and attach the new date template, instead of modifying the standard report.
    Regards
    Nishka

  • Error in viewing data in a data template with multiple data sources

    Hello,
    I have designed a data template with two data sources.One is from DEPARTMENTS table and the other datasource is a xml file.Following is the code for the data template :
    <dataTemplate name="EmployeeListing" dataSourceRef="demo">
    <parameters>
    <parameter name="p_DEPTNO" dataType="character" defaultValue="20"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT DEPARTMENT_NAME,DEPARTMENT_ID,LOC from DEPARTMENTS]]>
    </sqlStatement>
    <xml name="empxml" expressionPath=".//ROW[DEPARTMENT_NAME =$DEPARTMENT_NAME]">
    <url method="GET" realm="" username="" password="">file:///D:\OraHome_1\xmlp\XMLP\DemoFiles\Employee Salary Report.xml</url>
    </xml>
    /dataQuery>
    </dataTemplate>
    The problem is when i am trying to view the data, only data from SQL Query Q1 is getting displayed and the data from Employee xml is not at all getting displayed.
    Could anyone please let me know what i am missing?
    Thanks
    Nutan
    Edited by: user609971 on Oct 23, 2008 8:06 AM

    This is from Documenation sample....
    Did you see the data structure section, where you say, how you wanted the columns ?
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="Employee Listing" description="List of Employees" v
    ersion="1.0">
    <parameters>- Defines a single parameter for the Department Number
    - with default of 20:
    <parameter name="p_DEPTNO" dataType="character"
    defaultValue="20"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT DEPTNO,DNAME,LOC from dept
                      order by deptno]]>
    </sqlStatement>
    <xml name="empxml" expressionPath=".//ROW[DEPTNO=$DEPTNO]"> - Defines name
    - and link to DEPTNO in Q1
    <url method="GET" realm="" username="" password="">
    file:///d:/dttest/employee.xml</url> - Defines url for xml data
    </xml>
    </dataQuery>-
    <dataStructure>- The following section specifies the XML hierarchy
    - for the returning data:
    <group name="G_DEPT" source="Q1"
    <element name="DEPT_NUMBER" value="DEPTNO" />
    <element name="DEPT_NAME" value="DNAME"/>
    - This creates a summary total at the department level based
    - on the salaries at the employee level for each department:      
    <element name="DEPTSAL" value="G_EMP.SALARY"
    function="SUM()"/>
              <element name="LOCATION" value="LOC" />
    <group name="G_EMP" source="empxml">
    <element name="EMPLOYEE_NUMBER" value="EMPNO" />
    <element name="NAME" value="ENAME"/>
    <element name="JOB" value="JOB" />
    <element name="MANAGER" value="MGR"/>
    <element name= "HIREDATE" value="HIREDATE"/>
    <element name="SALARY" value="SAL"/>
    </group>     
    </group>
    </dataStructure>
    </dataTemplate>

  • Using a SQL data source and XML data source in the same template

    I am trying to develop a template for the Request for Quote report generated in Apps 11.5.10. I have loaded the data from the XML output into the template, but I am missing one field - I need the org_id from the po_headers table. Is it possible to use a sql data source (i.e., "select org_id from po_headers_all where po_header_id = [insert header_id from xml data]...") in addition to the xml data source to populate the template at runtime? When you use the Insert > SQL functionality is it static at the time the template is created, or does it call to the database at runtime? I've looked through all the docs I could find, but this isn't clear.
    Thanks for any help or suggestions you may have.
    Rhonda

    Hi Pablo
    Thats a tough one ... if you go custom with a data template you will at least get support on the data template functionality ie you have a problem when you try and build one. You will not get support on the query inside the data template as you might have gotten with the Oracle Report, well you could at least log a bug against development for a bad query.
    Eventually that Oracle Report will be converted by development anyway, theres an R12 project going on right now to switch the shipped OReports to data templates. AT this point you'll be fully supported again but:
    1. You have to have R12 and
    2. You'll need to wait for the patch
    On reflection, if you are confident enough in the query then Oracle will support you on its implementation within a data template. Going forward you may be able to swap out your DT and out in the Oracle one without too much effort.
    Regards, Tim

  • Data template with xml over http

    Hi!
    I have a data template what should get data from xml file.
    <dataTemplate name="ccbXML" description="For xml output">
    <properties>
    <property name="debug_mode" value="on"/>
    <property name="include_parameters" value="true"/>
    <property name="include_null_Element" value="true"/>
    <property name="scalable_mode" value="on"/>
    <property name="db_fetch_size" value="1000"/>
    </properties>
    <dataQuery>
    <xml name="DATA_XML">
    <url method="GET" realm="" username="" password="">http://my.site.sise/00000000070000000001.xml</url>
    </xml>
    </dataQuery>
    </dataTemplate>
    The result is:
    <CCBXML>
         <LIST_data_xml></LIST_data_xml>
    </CCBXML>
    When I use:
    <url method="GET" realm="" username="" password="">file:///D:\files\result.xml</url>
    then I get a parsal result from the XML (it is not structuated and it does not show all the xml content, only random tag's).
    In the end it is not possible for me to use the file protocol because the xml is generated dynamically in a http page. Is it even possible to use the http protocol in data template? Or is anything else wrong with my data template that I'm not getting the right result (even with file:///)?
    I work BI Publisher Enterprise Release 10.1.3.4
    Evelyn

    Could u please send the working example for http binding on SOA Suite 11 g.
    Thanks and Regards,
    Anil verma

  • Functions needed in Data Template for XML output

    Hi ,
    Are there any oracle functions like abs() available
    in data_template to be used as follows
    group name="listItem" source="Q2">
    <element name="amount" value="abs(amount)"/>
    <element name="serialNumber" value="TXN_SERIAL_NO"/>
    I want the absolute value of the amount .
    OR
    Can I HIDE the xml Element like
    <element name="amount" value="amount"/> (i want to hide this tag in output?)
    Please do not suggest to do the same in the SQL query as I am using the SQL query to do something else and resolve another issue.
    rdgs
    xyz

    You can do this abs in Template.
    use xdoxslt:abs or abs from xsl.
    if you want the data in the xml to habe absolute value , then write pl/sql package to this .
    <element name="amount" value="yourpcakage.yourabs(amount)"/>
    or do it in sql query, which you dont want to.

  • Data Template construction AND data template validation questions:

    Hello World.
    I am new to Oracle BI and I have sucessfully used the BI Java APIs to create from start to finish a pdf report process. I use the DataProcessor, RTFProcessor, and FOProcessor classes to do this. My question is other than the most simple of Data Templates being used, how is everyone building their data templates? And I would also like to know how are developers validating the actual data template file? I have submitted a request through my MetaLink account for obtaining either a "dtd" or "xsd" file that could be used to validate a constructed data template. I have not received any real answers. I plan on using either XMLSpy or MyEclispse 6 to create my data templates, but I need a "rule book" dtd or xsd file in order to use the auto prompting feature. Making a data template "in the dark" cannot be the method of choice for all of the developers that visit this forum. I see some really fancy/detailed reports and I would like to see how people are building there data templates. Building the data template is at least half the battle when constructing a BI report.
    Thanks for your time.

    Notepad is the developer's choice for data definitions, seriously.
    I have seen and used XMLSpy and have Stylus Studio but they are really a bit of overkill for the data templates. I use Stylus Studio for some of our XML-FO format templates, but that is another story.
    Scott
    Edited by: ScottC on Oct 22, 2008 3:00 PM

  • Any examples of a data template using multiple data sources?

    I'm looking for an example report using multiple data sources. I've seen one where they do a master/detail but I'm just looking to combine results in sorted order (sorted across all data sources). The master/detail used a bind variable to link the two defined queries, I'm thinking what I want won't have that, so I'm lost on how to make that happen. I have reports using multiple sql queries and there is a way in the data source pulldown to tell it to combine the data sources. It appears to be a more manual process with data templates, if it's even possible.
    Any pointers/links would be appreciated.
    Gaff

    Hi Vetsrini :
    That's just it. Mine is simpler than that. There is no master/detail relationship between the two queries. I have the same exact query that I run in two databases and I want to merge the results (ordered, by, say eventTime) in one report. So I think my results are going to be two separate groups (one for each data source) which I'll have to let BI merge vis XSLT or whatever it uses. That's fine for small result sets but for larger ones, it would be nice if the database did the sorting/merging.
    Gaff

  • Date Filtering with XML data

    I'm displaying events in a spry :repeat region with my source
    being XML.
    The date is set in the XML like:
    <event>
    <name>EventName</name>
    <desc>Christmas Eve</desc>
    <stopdate>12/25/2007</stopdate>
    </event>
    How would I hide this event after its given <stopdate>
    value?

    <script>
    function getCurrentDate(){
    objToday = new Date();
    year = objToday.getFullYear();
    month = objToday.getMonth() + 1;
    if ( month < 10 )
    month = "0" + month;
    day = objToday.getDate();
    if ( day < 10 )
    day = "0" + day;
    strToday = day + "/" + month + "/" + year;
    return strToday;
    </script>
    And maby use
    <tr spry repeat>
    <td spry:if="{stopdate} >
    getCurrentDate()">{stopdate}</td>
    </tr>
    Something like that would do.
    If not maby set the row to date EXAMPLE:
    var ds1 = new
    Spry.Data.XMLDataSet("myxml.xml","races/standings");
    // Example of setting the type of one column:
    ds1.setColumnType("start", "date");
    I think that is what u want.
    It checks if the {stopdate} greater than the current date..
    if it true, it will show the date. else it wont... ofcourse u can
    change the operator of the spry if ;)

  • Binding data when using xml data files

    Hello,
    I am pretty new to Flex4 and hope you hang on with my question. MAny thanks:
    I built an application first with PHP connection into a database which essentially listed IP of my company in a grid.
    One could filter the IP depending of technology, type of Ip and so on.
    When clicking in the grid, the details with many more fileds would apprear. This was working niceley as I had my services defined and needed only to drag services in the right place and add here and there some changes in the code
    Now, I wanted to do the same with an xml file instead of a mySQL database so to deploy it a little easier.
    I have the grid and the filtering working nicely.
    But I cannot create the data binding for the details.
    Below is the code. See the line before last where I tested if I could access to the  descriptipn fuield in my arrayCollection (coming from my xml)
    CAn anyone help me, please
    many thanks in advance and best regards
    Peter
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
       xmlns:s="library://ns.adobe.com/flex/spark"
       xmlns:mx="library://ns.adobe.com/flex/mx"
       applicationComplete="myServ.send()" width="900" height="500">
    <fx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    import mx.events.ListEvent;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    import spark.events.TextOperationEvent;
    [Bindable]
    private var myIPList:ArrayCollection;
    protected function myServ_faultHandler(event:FaultEvent):void
    Alert.show("Something went wrong", "Cannot load data");
    protected function myServ_resultHandler(event:ResultEvent):void
    if(event.result.test.IP is ArrayCollection){
    this.myIPList = event.result.test.IP as ArrayCollection;
    }else{
    var buffer:ArrayCollection = new ArrayCollection([event.result.test.IP]);
    this.myIPList = buffer;
    this.searchInput.enabled = false;
    this.searchInputTechnology.enabled = false;
    this.searchInputProvider.enabled = false;
    // serach for IP
    protected function searchInput_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFunc;
    this.myIPList.refresh();
    private function filterFunc(item:Object):Boolean
    if(String(item.IP).toLowerCase().indexOf(this.searchInput.text.toLowerCase()) > -1){
    return true;
    }else{
    return false;
    //  Search for Technology
    protected function searchInputTechnology_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFuncTechnology;
    this.myIPList.refresh();
    private function filterFuncTechnology(item:Object):Boolean
    if(String(item.Technology).toLowerCase().indexOf(this.searchInputTechnology.text.toLowerCa se()) > -1){
    return true;
    }else{
    return false;
    //  Search for Provider
    protected function searchInputProvider_changeHandler(event:TextOperationEvent):void
    this.myIPList.filterFunction = filterFuncProvider;
    this.myIPList.refresh();
    private function filterFuncProvider(item:Object):Boolean
    if(String(item.Provider).toLowerCase().indexOf(this.searchInputProvider.text.toLowerCase() ) > -1){
    return true;
    }else{
    return false;
    protected function myDG_changeHandler(event:ListEvent):void
    Alert.show("I Clicked. It should now be possible to see details, damned");
    ]]>
    </fx:Script>
    <fx:Declarations>
    <s:HTTPService id="myServ" url="IP.xml" fault="myServ_faultHandler(event)" result="myServ_resultHandler(event)"/>
    </fx:Declarations>
    <mx:DataGrid id="myDG" change="myDG_changeHandler(event)" x="37" y="134" width="814" height="159" dataProvider="{this.myIPList}">
    <mx:columns>
    <mx:DataGridColumn headerText="IP" dataField="IP"/>
    <mx:DataGridColumn headerText="short description" dataField="detail"/>
    <mx:DataGridColumn headerText="type" dataField="type"/>
    <mx:DataGridColumn headerText="Provider" dataField="Provider"/>
    <mx:DataGridColumn headerText="Technology" dataField="Technology"/>
    </mx:columns>
    </mx:DataGrid>
    <s:HGroup x="33" y="74" width="152" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="IP"/>
    <s:TextInput id="searchInput" change="searchInput_changeHandler(event)" width="103"/>
    </s:HGroup>
    <s:HGroup x="686" y="74" width="153" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="Technology"/>
    <s:TextInput id="searchInputTechnology" change="searchInputTechnology_changeHandler(event)" width="94"/>
    </s:HGroup>
    <s:HGroup x="519" y="74" width="153" height="41" verticalAlign="middle">
    <mx:Spacer width="100%">
    </mx:Spacer>
    <s:Label text="Provider"/>
    <s:TextInput id="searchInputProvider" change="searchInputProvider_changeHandler(event)" width="94"/>
    </s:HGroup>
    <s:Label x="135" y="38" text="IP Road Map" fontSize="29" color="#524E4E"/>
    <s:TextArea id="myText" x="37" y="315" width="204" text="{this.myIPList}" height="164"/>
    <mx:Image x="33" y="18" width="74" height="57" id="STLogo" source="file:/Users/peterhirt/Pictures/stlogo.png"/>
    </s:Application>
    Here at tzhe end I append one record out of the xml files I used
    <?xml version="1.0" encoding="utf-8" ?>
    <test>
        <IP>
            <IP>USB2 PHY</IP>
            <detail>single port </detail>
            <type>USB</type>
            <Provider>TR&amp;D</Provider>
            <Technology>65lp</Technology>
            <maturity_status>MAT20</maturity_status>
            <status_date>Q4/09</status_date>
            <next_Maturity>MAT30</next_Maturity>
            <next_Date></next_Date>
            <HED>y</HED>
            <HED_criticality>2</HED_criticality>
            <HED_MAT20_request>Q4/09</HED_MAT20_request>
            <CCI></CCI>
            <CCI_criticality></CCI_criticality>
            <_CCI_MAT20_request></_CCI_MAT20_request>
            <APG></APG>
            <APG_criticality></APG_criticality>
            <APG_MAT20_request></APG_MAT20_request>
            <STE></STE>
            <STE_criticality></STE_criticality>
            <STE_MAT20_request></STE_MAT20_request>
            <IMS></IMS>
            <IMS_criticality></IMS_criticality>
            <IMS_MAT20_request></IMS_MAT20_request>
        </IP>

    Hi Kevin,
    the current XML export version is admittedly not suitable for handling HTML data, as it doesn´t put any data inside CDATA sections.
    How can I strip out this HTML using the XML export?
    I´m not aware of this functionality, but I´m sure it would have to be integrated into the respective "includes" files in order to become effective.
    However, you might consider using the manual "converting database queries to XML" approach explained on this page: http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html -- this will give you notably more freedom to e.g. preprocess some data before it´s getting stuffed inside an XML node.
    I am pulling RSS feeds from news sites and storing the rss items in a database
    Would it be possible to rather sanitize the data before it´s getting stored in the database ?
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

  • Connecting to ADO Data Services using XML Data

    Has anyone attempted to connect to a database using ADO Data Services? My understanding of ADO Data Services is that it allows querying of the database in a REST format. So if I publish a site, I can get to its data with a URL like this:
    http://mysite/myservice.svc/entity where entity is a defined entity like Product, or supplier. Going to this site returns data that I have included at the end of this post, with the Entry node repeating (I only included the first Entry node). I definitely cannot use Web Service as my connection method, because there is no WSDL, but I was thinking maybe I could use XML. However, I have read the help file and several forum posts and I can't seem to figure out how to make XML work.
    <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
    - <feed xml:base="http://mysite/FpWebDataService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
      <title type="text">InfrastructureTickets</title>
      <id>http://mysiteFpWebDataService.svc/InfrastructureTickets</id>
      <updated>2008-12-22T14:44:03Z</updated>
      <link rel="self" title="InfrastructureTickets" href="InfrastructureTickets" />
    - <entry>
      <id>http://mysite/FpWebDataService.svc/InfrastructureTickets(1)</id>
      <title type="text" />
      <updated>2008-12-22T14:44:03Z</updated>
    + <author>
      <name />
      </author>
      <link rel="edit" title="InfrastructureTickets" href="InfrastructureTickets(1)" />
      <category term="FootprintsModel.InfrastructureTickets" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
    - <content type="application/xml">
    - <m:properties>
      <d:TicketID m:type="Edm.Int32">1</d:TicketID>
      <d:UserLastName>Phillips</d:UserLastName>
      <d:UserFirstName>Michael</d:UserFirstName>
      <d:TicketTitle>FAStT 700 updates</d:TicketTitle>
      <d:TicketAssigned xml:space="preserve">miphillips</d:TicketAssigned>
      <d:DateSubmitted>Jul 18 2005 9:55AM</d:DateSubmitted>
      <d:ChangeRequestType>BIOS__fFirmware__bUpdate</d:ChangeRequestType>
      <d:ChangeImpact>Major</d:ChangeImpact>
      <d:ChangeRisk m:null="true" />
      <d:OutageRootCause m:null="true" />
      <d:SolutionType m:null="true" />
      <d:TicketType m:null="true" />
      <d:ChangeReason>Maintenance</d:ChangeReason>
      <d:OutageScope m:null="true" />
      <d:OutageManagerDescription m:null="true" />
      <d:ProblemCategory m:null="true" />
      <d:SubmissionType m:null="true" />
      <d:TicketPriority m:type="Edm.Int32">3</d:TicketPriority>
      <d:TicketStatus>_DELETED_</d:TicketStatus>
      <d:UserID>MiPhillips</d:UserID>
      <d:SubmitDate m:type="Edm.DateTime">2005-07-18T09:55:51</d:SubmitDate>
      <d:UpdateDate m:type="Edm.DateTime">2005-07-19T09:26:41</d:UpdateDate>
      <d:TicketAge m:type="Edm.Int32">1253</d:TicketAge>
      <d:TicketUpdateAge m:type="Edm.Int32">1252</d:TicketUpdateAge>
      <d:DescriptionCount m:type="Edm.Int32">2</d:DescriptionCount>
      </m:properties>
      </content>
      </entry>

    Hi lilutchay,
    If the SQL Server Integration Services is Enterprise or Developer edition of SQL Server 2008, we can use
    Microsoft Connector Version 1.2 for Oracle to connect Oracle databases with version Oracle 9.2.0.4 or higher, Oracle 10.x or Oracle 11.x. If the SQL Server Integration Services is Enterprise or Developer edition of SQL Server 2012, we can use
    Microsoft Connector Version 2.0 for Oracle to connect Oracle databases with version Oracle 9.2.0.4 or higher, Oracle 10.x or Oracle 11.x.
    While if we want to connect to other Oracle version databases, we can use
    OLE DB provider for Oracle which has been tested in SSIS labs and is recommended by Microsoft.
    For the detail steps for Microsoft Connector for Oracle, we can refer to the first blog suggested by Deric. For more details about the use of connecting to oracle using Oracle Provider for OLEDB from SSIS, please refer to the blog below:
    http://www.databasefun.com/archives/591
    Reference:
    SSIS with Oracle Connectors
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Meta dates in AlbumData.xml (date problems after upgrade)

    HI folk,
    Further to my post earlier today about the date mashup after upgrading, I was wondering if a [careful!] edit of the AlbumData.xml file might help.
    If I knew what these fields meant I might be able to work out what to do...
    <key>DateAsTimerInterval</key>
    <real>9850139.000000</real>
    <key>ModDateAsTimerInterval</key>
    <real>206299947.507982</real>
    <key>MetaModDateAsTimerInterval</key>
    <real>206299831.664670</real>
    Which one (if any of these) does iPhoto use when deciding what order to display the photos in? And what are the numbers? Seconds since 1984? Picoseconds since the Woz left the company? Curious minds want to know.
    And yes, I'd use a backup for experimentation.
    Rob

    Rob,
    That timestamp is probably based on the [Unix Epoch|http://en.wikipedia.org/wiki/Unix_time], the basis for almost all time stamps in programs based on Unix and/or the C programming language. If those dates are in fact based on the Unix epoch, they are based on the number of seconds since Jan1, 1970.
    Sometimes such dates are represented as integers (like DateAsTimerInterval seems to be) and sometimes they are represented as floating point numbers (like the other two) in an attempt to circumvent the Year 2038 problem.
    You may find this useful: [http://www.unixtimestamp.com>
    Personally, I would love to find out how your experimentation goes - what fails and what works; if you have to go through any hoops to get iPhoto to recognize your changes; if exporting a photo changes its EXIF timestamps after you play with the XML file, etc.
    nathan

  • How to call a PL/SQL procedure from a xml Data Template

    We have a requirement in which we need to call a pl/sql package.(dot)procedure from a Data Template of XML Publisher.
    we have registered a Data Template & a RTF Template in the XML Publisher Responsibility in the Oracle 11.5.10 instance(Front End).
    In the Data Query part of the Data Template , we have to get the data from a Custom View.
    This view needs to be populated by a PL/SQL procedure.And this procedure needs to be called from this Data Template only.
    Can anybody suggest the solution.
    Thanks,
    Sachin

    Call the procecure in the After Parameter Form trigger, which can be scripted in the Data Template.
    BTW, there is a specialized XML Publisher forum:
    BI Publisher

  • Need to update PDF template based on XML data source - POAWDSF33 in PO

    I need to update a seeded PDF template - POAWDSF33 which is pdf type in Purchasing PO application to add some columns & reformat template according to client needs.
    This template picks data from two xml based Data definition [Award Data template] :
    PO_STD_PO.xml     
    POAWDFPDSNG.xml
    As of now what i understand is , to download acrobat 5 pdf & edit PDF template...but how shall i update XML document which as queries..i think i have to add some columns in queries.
    Please help me..any pointers would be very helopful.

    Hi Ranveert,
    For PDF template -
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T481159.htm
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T518230T518233.htm#4536893
    For Data template -
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/T421739T434255.htm
    Complete doc -
    http://docs.oracle.com/cd/E10415_01/doc/bi.1013/e12187/toc.htm
    Thanks,
    Vignesh

Maybe you are looking for

  • Can't find model number

    So I have a satellite and it won't turn on and I think the power port is broken so it won't turn on and the sticker on the bottom had worn off so I can't find the model number and can't turn it on to get it from the bios. I only have the battery mode

  • Problem in pagelifecyle

    hi I created page life cycle for my page and im trying to initialize page by using following code in prepare model method. FacesContext ctx = FacesContext.getCurrentInstance(); Application app = ctx.getApplication(); ValueBinding first = app.createVa

  • Automatic commands when upgrading packages

    [I'm not sure where my question should be posted so I've just droppped it here. Also sorry the bad english =/] Whenever I upgrade some packages (as linux, man-db etc) pacman runs some post-installation commants (as mkinitcpio, man-db update etc). Doe

  • Pdfcreator invokes LabVIEW run-time engine installer!

    Okay, so I'm a desktop tech, know little about LabView, but can at least install it.  We also use pdfcreator on our desktops.  For some reason, however, whenever pdfcreator is used (for ANYTHING, not just LabView stuff), a windows installer fires up,

  • No tools show selection

    Hi, First of all I'd like to say that I've looked through pages and pages of this forum looking for the answer to my following problem...I appologise if it's already been covered and I've missed the post... Vista home premium 32bit Photoshop CS4  Ext