Reprocess XML data to deliver multiple copies

I am working with the Word Template Builder. I have an XML database to process into a PDF file. When I use XML syntax and for-each@section as the context in order to restart page numbering with each new document, it works fine. If I duplicate the for-each loop and try it again, I get no data to display - "This file cannot be opened because it has no pages to display". Once I pull out either of the for-each loops, it processes as expected. I'd like to reprocess the same data file in this manner in order to get multiple copies of the same data. If I pull out @section, it will process the data twice, but then the page numbering starts at 1 and is not reset at the beginning of each new document. If 3 documents are there totalling 7 pages, I get page 1 of 7 and 2 of 7.
Any ideas how I can reprocess the same data file multiple times using the section context so that page numbering will be reset with each new section (document)?

If you are talking about a page with an insert query, ignore the fact that it's a page refresh.  It's just another way that someone can insert duplicate records.  I like to handle this in my insert query.
insert into thetable
(f1, f2, etc)
select distinct
value1, value2, etc
from some_small_table
where you don't already have that record

Similar Messages

  • How do I use one set of XML data and populate multiple layouts with it?

    I have an XML document with root element BOOK.  Inside BOOK are PAGEs.  (I also have each PAGE as it's own XML file, so that I can update each PAGE individually.)
    I have a print layout of 6"x9" and I want to create an iPad layout (H & V).
    When I create the V layout, I have the 6x9 master set to "scale" in liquid layouts and it works great.  But in my XML structure, everything gets duplicated.  Now there are two sets of data.  When I create the H layout, now I have three sets of data.
    So then I tried deleting everything in my iPad masters and setting them to be based on my print masters, but the content isn't scaling.
    Let me know if you have questions, because I'm not sure where I might need to clarify.  Thanks in advance!

    Roger Wilmut1 wrote:
    nategm wrote:
    On my MacBook Pro, if I get a USB-headphone connector (to add another audio port), will I be able to set one audio port as input and the other as output?
    Yes, either way round. In System Preferences>Sound you can set the input and output ports separately.
    Roger, the System setting have -Nothing- to do with the question being asked. Do you use Logic Pro audio software? If you did you would know Logic has it's own audio settings that run independently from the System audio. There's also the fact that Maverick has problems with "some" older USB 2.0 audio hardware. Basically, this is not a slam-dunk, that's why I suggested asking someone if they've used this combination before. Although... the USB audio device is cheap ($10) it might be worth it to try. Still.............**
    ** I question the wisdom of using cheap audio hardware on a computer that cost $1000+, software that costs $200 and then using the internal audio chip ($2) and an external monitoring device that costs $10. Defeats the whole purpose of using professional audio software.

  • Multiple Copies of Same Data in RTF - Looping using variable

    We have a requirement, where an Invoice batch job will run
    at night and pick up all the entire invoices, batch would contain invoices of
    different customers.
    Each customer will have DFF at site level informing number
    of copies required to be printed.
    Eg:
    Customer ABC Invoice ABC111 No. of Copies -4
    Customer PQR Invoice PQR222 No. of Copies -2
    Customer XYZ Invoice XYZ3333 No. of Copies -1
    I am trying to use following variable in the RTF, for the data to loop but it creates various problems
    Grouping and Variables:
    <?for-each@section:G_HEADER?>
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,DFF,1)?>  --- value coming in XML tag from DFF
    <?for-each:/?>
    The actual invoice tables and rtf
    <?end for-each?>
    Problems:
    If I remove <?for-each:/?> tag, I am
    getting the looping of data but the output file has no data from tags – only column
    labels / headers appear ---- But looping happens
    a.) With <?for-each:/?> tag,
    sometimes the RTF works and looping happens along with data and something the RTF crashes with below error
                  oracle.xdo.XDOException:java.lang.reflect.InvocationTargetException
    b.) When I try with a data containing just single invoice – looping and everything works as expected.
    However, if I load data which has multiple invoices each having different value in DFF for looping, entire file only contains first invoice ---- Looping happens still but does not proceed to next group
    Solutions:
    Can someone please guide me to the solution?
    Please recommend what would be the correct syntax, so that each invoice gets looped dynamically in the RTF.

    Here's the dataset I used and tried to replicate what you were trying to achieve:
    <ROWSET>
    <ROW>
    <ITEM>A</ITEM>
    <COUNT>3</COUNT>
    </ROW>
    <ROW>
    <ITEM>B</ITEM>
    <COUNT>5</COUNT>
    </ROW>
    </ROWSET>
    Here's the code:
    <?for-each@section:ROW?><?variable@incontext:G1;current()?>
      <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,COUNT,1)?>
      <?$G1/ITEM?>
    <?end for-each?>
    <?end for-each?>
    So based on the count, there are 3 pages where A (from ITEM field) is printed and 5 pages where B is printed.
    Hope this helps.
    Bipuser

  • XML INVOICE REPORT- MULTIPLE COPIES

    Hi All,
    I am developing report for sales invoice. The source for the report is RDF and template designed using RTF for difffent operating units.
    Now We have an requirement to to print the invoice - 3 copies every time when user submit the request. In RDF we tried the option copies (system parameters) but it is not repeating the xml code thrice and for RTF layouts not working.
    Using Version
    Oracle Apps Release 12
    Oralce XML Publisher 5.6.2
    Word 2003
    If any one have ides please drop here..
    Welcoming your advice!.....
    Thanks
    Prabu

    We have a requirement, where an Invoice batch job will run
    at night and pick up all the entire invoices, batch would contain invoices of
    different customers.
    Each customer will have DFF at site level informing number
    of copies required to be printed.
    Eg:
    Customer ABC Invoice ABC111 No. of Copies -4
    Customer PQR Invoice PQR222 No. of Copies -2
    Customer XYZ Invoice XYZ3333 No. of Copies -1
    I am trying to use following variable in the RTF, for the data to loop but it creates various problems
    Grouping and Variables:
    <?for-each@section:G_HEADER?>
    <?for-each@section:xdoxslt:foreach_number($_XDOCTX,1,DFF,1)?>  --- value coming in XML tag from DFF
    <?for-each:/?>
    The actual invoice tables and rtf
    <?end for-each?>
    Problems:
    If I remove <?for-each:/?> tag, I am
    getting the looping of data but the output file has no data from tags – only column
    labels / headers appear ---- But looping happens
    a.) With <?for-each:/?> tag,
    sometimes the RTF works and looping happens along with data and something the RTF crashes with below error
                  oracle.xdo.XDOException:java.lang.reflect.InvocationTargetException
    b.) When I try with a data containing just single invoice – looping and everything works as expected.
    However, if I load data which has multiple invoices each having different value in DFF for looping, entire file only contains first invoice ---- Looping happens still but does not proceed to next group
    Solutions:
    Can someone please guide me to the solution?
    Please recommend what would be the correct syntax, so that each invoice gets looped dynamically in the RTF.

  • Import xml data in Access when multiple rows use the same fieldname

    HI.
    First of all sorry for my english :-) I have a LiveCycle Designer ES form with multiple rows that I send via e-mail as XML data.
    example:
    Row 1
    Firstname: John  Lastname: Dow
    Row 2
    Firstname: Steve  Lastname: Austin
    The exported XML is OK but when I want to import it into my Access database, only one row is imported. I pretty sure that the problem comes from the fact that may exported XML use the same fieldname (what is important if I want to import data in the correct Access field) but I don't know what to do to be able to import all the rows of the same Form.
    Any idea?
    Thanks a lot
    Frederic

    Hi Viktor,
    In case of order recognition rules you should increase the relevancy in the newer version of the cartridge so appropriate ORR will be triggered. In other xqueries, you can try using new namespace as a model variable for each and every version of the cartridge
    Regards,
    JP

  • Forms pulling Multiple Records from an XML Schema and XML data files - Adobe LiveCycle Designer

    I built a form in Adobe LiveCycle with an xml schema and data file.  The problem is with how the form renders the xml data file.
    I have a statement element that consists of about 6 fields (statementID, statementName, statementAddress, statementCountry, statementZip, statementDate, etc) of data in the schema that allows for multiple iterations - so one xml data file can contain multiple statements. These fields allow for null values.
    But here's the problem:  When any of the statements - say statement 2 of 6 - has a null value in one of the fields, if the xml data file doesn't have a placeholder
    (example of placeholder:  <statementName type="String"/>   )in the xml for that field, my form pulls the field value from the NEXT statement.
    This corrupts all the rest of the statement records, as this field is shifted up for all the rest.
    I know that in the past I haven't needed a placeholder when a field was null. But I'm wondering if when the data allows for multiple records the xml data file needs to generate the placeholder.  And where is the problem? In the Schema? The xml data file? My form?  And the 64-thousand-dollar question:  How to fix it?

    If your <statement> element is the one that repeats, it should be bound to a subform with the binding string of something like $.statement[*]. Then in that subform should be your fields and they should have bindings of $.statementID, $.statementName, $.statementAddress, etc.
    Kyle

  • Burning multiple copies of a data CD?

    I need to burn multiple copies of a data CD (50).  Dragging to a burn folder each time is tedious... is there a way I can enter the number of CDs to burn and then mindlessly feed blank CDs into the (external) burner?

    Well, not quite mindlessly ....
    A bit easier process would be to use Disk Utility to create a DVD/CD Master image of the folder you want to burn to CD.  Then use Disk Utility to repeatedly burn the CDs.  But you will still have to initiate each burn; there's no batch function and of course you have to manually feed the blank CDs into your iMac.
    In Disk Utility, do File > New > Disk Image from Folder.   Select the folder you want to image, then select Image Format = DVD/CD Master.   This will give you a .cdr file.   Then, still in Disk Utility,, select the .cdr file from the list of disks and click the Burn button.

  • Export XML data into multiple worksheet of an Excel file..using FO processr

    Hi,
    I need to export XML data into Excel output, the data should flow into multiple worksheet of the Excel file.
    Let me know if this can be done using XML publisher. If yes, please provide me the steps to do the same.
    Could not able to achieve this through by the below process:
    (1)     Created a RTF (which has single excel table structure).
    (2)     Generated the XSL file using XSL-FO Style Sheet.
    (3)     Passed the XSL file and XML
    which exported the data into an Excel (single worksheet) format.
    Please let me know, how this can be exported into multiple worksheets.
    Thanks & Regards,
    Dhamodaran VJ.

    Hi Dhamodaran ,
    pass me the template you created and XML. "Created a RTF (which has single excel table structure)."
    Let me have a look at it,
    For ID, look at profile.

  • Displaying Multiple XML Data on List Item List

    Hi there..
    Is it possible to display multiple XML Data on List Item List. I mean like the example below.
    and how to programatically load image that depends on the XML data value (0=down arrow, 1=up arrow) and also how to refresh data every 1 second.
    Thank you very much...

    Hi Ann,
    Write a Forms procedure and in that open a cursor fetching all data you want to show in the list element and populate the list within the loop using Add-List-Element built-in. Call this procedure in When-New-Form-Instance trigger. Whenver form will be opened the your list element will be populated automatically.
    Hope that helps you.

  • How to avoid multiple copies of data in page refresh

    How to avoid multiple copies of data in page refresh

    If you are talking about a page with an insert query, ignore the fact that it's a page refresh.  It's just another way that someone can insert duplicate records.  I like to handle this in my insert query.
    insert into thetable
    (f1, f2, etc)
    select distinct
    value1, value2, etc
    from some_small_table
    where you don't already have that record

  • OWB 10R2 XML_ETL_UTILS xml data into multiple targets

    I am having some trouble with loading an XML file correctly into the target tables.
    The XML is looking like this (simplified))
    <DATA>
    <ROW rowid="1">
    <FIELD1>bla1.1</FIELD1>
    <FIELD2>bla1.2</FIELD2>
    <CHILDREN>
    <CHILD id="c1_1">bla_c1.1</CHILD>
    <CHILD id="c1_2">bla_c1.2</CHILD>
    <CHILDREN>
    <PETS>
    <PET id="p1_1">bla_p1.1</PET>
    <PETS>
    </ROW>
    <ROW rowid="2">
    <FIELD1>bla2.1</FIELD1>
    <FIELD2>bla2.2</FIELD2>
    <CHILDREN>
    <CHILD id="c2_1">bla_c2.1</CHILD>
    <CHILDREN>
    <PETS>
    <PET id="p2_1">bla_p2.1</PET>
    <PET id="p2_2">bla_p2.2</PET>
    <PETS>
    </ROW>
    </DATA>
    A have a very simple data model:
    TABLE data (DATAID, FIELD1, FIELD2)
    TABLE datadetails (DETAILID, DATAID, DETAILTYPE, DETAILKEY, DETAILVALUE)
    (Both set to truncate/insert)
    When generating the pluggable mappings using the XML_ETL_UTILS each 'level' is generated into a pluggable map (DATA, ROW, CHILDREN, CHILD, PETS, PET).
    1) The first problem I have was how to keep the relationship between the 2 tables. When inserting data into the 'datadetails' table, the data has to been linked to the correct row of the 'data' table.
    This has been solved (not the best way I think) by manually modify the pluggable mappings CHILDREN, CHILD, PETS and PET to include and pass through the 'rowid' attribute so this 'rowid' can be inserted into the 'datadetails' table when inserting the details.
    -> My guess is that there should be a better way or the XML_ETL_UTILS should be able to generate the code to handle this 'parent<->child' relation preservation. Only I don't know how (yet).
    2) The problem I am facing now (after manually modifying the generated pluggable mappings to pass through the ID of the parent), is that for each parent ALL details of the XML file are inserted and not just the details belonging to that particular parent.
    It seems that when processing the data for the 'datadetails' table, it re-read the whole XML file and looks for all instances of the detail element of the particular pluggable mapping.
    This results in a 'datadetail' table looking like this
    DETAILID DATAID DETAILTYPE DETAILKEY DETAILVALUE
    *1 1 CHILDREN c1_1 bla_c1.1
    *2 1 CHILDREN c1_2 bla_c1.2
    *3 1 PETS p1_1 bla_p1.1
    4 1 CHILDREN c2_1 bla_c2.1
    5 1 PETS p2_1 bla_p2.1
    6 1 PETS p2_2 bla_p2.2
    7 2 CHILDREN c1_1 bla_c1.1
    8 2 CHILDREN c1_2 bla_c1.2
    9 2 PETS p1_1 bla_p1.1
    *10 2 CHILDREN c2_1 bla_c2.1
    *11 2 PETS p2_1 bla_p2.1
    *12 2 PETS p2_2 bla_p2.2
    This is off course not correct. Only the ones marked with a * should be there.
    When trying to add a filter within the pluggable mappings to only look for the elements that have the correct parent (fortunately we do have the parent ID available because of the previously mentioned manual modifications of the mappings), the code that gets generated is not correct because it generated code with incorrect (missing) references to the correct variables and doesn't work.
    -> Any idea of how to fix this?
    => More in general: what is the correct approach with OWB to load XML files that contain multiple rows and rows can have multiple level parent<->child relations? (Very common in XML world). Somewhere after processing we need a relational model to hold this data. Any help, examples, etc. is very much appreciated.
    Don't hesitate to call/e-mail me for questions/remarks, etc.
    Regards,
    Patrick

    Hi Tullio
    es you will have to regenerate the pluggable mappings (rerun the expert). and you can either rebuild your map or synchronize the pluggable mapping operator in the map.
    The error crept in when I introduced the 'create root node' option in the expert, this path worked, just the original did not ..sorry:) The fix should resolve your problem and I will get a full update uploaded.
    Thanks
    David

  • Filtering multiple-XML data model with parameters

    I have a data model that consists of a concatenation of 9 separate RSS feeds (weather information from 9 different cities coming from http://www.weather.gov/data/current_obs/????.xml, where ???? is the National Weather Service station ID). All of the feeds have exactly the same format. When I view the raw XML data, I see 9 different values of station_id and of every other tag. So the XML data looks fine. Now I'd like to be able to select one city at a time in an LOV dropdown.
    I've created a static LOV called Cities with the list of the 9 station ID's. I've created a parameter called city that is tied to that LOV.
    What I can't figure out is how to tie the selected city to the station_id field in the concatenated XML dataset.
    I've tied adding a parameter to each rss data set, entering each city's 4-character station ID into its Parameter Name field, and of course choosing city as the parameter. For example, the Parameters section for the Amarillo rss feed would show a Name of KAMA and a Value (Parameter) of city. While this seems logical, selecting the parameter on the View screen doesn't change the display.
    Is there a way to accomplish this?

    Ahhh, post as in "e-mail". DOH!
    E-mailed to you.

  • Printing multiple copies of PDF causes huge amounts of data to be sent to printer...

    Whenever I need to print multiple copies of a PDF file Acrobat sends the complete file for each and every copy. This really chokes the RIP or laserprinter and takes many times longer to print than needed.
    It seems it is something to do with the CS3 software for Intel Macs and the issue has been around for a long time... My only solution at this stage is to print PDFs from the Preview app (built into OSX).
    http://designorati.com/articles/t1/graphic-design/1140/indesign-cs3-bug-when-printing-mult iple-copies.phpprint/
    Is a proper fix ever going to appear for this issue?? Apparently it has been resolved in InDesign - why not in Acrobat?

    Try to uncheck the collate box.
    Mike

  • Problem with multiple XML data sources

    Hi there,
    I have a template (i'm using XML publisher). I need to use 2 different XML data files in the same template, but i couldn't find any way of doing so. Can somebody help me with this issue please? You obviously cannot load 2 XML Data sources in the same template.
    Thanks and Regards,
    Luke

    Is your xml stored some where,
    then
    Create datatemplate and use the xml as datasource.
    You can create it using the following sysntax
    <dataTemplate name="Employee" description="L" version="1.0">
    <dataQuery>
    <xml name="xml_emp" expressionPath=".//ROW">
    <url method="GET" realm="" username="" password="">
    file:///C:/dept_employee.xml</url>
    </xml>
    <xml name="xml_dept" expressionPath=".//ROW">
    <url method="GET" realm="" username="" password="">
    file:///C:/dept.xml</url>
    </xml>
    </dataQuery>
    <dataStructure>
    <group name="EMP" source="empxml">
    <element name="NAME" value="ENAME"/>
    your element here
    </group>     
    <group name="DEPT" source="xm_DEPTl">
    <element name="DNAME" value="DPTNAME"/>
    your element from 2nd xml here
    </group>     
    </dataStructure>
    </dataTemplate>
    Now your two xml source will become single source for the report.

  • Using Multiple Subpaths - question about nested XML data

    Hello.
    I am in the process of getting my head around the nested XML data that is one layer deeper than I know how to handle - ultimately I would like to populate a Spry MenuBar from the static XML file.
    Updates & revisions to the menu would be done by simply uploading a new XML file to the server whenever something needs changed.
    The problem I am having is in regard to more than one subpath.
    I can successfully get the "Menuheading" and the "items" to show but the "subitems" that should attach to the "items" are nowhere to be found. Once this is figured out, I will begin building my menu.
    I'm not getting an XML error when testing in Safari (Mac OS 10.5.8)
    I thing my problem lies here in the head section of the page - obviously somewhere in the subPaths area:
    <script type="text/javascript">var dsItems1 = new Spry.Data.XMLDataSet("MenuXML.xml", "/menu/menuitem", { subPaths: [ "items/item", "subitem" ] });
    and here in the body section at subitem:
    <tr spry:repeat="dsItems1">
    <td>{@id}</td>
                <td>{menuheading}</td>
                <td>{items/item}</td>
                <td>{subitem}</td>
            </tr>
    ==================================================
    The end result I would like rendered in the menu is:
    ==================================================
    Menuheading
    ---- Item (hyperlink)
    ---- Item (hyperlink)
    ---- Item (hyperlink)
    ---- Item
           ------- sub submenu item (hyperlink)
    Menuheading
    ---- Item
           ------- sub submenu item (hyperlink)
           ------- sub submenu item (hyperlink)
           ------- sub submenu item (hyperlink)
    ---- Item (hyperlink)
    ---- Item (hyperlink)
    ---- Item (hyperlink)
    ...and so on.
    I have attached both files in their entirety at the bottom of the post in hopes someone can help.
    ==================================================
    Here is the relevant HTML
    ==================================================
    <head>
    <script language="JavaScript" type="text/javascript" src="includes/xpath.js"></script>
    <script language="JavaScript" type="text/javascript" src="includes/SpryData.js"></script>
    <script language="JavaScript" type="text/javascript" src="includes/SpryNestedXMLDataSet.js"></script>
    <script type="text/javascript">var dsItems1 = new Spry.Data.XMLDataSet("MenuXML.xml", "/menu/menuitem", { subPaths: [ "items/item", "subitem" ] });</script>
    </head>
    <body>
    <div spry:region="dsItems1">
    <table class="dataTable">
    <tr>
    <th width="62">Menu ID</th>
                <th width="171">Menu Heading</th>
                <th width="257">Menu Items</th>
                <th width="257">Submenu Items</th>
            </tr>
    <tr spry:repeat="dsItems1">
    <td>{@id}</td>
                <td>{menuheading}</td>
                <td>{items/item}</td>
                <td>{subitem}</td>
            </tr>
    </table>
    </div>
    </body>
    ==================================================
    A representative snippet of the XML is shown here:
    ==================================================
    <?xml version="1.0" encoding="UTF-8"?>
    <menu>
         <menuitem id="0001" type="Aboutus">
              <menuheading>About Us</menuheading>
                   <items>
                        <item id="0011">Welcome to MHBS</item>
                        <item id="0021">History</item>
                        <item id="0031">Mission</item>
                        <item id="0041">Accreditation</item>
                        <item id="0051">Directions</item>
                        <item id="0061">Calendar</item>
                        <item id="0071">Board of Directors</item>
                                     <subitem id="0111">Meet the Board</subitem>
                        <item id="0081">FAQs</item>
                   </items>
         </menuitem>
         <menuitem id="0002" type="Academics">
              <menuheading>Academics</menuheading>
                   <items>
                        <item id="0012">Meet the Faculty</item>
                        <item id="0022">Elementary</item>
                        <item id="0032">Middle School</item>
                        <item id="0042">High School</item>
                        <item id="0052">Academic Achievements</item>
                                     <subitem id="0251">Test Scores</subitem>
                                     <subitem id="0252">College Acceptance</subitem>
                        <item id="0062">Accelerated Reading</item>
                        <item id="0072">Summer Reading</item>
                        <item id="0082">Guidance and Counseling</item>
                   </items>
         </menuitem>
    ... and on and on ...
    </menu>
    Should I be doing something with the Spry.Data.NestedXMLDataSet instead?
    If so, how do I implement that?
    many thanks in advance

    Yes, you should be using the nested dataset instead.
    Did you read: http://labs.adobe.com/technologies/spry/samples/data_region/NestedXMLDataSample.html ?

Maybe you are looking for

  • How do I put a sold sign on a photo in PhotoShop Elements 8?

    How do I put a sold sign on a photo in PhotoShop Elements 8?

  • How to remove .wmv files?

    I tried to download a .wmv video onto the ipad, but it didn't appear anywhere, and I just want to delete it to free up any space it may have taken. Any help is a big help, I don't see it on the itunes store, photos, or the video app.

  • File name question

    I want to add the copyright symbol to the filenema. How do I do that?

  • Number the packages to be upgraded

    I did a quick search and didn't see this brought up anywhere so either it doesn't exist or I missed it. Anyway, I think it would be useful to show numbers of packages being installed as they go by. I do IT for a school and I will go in and do a massi

  • IPhone 4 (ios 4.0.1) won't "remember" wifi networks

    It makes me log into my home wifi network every hour or so. It's like it loses the connection, then "Forgets" about the network. I have to go into settings->wifi, select my network, then put the password in all over again. Anyone else see this?