Modify Header in XML report

There is an example in the users manual to modify the report header by using a callback, Chapter 10-12 Adding to a Report Using Callbacks. Will this work for xml reports in TS 3.1? I don't have any experience with xml, but need to add text and possibly an image to the header of a report.  My attempts so far do not generate any errors, but do not output anything to the report. I can break on the statement in the callback so I know it is called as the report is generated.

XML is a language designed to contain data with no information on how to present it.  You can open the XML report in notepad to see what the raw XML data looks like.  You'll notice it is far different than how you view the report.  To make the data more presentable, a style sheet (XSL) is used to translate the data.  This converts XML data into a HTML document to present the data in a more user-friendly way.  The style sheets are completely customizable.  If you wish to display a picture, you would need to modify the style sheet.  You also may need to modify the header of the XML document to describe what picture should be displayed.  These tasks are not trivial for beginners in XML.
For more information on XML, i would recommend http://www.w3.org/XML/.
Allen P.
NI

Similar Messages

  • How can I modify xml report body content ?

    I am trying to modify the Teststand XML report to display the actual datasource name instead of "numeric" when I used a Numeric Limit step. In other words, I want to be able to rename the "numeric" label with something of my choice.
    I saw some examples on report modifications, but nothing to the point.
    Thanks,
    Sam

    Hi,
    Is the following link any help
    http://zone.ni.com/reference/en-XX/help/370052H-01​/TOC39.htm
    Regards
    Ray Farmer

  • Modifying the header of an xml report

    I am looking to add some additional information to the header of horozontal.xsl but am struggling to find the right format. At present i have rewritten the modifyreportheader callback. It works fine for text but i cant get it to work for xml. Any suggestions? Many thanks in advance
    Tony 
    Please remember to accept any solutions and give kudos, Thanks
    LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7

    You can refer to the Adding Images and Text to Report Headers and Footers topic in the NI TestStand Help for information about changing the header for an XML report. 
    Callie Jones
    TestStand Documentation Team

  • Teststand, modifying xml report header

    1) How do I add a station gloabl variable to the XML report header? I am using standard expand.xsl.
    2) Does the example on this page work to change the displaying execution time in HH:MMS format? I am not seeing the expected resutls.
    http://zone.ni.com/reference/en-XX/help/370052H-01​/tssuppref/infotopics/changing_time_display/
    Thanks,
    -TC

    Hi,
    Here are the answers to your queries assuming you are using teststand 4.2 or above:
    1. Report header modification in expand.xsl is mentioned in the following link: http://zone.ni.com/devzone/cda/epd/p/id/4759
        In this explanation, the text which is getting display after the report generation can be replaced by a variable(local or global) in the "Modifyreportheader" callback.
    2. The display execution does work as explained by NI in the link provided.
    If you want the example for the above two queries please find the attached files and explaination given below.
    In the sequence file, in "ModifyReportheader" callback, the first statement includes "   Locals.newstring=" <Prop Name='New_Text' Type='String' Flags='0x0'><Value>"+Locals.message+"</Value> </Prop>
    where "locals.message" can be replaced by global variable.
    and you need to place the "expand.xsl" in stylesheets folder. Please rename the existing "expand.xsl" and place the new one.
    Hope this helps.
    Regards, 
    Surya.
    Attachments:
    Reportheader.zip ‏25 KB

  • How to add parameters to xml report header

    All,
    I've added two new parameters to my UUT information dialog (I made my own UUT information dialog) and I'd like to pass them to the header of my xml report.  The style sheet I've chosen to use is "report.xsl" and I've already added the two rows to my header; so what I'd like to do is pass these 2 parameters from the PreUUT callback to my report.
    First question: Is this possible?
    Seconds question: I've struggled finding "reading material" on this topic and am looking for some helpful hints on where to start.  To me this doesnt seem like something that should be that difficult, but maybe I'm mistaken?
    Any help is appreciated.
    Thanks,
    Bill
    John 3:16

    Hi Bill,
    In addition to making changes to the style sheet, we must also include the parameters you want to dispaly in the XML file using the ModifyReportHeader Callback. Please refer to this KnowledgeBase article for more information.
    http://digital.ni.com/public.nsf/allkb/17ABBD0BF2A60D908625774200798869?OpenDocument
    Hope this helps!
    Regards,
    Anjelica W.
    National Instruments
    Applications Engineer

  • Modify xml reports

    I would like to modify the xml report files of TestStand in the following way:
    < p>
    < xml version="1.0" encoding=UTF-8"?>
    < report>
    < product_number>xxxx< /product_number>
    < serial_number>xxxxx< /serial_number>
    < spec_info>< /spec_info>
    < options>< /options>
    < workstation>< /workstation>
    < operator>< /operator>
    < test>
    < name>< /name>
    < /test>
    < /report>
    < /p>
    So the xml file looks totally different like the xml files produced by TestStand.
    Is there any way to make this change - and how could it be done?
    Thanks in advance
    nicole e.Message Edited by Support on 06-17-2005 10:21 AM

    Nicole -
    It all depends as to whether you want to just update the GetXML calls or you want to control the format of the entire XML file.
    Internally GetXML recursively traverses a generic property object structure by going to its children and so on. It generates a list of strings that are eventually all concatinated together before returning.
    The default XML report schema contains the output from multiple calls to a GetXML all concatinated together. Separate calls are made to generate XML for various pieces of typed data like UUT, ReportOptions, StartTime, StartDate, StationInfo, and the result from the MainSequence call step in the Single Pass or the Test UUTs sequence.
    Since all the above components are built by the GetXML stream and you wish to simplify the entire schema, trying to make a single change to replace the GetXML calls in the XML sequence might not be possible.
    If you are only going to be doing post UUT results and not on-the-fly, you could write your own routine that replaces the Test Report sequence in the SequentialModel.seq. This sequence generates the report for a single UUT. You may want to consider writing your own routine using the parameters to the sequence which include UUT, ReportOptions, StartTime, StartDate, StationInfo, and the main sequence results. This way you can create the schema that you want.
    Scott Richardson
    National Instruments

  • RTF [XML] reports - Secondary header prob

    Hi al,
    We have a requirement in .rtf reports. We are generating delivery bill in this. We are generating 3 copies of same bill in the .rtf file. If 1 copy extends to more than 1 page then obviously for other copies also it will print the same. So, the requirement is we have to place different header from 2nd page for each copies.
    for eg:
    Header with logo
    body
    Page - 1
    Bill Header[Dispatch No etc..]
    Contents
    Page - 2
    Bill Header[Dispatch No etc..]
    Contents
    Page - 3
    Bill Header[Dispatch No etc..]
    Contents
    The above mentioned is structure of rtf.
    So, In the above eg. if the contents in page 1 increases to next page, i have to keep 'bill header' as header instead of main header with logo in the extended page.
    Could anyone please suggest how to proceed with this?

    Hi,
    I assume that you are giving the header information in the same report template. If that is the case you can use the following approach:
    a) Create seperate RTF template just for the header as follows:
    <?template:XX_HEADER_001?>
    <?end:template?>
    put the company logo, name etc. between those commands
    b) Create a seperate template for Header and attach the above template (XML Publisher Administrator -> Home - Data Templates)
    Lets say you name it as 'XX_HEADER' (short name)
    c) Add a new field (just as a normal report field) in the main report template
    d) Double click on the field -> Add Help Text -> Startus bar
    Please put the following command
    <?import:xdo://XX.XX_HEADER.en.GB/?>
    in this 'XX' stands for the Application short name,
    'XX_HEADER' is the short name of the header template
    'en' is the language short name
    'GB' is the country short name
    Please change these code according to your header template definiton.
    e) create another field below the field and give the following command in the status bar
    <?call-template:XX_HEADER_001?>
    Using this approach you can import the header to any reports. Also the same logic can be used for Footers as well
    Hope this helps. If you are already using this method, please ignore this.
    Please provide your emailid for sample templates.
    Regards,
    Sree

  • XML report is not giving heading while running from application.

    Hi Everybody,
    We are facing one issue in xml.
    XML report is not giving heading while running from application.
    Pls suggest.
    Regards
    Sreehari.
    Edited by: user1762471 on Sep 27, 2010 10:48 PM

    What application you mean?

  • Printing parameter values in xml report, and displaying it in header of the

    Hi All,
    Can anybody give me an idea to print the parameter values in the xml report.
    My requirement is like, I have 10 parameters in report builder, I have generated the xml file and created the .rtf template and finally registerted in oracle apps. But now, the requirement is to print the parameter values in the report output.I don't see any xml tags in the xml output.
    Any suggestion will be appreciated.
    Thanks in advance.

    I think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
    XML Tag Attributes: myParameter="&<P_1>"
    where P_1 is your user parameter.

  • Problem with the hierarchial fields in a Purchase order xml report

    Hi,
    I am having a problem with the hierarchy problem. We are populating attribute 15 of a PO header. some times it can be null. FYI, we are using 11.5.10 instance where oracle supports direct PO template rather than having a rdf file.
    And now in the xml report, if attribute15 of po header is not null then it is fine.
    But if attribute15 is null, then the template is picking from the next available attribute15 that is from the po lines. As the line level group of "LINES" is between the "PO_DATA" (header group), hence the template is checking for next available attribute15.
    Can any one please suggest how to design the template where we can make the template to check only for that tag at the header level group rather than the line level group tag?
    Thank You in advance.
    Regards,
    Srinivas.

    Hi
    Incase you want to transfer attachements from SRM to R/3, then you try implementing the BADI in SRM side. The BADI which will help in this case is
    <b>BBP_CREATE_PO_BACK</b> BADI.
    <b>Please read the standard SAP documentation of this BADI using SE18 Transaction, before making any code changes.</b>
    <u>Few Important SAP OSS notes to refer in this case -></u>
    Note 989184 - Transferred shopping cart with internal attachments
    Note 550071 - FAQ: EBP - Shopping Cart
    Note 916347 - Transfer shopping cart with internal attachments
    Note 1001130 - FAQ - Attachment questions (Buyside)
    <u>Few useful links -></u>
    <b>http://help.sap.com/saphelp_srm50/helpdata/en/49/b32640632cea01e10000000a155106/frameset.htm
    Re: Attachments to backend
    Re: Document Attachments in Shopping Cart
    Re: Attachment in SRM
    Re: SRM Documents and Attachments
    Re: Limit in Attachments of an item in Shopping Cart
    Re: return delivery text from material document is not passed to SUS
    </b>
    Do let me know, incase you face any problems.
    Regards
    - Atul

  • Page number problem  in xml report

    hi all,
    I have created one xml report  for purchase order
    I want to print the page number and po number for each page ,
    to achieve this i have inserted at header section the page number as "1"
    but it is displaying for only 1 and 3rd and 5th pages and so on
    kindly help me on this 
    thanks for all in advance.

    >
    i have inserted at header section the page number as "1"
    >
    why?
    >
    but it is displaying for only 1 and 3rd and 5th pages and so on
    >
    of course
    use
    >
    Page numbering
    Insert page numbers into your final report by using the page numbering methods of your word processing application. For example, if you are using Microsoft Word:
    1. From the Insert menu, select Page Numbers...
    2. Select the Position, Alignment, and Format as desired.

  • Help in XML Report output

    Hi Experts,
    I have created the XML report which will generate the output in EXCEL format. I have used the template(rtf) to generate the output. I am facing the critical issue the output file (excel) is giving output with headings( ex: empno,ename,job..)even if there is no record count in the query.
    But some times it gives the empty file(excel) without the heading information if the record count is zero.
    Could anyone suggest me to solve this error.
    Any solution or link will be great help for me. Waiting for your valueable reply
    Thanks in Advance,
    Ravi.

    Hi,
    Please see if this thread helps.
    XML publisher output report in excel format
    Re: XML publisher output report in excel format
    Regards,
    Hussein

  • How to put detail level data in the header of my report

    I have this XML from PIR05.rdf
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Generated by Oracle Reports version 6.0.8.28.0 -->
    <PIR05>
    <LIST_G_ITEM_NO>
    <G_ITEM_NO>
    <PAGE_NO>0</PAGE_NO>
    <ITEM_NO>4242301</ITEM_NO>
    <ITEM_DESC1>13MM Aries Cell Assembly</ITEM_DESC1>
    <LOT_NO>562354</LOT_NO>
    <LOT_DESC>4242301</LOT_DESC>
    <SUBLOT_NO></SUBLOT_NO>
    <LOCATION>WOR RECV</LOCATION>
    <GRADE_CODE>NONE</GRADE_CODE>
    <ITEM_UM>Each</ITEM_UM>
    <ITEM_UM2></ITEM_UM2>
    <LINE_NO>603</LINE_NO>
    <COUNT_NO>603</COUNT_NO>
    <P_ITEMUM2LABEL> </P_ITEMUM2LABEL>
    <P_ITEMUM2DASH> </P_ITEMUM2DASH>
    <F_ITEMUM2>1</F_ITEMUM2>
    <P_CSITEMUM2_LABEL> </P_CSITEMUM2_LABEL>
    <P_CSITEMUM2_DASH> </P_CSITEMUM2_DASH>
    </G_ITEM_NO>
    </LIST_G_ITEM_NO>
    <WHSE_DESC>OPM INVENTORY ORG</WHSE_DESC>
    <CS_NODATA>617</CS_NODATA>
    <CYCLE_NO>000000014</CYCLE_NO>
    <WHSE_OUT>WOR</WHSE_OUT>
    <DATE_OUT>2010-11-23T16:12:13+00:00</DATE_OUT>
    </PIR05>
    I have a template where I have a header section and a lines section which breaks the page on the value of the LOCATION. I would like to put the value of the LOCATION in the HEADER of the report. How do I reference the current value of LOCATION, for example on page 30?
    The report looks like this:
    whse_out cycle_no
    location lot_no
    location lot_no
    New page
    whse_out cycle_no
    location lot_no
    location lot_no
    How can I get the value of LOCATION in my "HEADER" section and have it be the same value as the first location listed on the page?

    Hi,
    you need to create an automated section break, .. in your for loop, add @section to the syntax.. that will create a section break everytime the node enters a new location info.. in the header just put in the tag for the location, it will pick up the first location and display it there..
    -domnic
    p.s. if youre not able to do it, send me your template with a sample XML file, ill see what i can do.

  • XML Report Issue while generating the Report in EXCEL

    Hi All,
    I have Created the XML Report which will generate the output in EXCEL format. I am having the issue with the report output in EXCEL.
    In my Case,
    If I ran the concurrent it got completed normally and the output got completed normally and the output is generated successfully if the data for the input parameter combinations exists.
    Issue is if there is no data exists for the combinations of parameters choosen then it gives the output in excel with the headers alone some times. (meaning there is no combinations of data exists for the input given excel is having headers alone).
    wiseversa
    sometimes the output in excel there is no header part too..(meaning the excel is empty/null).
    Could anyone suggest how to resolve the issue so that the output in excel can include the header part if the data not exists for the input given. so that it should not generate the output as blank in excel i want the header alone should be included even if the report has no data for the input combination given.
    Its very urgent issue.
    Any suggestion will be a great help for me.
    Thanks ,
    Ravi.

    Hi,
    Please see if this thread helps.
    XML publisher output report in excel format
    Re: XML publisher output report in excel format
    Regards,
    Hussein

  • XML Report in Arabic login in Oracle apps

    Hi,
    I have created a XML report in Oracle apps, the data is coming properly from english login.
    But when we login from Arabic Login then report does not show any data.
    The data does not come even after hard coding the values.
    Any clue for the issue..
    Below is the main query in the report.
    SELECT
    PAC1.PAYROLL_ID ,
    PAC1.PAYROLL_ACTION_ID ,
    HR_PAYROLLS.DISPLAY_PERIOD_NAME(PAC1.PAYROLL_ACTION_ID) PERIOD_NAME,
    PRO.PAYROLL_NAME
    ,TO_CHAR(SYSDATE,'DD-MM-YYYY') REPORT_DATE1
    FROM pay_payrolls_f pro,
    pay_payroll_actions pac1
    ,PER_TIME_PERIODS_V V
    WHERE pac1.payroll_id = pro.payroll_id (+)
    AND pac1.effective_date BETWEEN pro.effective_start_date (+) AND pro.effective_end_date (+)
    AND DECODE( PAC1.ACTION_TYPE, 'H', NVL(pay_payroll_actions_pkg.decode_cheque_type(pac1.business_group_id), HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE', PAC1.ACTION_TYPE)), 'T', DECODE(instrb(PAC1.LEGISLATIVE_PARAMETERS,'SLA_MODE=Y'), 0, HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'GL'), NULL, HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'GL'), HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER', 'SLA')) , HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE', PAC1.ACTION_TYPE)) = 'Run'
    AND PAC1.Payroll_id = 61--:P_PAYROLL_ID
    AND PAC1.time_period_id = V.time_period_id
    AND to_char(v.start_date,'MM-YYYY') = '01-2013'--:P_MONTH

    in the next time use EBS related forums - https://forums.oracle.com/forums/category.jspa?categoryID=3
    BTW
    looks like that for Arabic language you haven't some data
    in your main query you have PER_TIME_PERIODS_V which based on HR_LOOKUPS which depend on session language
    CREATE OR REPLACE VIEW HR_LOOKUPS
    where FLV.LANGUAGE = userenv('LANG')
    ...so check data in HR_LOOKUPS for Arabic language
    you can check it by query without PER_TIME_PERIODS_V
    also you can modify your main query like
    select t.PAYROLL_ID,
           t.PAYROLL_ACTION_ID,
           t.PERIOD_NAME,
           t.PAYROLL_NAME,
           t.REPORT_DATE1
      from (SELECT PAC1.PAYROLL_ID,
                   PAC1.PAYROLL_ACTION_ID,
                   HR_PAYROLLS.DISPLAY_PERIOD_NAME(PAC1.PAYROLL_ACTION_ID) PERIOD_NAME,
                   PRO.PAYROLL_NAME,
                   TO_CHAR(SYSDATE, 'DD-MM-YYYY') REPORT_DATE1,
                   PAC1.time_period_id
              FROM pay_payrolls_f pro, pay_payroll_actions pac1
             WHERE pac1.payroll_id = pro.payroll_id(+)
               AND pac1.effective_date BETWEEN pro.effective_start_date(+) AND
                   pro.effective_end_date(+)
               AND DECODE(PAC1.ACTION_TYPE,
                          'H',
                          NVL(pay_payroll_actions_pkg.decode_cheque_type(pac1.business_group_id),
                              HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE',
                                                       PAC1.ACTION_TYPE)),
                          'T',
                          DECODE(instrb(PAC1.LEGISLATIVE_PARAMETERS, 'SLA_MODE=Y'),
                                 0,
                                 HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
                                                          'GL'),
                                 NULL,
                                 HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
                                                          'GL'),
                                 HR_GENERAL.DECODE_LOOKUP('TRANSFER_TO_LEDGER',
                                                          'SLA')),
                          HR_GENERAL.DECODE_LOOKUP('ACTION_TYPE',
                                                   PAC1.ACTION_TYPE)) = 'Run'
               AND PAC1.Payroll_id = 61 --:P_PAYROLL_ID
            ) t
      left outer join PER_TIME_PERIODS_V V
        on (t.time_period_id = V.time_period_id AND
           to_char(v.start_date, 'MM-YYYY') = '01-2013' --:P_MONTH
           )

Maybe you are looking for

  • How to create new partition on a brand-new Satellite P50T-A0EE?

    Hi, I bought a Toshiba, Satellite P50T-A0EE SLV laptop yesterday with installed Win 8, in Adelaide. First, I realised that only one C:/ partition is available and no additional partition is created for data and for some reason, already 150 GB is used

  • Printing from Pages 3.0.1

    Anybody know why I get a a 'paper too small' error when printing in A4 landscape to a HP B9180 using Pages 3.0.1? I have had to revert to Pages 3.0, which fixed the problem. Has anybody come across this with other printers, please?

  • Nitrogen --restore isn't working

    Hi, I've just installed arch and I must say that it's a wonderful dist! I have only one small little problem. I'm using openbox, and since I want a wallpaper, I'm using nitrogen. nitrogen is working great, the only problem is that nitrogen --restore

  • DHCP Relay using Brocade Switches

    Hi I have a large project with 3 UCM cluster with unity cluster and UCCX The network is a Brocade switch environement, The Core is using OSPF and distribution is Layer 2. I have configured the Cluster with a dedicated DHCP and TFTP service. DHCP rela

  • AS3 centering and resizing a background in existing code

    I have a code for a page I am using and I would like to add a background and have it resize with the screen like the rest of the page.  I have created a movie button named "pic" with the image in it but I don't know how to write the code and place it