Start:Body within a For-Each

I have a report where I have some fields at the top of the page that I want to repeat on every page, so I added a <?start:body?> under those fields so that it would repeat the information above. This report has been working great.
The problem is that now I need to repeat the whole report for multiple employees. I added another for-each above the <?start:body?> and it is giving an error. Is there a way around this?
For example, what I am trying to do is this:
<?for-each:G_STUDENTS?>Employee Name
HEADER INFO
FIELD_X
<?start:body?>
<?for-each:G_CLASSES?>
CLASS INFO
<?end for-each?>
<?end:body?>
<?end for-each?>
and repeat for multiple employees....
thanks in advance!
Rob
Edited by: Rob M on May 17, 2011 3:54 PM

i get the following (sorry for not formatting it correctly..not sure how to make it look nice):
ConfFile: C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\config\xdoconfig.xml
Font Dir: C:\Program Files (x86)\Oracle\BI Publisher\BI Publisher Desktop\Template Builder for Word\fonts
Run XDO Start
Template: H:\Garland ISD\XML Publisher\PRD\GISD Learning Management Transcript\gisdolmtxmlr.rtf
RTFProcessor setLocale: en-us
FOProcessor setData: H:\Garland ISD\XML Publisher\PRD\GISD Learning Management Transcript\GISDOLMTXML loc data.xml
FOProcessor setLocale: en-us
oracle.apps.xdo.template.fo.area.NoAvailableAreaException: Not enough rendering area. Please look into the incomplete output file for cause.
     at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(Unknown Source)
     at oracle.apps.xdo.template.fo.elements.FormattingEngine.checkInfiniteLoop(Unknown Source)
     at oracle.apps.xdo.template.fo.elements.FormattingEngine.createNewPage(Unknown Source)
     at oracle.apps.xdo.template.fo.elements.FormattingEngine.startLayout(Unknown Source)
     at oracle.apps.xdo.template.fo.elements.FormattingEngine.run(Unknown Source)
     at oracle.apps.xdo.template.fo.FOHandler.endElement(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLTHandler$EEEntry.sendEvent(Unknown Source)
     at oracle.apps.xdo.common.xml.XSLTMerger.startElement(Unknown Source)
     at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:181)
     at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1288)
     at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
     at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
     at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
     at oracle.apps.xdo.template.fo.FOProcessingEngine.process(Unknown Source)
     at oracle.apps.xdo.template.FOProcessor.generate(Unknown Source)
     at RTF2PDF.runRTFto(RTF2PDF.java:629)
     at RTF2PDF.runXDO(RTF2PDF.java:439)
     at RTF2PDF.main(RTF2PDF.java:289)
thanks,
Rob

Similar Messages

  • If statement within a for-each

    I'm trying to display the contents of the field DESCRIPTION if the field CUSTOMER_TRX_TYPE='Projects Invoice'. The output is within <?for-each:G_LINE?>, but CUSTOMER_TRX_TYPE is two levels above G_LINE - can I still reference the field?
    The xml hierarchy looks like:
    LIST_G_TRX / G_TRX / LIST_G_LINE / G_LINE
    I tried
    <?for-each:G_LINE?> <?if:[../CUST_TRX_TYPE='Projects Invoice']?> DESCRIPTION <?end if?>
    but that generated an error. Does anyone know if this is possible? If so, where my errors are?
    Thanks,
    Ed

    I found the answer to my own question ... for anyone else who might be hitting this problem, I needed one more ../ to get me to the level I needed. The following worked:
    <?for-each:G_LINE?> <?if:[../../CUST_TRX_TYPE='Projects Invoice']?> DESCRIPTION <?end if?>

  • XSLT for-each within another for-each

    Hi All,
    My XSLT mapping needs to pick a field(BOL) from the Header and the using that, search the Items node for the matching BOL and generate the output accordingly.
    My current XSLT is as follows(not the entire program, just the snippet)
         <xsl:for-each select="ns0:Messages/ns0:Message1/ns1:MT_Header/Header">
                          <xsl:param name="search"><xsl:value-of select="bol"/></xsl:param>
         <xsl:for-each select="ns0:Messages/ns0:Message2/ns1:MT_Items/Item[BOL=$search]">
                  <Output>
                     <BOL_ITEM><xsl:value-of select="BOL_ITEM"/></BOL_ITEM>
                </Output>     
         </xsl:for-each>
         </xsl:for-each>
    The following code works correctly(without the outer for-each and with hardcoding)
                             <xsl:param name="search">100</xsl:param>
         <xsl:for-each select="ns0:Messages/ns0:Message2/ns1:MT_Items/Item[BOL=$search]">
                  <Output>
                     <BOL_ITEM><xsl:value-of select="BOL_ITEM"/></BOL_ITEM>
                </Output>     
         </xsl:for-each>
    So its the for-each within another for-each that does not work . Is there some syntax problem ? Or another way to achieve this in XSLT?

    Closing this thread

  • Unable to set a new value in an extended property from within a For Each Loop

    Setting a new value in an extented property fails when the property is dereferenced within a For Each loop usin the item  iterator. However, if you use the First or Last Iterators from the Find Targets activity works fine.
    The error message is : "Setting a value for this object type is not allowed"
    I believe this is a defect, can you please confirm

    Looks like a bug that needs to be reported.
    While we are figuring out the issue you can work around the bug.
    Add another "Find Targets" inside the loop, and use the ID of the current item in the loop to find the target (again) by ID.
    And then use Set Variable on the target that was just found...
    I know... Not an ideal workaround, so please open a Severity 4 bug for this.

  • Get Start and End times for each step in a job

    Can someone tell me how to get the start and end times for each step in a background job?  Table TBTCP only stores the time that the step was saved in a background job.  Table TBTCO stores the times for the entire job and not each individual step.
    Thanks.
    Ryan

    Hi,
    Please check this tables and FM perhaps they may help
    TBTCJSTEP  - Background Job Step Overview
    TBTCR          - Batch scheduler execution time
    TBTCS          - Background Processing: Time Schedule Table
    GET_JOB_RUNTIME_INFO
    Regards,
    Ferry Lianto

  • Custom text component with different start and end points for each line

    I'm trying to create a custom component extending textArea in which each individual line in the textArea would have different start and end points.  For example, the start/end points for line 1 might be 20 pixels in the front and 35 pixels at the end but start/end points for line 2 might be 25 pixels in front and 20 pixels at the end, etc.  These boundary values would be passed in.  The width of the entire textArea component would be a fixed size.  The result would be something like this:
         Jack and Jill
              ran up the hill
      to fetch a pail of water
    depending on the boundary values of each individual line of course.  The custom component would take a string and render it in the text component with the appropriate individual line start and end points.  I'm trying to do this by adding the text component to the display with the passed in string and then adding in spaces in the beginning of each line and adding a "/n" at the end of the line wherever appropriate based on the start and end values for that line.
    Just wondering if I'm on the right track and if anyone has any advice on this.

    > Applying the marker places the same icon on all lines of the graph and I need a different one for each
    What do you have selected when you assign the marker? It
    shouldn't apply to all the markers on the whole graph unless you have all the existing markers selected when you apply the new one.
    Assigning marker designs is exactly analogous to assigning bar graph designs.
    If you have a single marker selected when you assign the new design, it will apply to only that graph data point.
    If you use the group select tool (or option-click with the direct select tool) to reclick on an already-selected marker until all the markers for the same line are selected, and then assign a design, the new design will apply only to the selected line. (You can extend the graph by adding more rows, and the new data points will inherit the marker for the line they are on.)
    The thread linked to below demonstrates in more detail how the marker designs are scaled:
    http://www.adobeforums.com/cgi-bin/webx/.3bc10970/0

  • Calling a Function Within a For-Each in Powershell

    Error:
    Unexpected token 'in' in expression or statement.
    At :line:1 char:22
    + ForEach-Object ($i in  <<<< $fs_size_info) { $i.Name.Name, GetGB($i.Sum)  }
    Code:
    foreach ($i in $fs_size_info) { $i.Name.Name GetGB($i.Sum) }
    If I omit the function from inside this foreach, it works perfectly, and I can access $i.Sum within the foreach as well. The problem arises when I try to call a function from inside the foreach. GetGB simply returns a more readable format e.g. GetGB(1024)
    will return "1 K" etc...
    I don't understand what I'm doing wrong, unless you cannot call a function inside a foreach statement.... am I missing something?
    Thanks

    The code you've posted and the error message don't seem to go together, unless the line before that "foreach" keyword happens to have ended with a pipe character.  There's a difference between how you use the foreach statement (help about_Foreach)
    and the ForEach-Object cmdlet (help ForEach-Object).
    Either way, it looks like inside the loop body, you've got two statements:  ($i.Name.Name) and (GetGB($i.Sum).  Those statements need either a line break or a semicolon between them.

  • Can you set firefox to start a new process for each window?

    I seem to remember being able to do this in earlier versions of netscape/mozilla/firefox.
    Is it still possible?
    It's nice to be able to kill one window when it hangs, without having to kill them all.

    Nope, Firefox has always run under one process for all windows.

  • Custom sorting within "for-each-group:current-group"

    Hi, I need some help in doing a custom sort within a "for-each-group:current-group". My formatting is in a table format but I'm not sure how to post a table here so I'm just arranging the column details out as it would look in a table. I have a column on the left for the YEAR and a second column on the right for the DESCR. Under the DESCR column I've inserted a nested table with four columns: SUBJECT, CATALOG_NBR, DESCR250 and GRADE.
    COLUMN 1:
    <?for-each-group:row_table;./ YEAR?><?sort: YEAR;'ascending';data-type='text'?><?YEAR?>      
    COLUMN 2:
    <?for-each-group:current-group();./DESCR?><?DESCR?>
    NESTED TABLE (with 4 columns):
    +<?for-each:current-group()?><?SUBJECT?><?CATALOG_NBR?><?DESCR250?><?GRADE?><?end for-each?>+
    <?end for-each-group?> <?end for-each-group?>
    I'm able to sort by YEAR in the "for-each-group" on the left column. But I also want to do a custom sort on DESCR in the right column.
    I've seen this blog on custom sorting by Vetriselvan: http://winrichman.blogspot.com/2009/09/custom-dynamic-sort-in-bi-publisher.html and I tried inserting this sort below after <?for-each-group:current-group();./DESCR?> but I get an error message.
    <?sort:(number(DESCR='Status')*1)+(number(DESCR='First Semester')*2)+(number(DESCR='Second Semester')*3);'ascending';data-type='number'?>
    I've also seen this thread: Re: Sort within group and tried inserting <?for-each:DESCR?> before the sort (as below) - this time I can preview the results, but it is not sorting as required.
    <?for-each:DESCR?><?sort:(number(DESCR='Status')*1)+(number(DESCR='First Semester')*2)+(number(DESCR='Second Semester')*3);'ascending';data-type='number'?>
    Can anyone help me custom sort the DESCR column? I'm using Template Builder for Word version 5.6 build 45. Thanks in advance for any help!

    Hi Vetsrini,
    I tried adding <?sort: ./DESCR;'ascending';data-type='text'?> after <?for-each-group:current-group();./DESCR?> but I'm getting an error message.
    The DESCR values are below and I'm trying to sort them in the following order.
    STATUS
    SUMMER SEMESTER
    FIRST SEMESTER
    AUTUMN SEMESTER
    WINTER SEMESTER
    SECOND SEMESTER
    SPRING SEMESTER
    Because I need them in the above order, I can't use ascending or descending, and instead need to use a custom sort order. Do you know how I can go about creating a custom sort order?
    Thanks!

  • For Each atoms

    Hello Experts:
      Is there a way to update local variable within the for each loop. I would like to update failure / success on DI object within the loop activity. Thank You!

    Hello Experts:
      Is there a way to update local variable within the for each loop. I would like to update failure / success on DI object within the loop activity. Thank You!

  • OSB:Publish to business service with for each in osb proxy message flow

    Hi,
    I have an external application that will make a call to my web-service and post a message to my queue "A" and i need to model my osb component such that it picks the message from that queue " A"and posts it to another queue "B". All this is done without any BPEL involved.
    for publishing the message i have created a business service that publishes a msg to the queue A and my proxy service is modelled such that it subscribes to this same queue A and publishes the msg to another business service (that posts it to a queue B).
    Everything is working fine but i have an issue in modelling my proxy message flow. If an external application sends a bulk msg i need to post the message one by one to my queue B. I have used for-each and Publish to BS but the msg doesn't get posted one by one. i know i am missing something please help me out.
    SOA Suite Version - 11.1.1.3

    Are you sure that your for-each definition is correct? Does the flow within the for-each get executed multiple times?
    You can check this by logging the variable to which you assign the message in the for-each. Don't forget to put the log level to Error, so you're sure that it's logged.
    Let's say you get a list of persons like the following xml in a variable personList
    <Persons>
    <Person>Glenn</Person>
    <Person>Prasanth</Person>
    </Persons>
    Your for-each definition should be the following.
    For each variable: person
    XPath: +./Person+
    In Variable: personList
    You don't mention the Persons element in the XPath expression since it is the root element of the XML. The root element is represented by . (dot).
    In the for-each, the variable person can be used like any other variable.

  • Define a set duration for a learning object for each delegate

    Hi All,
    I am deploying some elearning content through OLM. This will be part of an induction course, and I want the actual class available for 3 months for each learner. However, what I dont want to do is create a new class for each learner. Is there a way I can make the learning object available for three months for each new enrolment without having to create a defined start and end date for each class.
    In essence I have a class that I want to be open ended but once someone enrolls they get 3 months to complete. Apologies if I have missed something obviios.
    Cheers All
    Carl

    I can't think of a way to make the class available to a learner for just 3 months.
    To accomplish what you're trying to do, we have created a Descriptive Flex Field at the Class/Enrollment level called "Completion Due Date."
    We have also set up a process that runs every Monday to identify anyone who was a new hire in the past week and enroll them in certain classes, with a completion due date assigned of sysdate + some # of days.
    So you could establish a similar process and say the due date is 90 days from sysdate.
    We have also established a reminder email via alert that is generated 7 days before the completion due date.
    You can accomplish something similar with a Learning Path, but we can't auto-enroll learners in a Learning Path via API (although I've received conflicting information about the ability to do this), and we value the ability to enroll people directly, rather their having to search for the class or learning path.
    A certification may be able to do what you want too, but conceptually and functionally I don't know if it's fit for what it sounds like you want to do.
    Hope that's helpful.

  • Is there a DJ app for the Ipad that will read the "start" and "stop time" setting for each individual song, as they are set in the song Options screen in Itunes?

    Is there a DJ app for the Ipad that will read the "start" and "stop time" setting for each individual song, as they are set in the song Options screen in Itunes? The Ipod Touch, by itself does not allow cross-fading, therefore when the stop time is edited short, the song jusst truncates then goes to the next song. I tried the DJay ap and while it would crossfade, it would NOT read the song settings for the stop marker. So now I want to try and Ipad and see if there is an app that will READ the Itune stop settings within the song. I do NOT want an app that will allow me to DO the stop marker. I want an app that will READ the stop marker from the song as it is set in Itunes.

    Itunes provides the option for setting the Start and Stop times of each music track.  However, the start and stop times do not synchronize to the iPhone.  I don't understand why this option is even available as it doesn't work when listening to music on the phone.  I have not found another application that will support the start and stop time markets.  I have searched quite a bit for this but can't find anything.  I hope we can find something. 

  • For each loop start on odd page number

    Hy,
    I've an rtf template with a for each loop. I want to skip a page between each loop and to start each new loop on an odd page number (duplex printing). It's easy to skip a page but i don't know how to start each loop on an odd page. i've tried this before or after my for-each
    <?section:force-page-count;'end-on-even-layout'?>
    but it doesn't work for me.
    Sorry for my english
    regards

    One way of doing this is to create an object (B_1) at the end of the report and only have the object print if the current page is an odd page.
    - To force the page break, you need to set the "page break before" property against "B_1".
    - To test the page number in the format trigger use the srw.get_page_num(page_num out number) built-in function.
    You need to make sure that "B_1" is formatted after all the other objects in the layout. One way of ensuring this is to create a frame around all the other objects and make the frame variable. Any objects that come below the frame will be formatted after the variable frame.
    There is still the issue of any margin objects. Since margin objects print before any objects in the body, your margin objects will still print in the overflow page. However, this may be what you want if you're printing the page number in the margin.

  • Where is the import option for "Start a new clip at each scene break" in iMovie 2013?

    I am currently in the process of importing several mini-DV tapes via firewire into iMovie 2013. I have the most recent version of iMovie and am using a Sony Handycam to facilitate the transfer. The problem I am having is that when I hit import, iMovie splits what is supposed to be a single scene into multiple scenes ranging anywhere from a second to 5 minutes. I am left with several scene chunks that I cannot combine into one. I did a little research and found that iMovie is probably deinterlacing my scenes as it mistakes them for multiple scene breaks. In the older iMovie options, all I had to do was to go to "Preferences" -> "Import" -> then deselect "Start a new clip at each scene break". However, this option doesn't appear to be available in iMovie 2013. Is there a way I can force iMovie 2013 to import a single scene from my mini-DV camcorder without breaking it into multiple clips? Thanks!

    1st : this is the wrong forum, this is iMovie for ipod/iphone and ipad ( iOS is the OSX mobile Operating System )
    2nd : iMovie 11 is the current OSX version.  iMovie 06 was the last of its kind, all newer, including iMovie 09 have complete new workflow, so functions of 06 are gone and have replaced with others.
    Please go to the correct forum to find specific answers.

Maybe you are looking for

  • PSD Files black - Elements - 6

    Hi, I have been working with Elements - 6 and now have "saved as" PSD files showing as black in a storage folder.  In the past they did appear as a contact size image file - - viewable.  When clicking on the black PSD file it will open into Photoshop

  • Material not subjected to inv. management

    hai this is regarding po.when we r raising po system showing following error.  material not subjected to inv. management in plant(x). regards jayakar

  • Download files from table.

    HI Experts, I have some files stored in a table. The table structure is as follows. MANDT     MANDT     CLNT     3     0     Client RELID     INDX_RELID     CHAR     2     0     Area in IMPORT/EXPORT data table TEXT_AREA     CHAR3     CHAR     3     

  • Is there any way to install Firefox on Kindle Fire?

    unable to install Firefox on Kindle, really want to

  • Alignment please help

    Hi all, i have an issue while printing in script. my requirement is to print the line heading on left corner and price field on right coner in the same line. ex : total value :                                                                 700.00 am