Alternating colours in Repeating table

Hi all, just wondering if it is possible to have more than
two colours in a repeating table row. I have about six different
background colours, it comes up with an error if I add more than
two to the repeating region code:
<!-- TemplateBeginRepeat name="RepeatRegion1" -->
<tr bgcolor="@@( _index & 1 ? '#E5D9DB' : '#C5D3D8' :
'#DBCBBE' )@@">
If it can't be done, any other ways I can add repeating
blocks of code with multiple alternating colours?
Cheers

cozzabags wrote:
> Hi all, just wondering if it is possible to have more
than two colours in a
> repeating table row. I have about six different
background colours, it comes up
> with an error if I add more than two to the repeating
region code:
>
> <!-- TemplateBeginRepeat name="RepeatRegion1" -->
> <tr bgcolor="@@( _index & 1 ? '#E5D9DB' :
'#C5D3D8' : '#DBCBBE' )@@">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8">
<title>Untitled Document</title>
<script type="text/javascript">
onload=function(){
var
trs=document.getElementById("T").getElementsByTagName("TR"),
len=trs.length;
var colors=["red","green","yellow"];
while(len--){
trs[len].style.backgroundColor=colors[len%colors.length]
</script>
</head>
<body>
<table width="760" border="1" cellpadding="2" id="T">
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</body>
</html>
Mick
>
> If it can't be done, any other ways I can add repeating
blocks of code with
> multiple alternating colours?
>
> Cheers
>

Similar Messages

  • How to loop and read repeating table data of infoPath form in Visual studio workflow.

    Hi,
    I am trying to read info Path form repeating table data in Visual studio workflow.
    could anyone elaborate me in brief how to loop through repeating table and read all rows value one by one in workflow.
    any help would be more then welcome. 
    Thanks...

    Hi Rohan,
    According to your description, my understanding is that you want to create a Visual Studio workflow to get data from info path repeating table.
    I suggest you can submit Repeating Table to a SharePoint List and then you can create a .NET workflow to read data from the SharePoint List.
    Here are some detailed articles for your reference:
    Codeless submitting InfoPath repeating table to a SharePoint list
    Create a Workflow using Visual Studio 2010
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Copying information from one repeating table to another repeating summary table?

    Hi,
    I have designed a dynamic form with a Table 1 (Investigator details) to be completed at the start to provide a list of investigators. This is a repeating table, and I have added buttons to add / delete an investigator (i.e. add/remove a row). I also have another repeating Table 2 at the end of the form to allow the investigators to be listed so they can insert a signature image (signature table).
    Is it possible to set this up so that when one adds an investigator (row) in Table 1, a row is added automatically to Table 2? I then want the Title First name last name to copy into the "Investigator Full name" cell in Table 2. Can this be done and keep the automatic renumbering of the rows in both tables?
    I am not sure how to upload a file to show you what I have, so please let me know and I can send a copy directly.
    I would appreciate if anyone has any suggestions for a code to do this.
    Regards
    Souheir

    Hi,
      Check the code below
    Data: itab1 type table of tab1,
          itab2 type table of tab2.
    * itab2 is of new table type created from some fields of tab1
    * In the select statement below you can select few fields depending upon your requirement
    select * from tab1 into table itab1.
    loop at itab1 into wa1.
      wa2-f1 = wa1=f1.
      append wa2 to itab2.
    endloop.
    insert itab2 into tab2.
    Regards,
    kinshuk
    PS: Reward points if you find it helpful

  • How to handle a repeating table in FrameMaker 8 with varying columns

    Hello,
    I have a unstructred FrameMaker 8 table question that I hope someone can answer for me.
    I have a RTF document that I have brought into FrameMaker 8.
    The table came into FrameMaker without any major problems.
    From FrameMaker 8, I now have to apply a special template to generate the special "Table Title" field, that allows the table to break across several pages; using the "Table Continuation Variable".
    Also, I must use select the "Add Rows or Columns" option and choose "Add 1 Row to Heading", so that my "Table/Column/Head" row repeats on every table page.
    With that said, here is where it gets interesting!
    ISSUE #1
    Usually, my next step is to add 20-30 rows to the last row on the first table page and then paste in the table data from the second (original) table into these new table cells. The end result is that the table will bump from page 1 to page 2 and "Table Title (Continued)" will automatically appear on the second table page - and so forth...
    It is not the fastest way to handle RTF tables, but this is the only approach I know off-hand.
    Does anyone know if there is a way to simply merge the legacy breaking tables together and then apply the "Table Continuation" variable and repeating Table Column Header row?
    ISSUE #2
    As mentioned above in Issue #1, I must manually add extra rows to the bottom of the first table page and then paste in the table data that flows over the next few pages.
    But, my multi-page table is based on procedural steps and therefore some table pages have 4 columns, while others have 5 columns.
    So, using the process stated above, I simply can't copy and paste.
    I must now manually add another column to the affected table page. But when I do this, FrameMaker 8 naturally adds an additional column to the first table page. When that happens, I must then go back to the first table page and straddle the new column into the original column.
    Does anyone know if there is a better way to handle these legacy (RTF) tables?
    Overall, I am hoping that there is an easier way of handling a legacy (RTF) table that breaks over several pages and has different columns, based on the section in the table.
    Thanks in advance for any solutions offered.
    Regards,
    Jim

    Rick Quatro has a plugin that handles some of your issues:
    http://www.frameexpert.com/plugins/tablecleaner/index.htm

  • How to add a running value from external field in a repeating table of SharePoint list

    I'me creating an infopath form that will display a SharePoint list. I want to add a link control in a repeating table using the value of the first column per row but I'm getting an issue. the link control displays only the first row. thanks in advance.

    Hi,
    I found a similar thread posted by you here:
    http://social.technet.microsoft.com/Forums/en-US/e1fa36c1-cb5c-456d-ba40-2f26301913d2/how-to-loop-through-each-row-in-a-repeating-table-using-sharepoint-workflows?forum=sharepointgeneralprevious
    I suppose both the threads are reuqesting the method to get values from repeating table via workflow, so we can focus on the issue on the other case. If there is more requestment here, let me know.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Using the Current Function in a repeating table with cascading drop-downs

    I have a Repeating Table where a customer can choose the values for three cascading drop-downs. I then want the member to start a new entry with the same cascading drop-downs but with different results based on their most current input not
    based on all their input throughout the form.  I also do not want the current input to affect previous inputs replacing what was already entered.  
    Please assist.
    -Ben
     

    Hi,
    Based on your description, you don't want to meet the following issues:
    The first row returns back all the data from the list up to the value selected.
    Any new item added, replaces the value in the other items.
    Here is an article about InfoPath Repeating Table Lookup control on SharePoint List, refer to it:
    http://www.sumitrawat.net/2009/10/infopath-repeating-table-lookup-control.html
    Besides, here is a similar post, you can use as a reference:
    https://social.msdn.microsoft.com/Forums/office/en-US/43253974-990d-4307-bf54-cc615618362a/issue-with-cascading-dropdown-in-a-repeating-table
    Best Regards,
    Lisa Chen
    Lisa Chen
    TechNet Community Support

  • Infopath submit button only works for the first row in a repeating table‏

    Hi, I have a InfoPath Email submit button issue I could not figure out. I have a master/detail repeating table in my form, and one of fields is "EmailAddress" which shows customer's email address. I created a submit button and put the "EmailAddress"
    field to "TO" object. When I tested it, the submit button only would return the first row of emailaddress from the repeating table, but not the rest of it..
    What I want is when I highlighted a customer, and click the submit button, the current customer's email address would show up in "TO" list. I did some research and saw some suggestions about using current() function. So I put current() in the front,
    like this:
    current()/dfs:dataFields/d:vw_HZLeadLists/@EmailAddress
    Still not working..Just return the first record of emailaddress from master repeating table... Does anyone know what's going on here? Thanks a lot!

    Hello,
    Use double eval to get all rows values. See my reply for more information in below thread:
    eval(eval(EmailAddress, 'concat(ToField, ";")'), "..")
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/cc22aeb7-351f-45a7-8a4c-94132c3e0db2/eval-semicolon-function-issue?forum=sharepointcustomizationprevious
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Repeating Table in Template -- Can't Edit It

    Hi --
    I created a template
    http://www.practice.thelegatogroup.com/Templates/employee_list.dwt
    ) to be
    used as a list of employees for a client. For the employee
    list I used a
    repeating table. All seemed to go OK when I created the
    initial list of
    employees
    http://www.practice.thelegatogroup.com/employees/employees_al.htm
    However, when I opened the page a few days later to add a new
    employee I
    couldn't. In fact, none of the controls (add row, delete row,
    move up, move
    down) work. To make matters worse, when I create a new page
    based on the
    above template I can add no new rows.
    I've gone over things several times and can't figure out what
    I did wrong.
    Can someone take a look for me?
    Thanks,
    John

    I have actually had a similar issue like this before and it was a simple fix once I figured it out.
    Move the folder that is in the trash to your Desktop.  Open it and then move the folder that is in there to the trash.  You should be able to empty the trash.  Next move the empty folder that you had put on the Desktop back into the trash and you should be able to empty it again.
    Also, you should run an app like DiskWarrior, TechTool Pro or Drive Genius that can rebuild the volume directories.

  • Reg. Repeating Table headers in Report Output

    Hi,
    I have designed a simple RTF Template as below.
    Sr. No. Customer No. Customer Name.
    If the output is taken in RTF/PDF, and if the no. of records are huge that records go to the next page, then is there any possibility to repeat the table headers to the next and consecutive pages?

    >
    To repeat header rows:
    Select the row(s) that you want to repeat on each page.
    From the Table menu, select Heading Rows Repeat.
    >
    from http://docs.oracle.com/cd/E23943_01/bi.1111/e22254/create_rtf_tmpl.htm#BHBFEJJI
    http://winrichman.blogspot.ru/2008/09/repeat-table-header-in-all-pages-in-bip.html
    Re: Header table to repeat on every page

  • How to keep track of count from repeating table - INFOPATH 2007

    Hello,
    I have a repeating table with two columns: Title (dropdownlist 'A') and
    Count (integer). Let's assume the user picks Title1
    with count of 3 and next row, Title2 with count
    2. Now, I have a repeating section which contains a dropdownlist
    'B' that uses 'A' as a datasource.  I need to develop a fucntionality to put some validation on dropdownlist
    B, where you should throw error if user inserts more than 3 repeating sections that has
    Title1 and no more than 2 repeating sections where dropdownlist
    B has Title2.
    Please assist.
    Thanks
    smith

    Hi,
    To get the count of the repeating tables dynamically with custom logic, custom code behind the InfoPath form will be required.
    The link below will show how to count the total amount of sections in a Repeating Section in InfoPath on the change event of the repeating section, you can apply extra custom
    logic to it to meet your requirement:
    http://www.bizsupportonline.net/infopath2007/programmatically-count-total-amount-repeating-sections-infopath.htm
    Another two links about how to work with InfoPath form programmatically for your reference:
    http://msdn.microsoft.com/en-us/library/bb509311(v=office.12).aspx
    http://blogs.msdn.com/b/infopath/archive/2010/03/18/introduction-to-programming-in-infopath-2010.aspx
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Add data to a repeating table

    Hi, is it possible to create a submit button in the middle of the form to add data to a repeating table (That repeating table would add an item to a list).

    Hi,
    Please refer to the articles related to repeating section from the following link
    Repeating Tables and Sections in InfoPath
    Please don't forget to mark it as answered, if your problem resolved or helpful.

  • Master/Detail? Repeating Tables - Combine data from 2 repeating tables to one cell in sharepoint

    Hi there, new to infopath.  I have 2 sections in my form which are hidden and display based on the department selected.  So Department A versus Department B, a section opens for details pertaining to that Department.  So in each
    section I have similar information requirements, similar but not exactly the same.  Now I was able to create hidden fields that will concat the values from both sections in the instances of similar data (i.e. Name, Department location, etc, so if Department
    A fills in Name on their section, then someone else submits the same form for Department B I still have one column of metadata in SP to displace the Name regardless of department or section they filled data into). However now I am stuck, I have repeating
    tables in both sections and I want to concate the entries to output to the sharepoint list for that cell.  However everything I have tried so far only concats the 1st value in the repeating table.  Is there a way to take ALL of the data from
    two repeating tables and merge them into one column/cell in sharepoint (metadata for the one form entry)???  I want to avoid having to create a excessive "views" of a list in order to accomodate the needs for BOTH departments.  I hope
    this is clear.  Thanks for your help!
    from msn forum

    Hi Meera,
        I apologise for delay. Anyways you can goto the
    following link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36f08758-0a01-0010-c291-c03004aeb1af
    for details.
    Hope this will clear you. However, you further require
    any more information then please feel free to mail.
    Note:
    ty_t_sender, cl_abap_char_utilities DEFINITION LOAD
    all these are present in alsmex function group if you
    place your function module in this function group then
    you'll be able to access these things. Further, like
    if you have security options and can't place your code
    in this function group then create your own function
    group in your own package and copy the contents from
    alsmex function group.
        Hope that answer your questions.
    Regards,
    Mirza Ifthekhar Baig.

  • I created a repeating table but want to add a "do you really want to delete this row" prompt.

    Let me clarify, I created a repeating table which allows users in Adobe Reader to add or delete rows.  However, if user inadvertently hits delete, the row and any data is lost with no way to undo.  So, I'd like to either add a pop up prompt for user to confirm they want to execute action or create an undu option somewehre else on the form.  Can this be done?
    Message was edited by: deanotn

    Yes you can do it using app.alert().
    var nButton = app.alert({
    cMsg: "Warning: This will delete the row and all data in it. \n\nDo you want to continue?",
    cTitle: "Delete Row",
    nIcon: 1, nType: 2
    if (nButton == 4) {
              deletion code here
    Description of app.alert() options:
    http://acrobatusers.com/tutorials/popup_windows_part1

  • Value in repeating table

    Good day, colleagues. I have InfoPath form the "Waybill car." In a separate cell indicates the initial meter reading at the time of receiving shift. In repeating table set field: Route (text), Mileage (in this field is the final meter reading at
    the place of arrival, km) distance. During the shift the number of routes can be from 5 to 20. Need to adjust the form to automatically calculate the range (distance) for each route in a separate field.
    Example:
    Initial indications: 310 km.
    Repeating Table: Route:
    Object 1 Mileage: 315 Distance, km: 5.
    Object2 Mileage: 323 Distance, km 8 ....
    How can I insert in the "distance" from the previous field "Mileage"?

    Hi  ,
    According to your description, my understanding is that you want to get the field “distance” value based on the previous field "Mileage"  in the repeating table of InfoPath.
    For achieving your demand, you need to create the fields “Initial indications (km)”  with Number type, “Mileage (km)” with Number type in the repeating table ,”
    Distance (km)” with Number type in the repeating table.
    Then you can create a rule as below on the Mileage (km) field:
    Condition: Mileage (km) is not blank
    Action: Set a field’s value : Distance (km) = Mileage (km) - Initial indications (km)
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Eric Tao
    TechNet Community Support

  • Generate the Dynamic Repeating Table using Infopath

    Hi,
    I have created the repeating table, which is having values like below.
    Once i click on Add to basket,It should  add only current row in table format.
    Please help me possible way to achieve this. Thanks in advance.

    Hi,
    Something needs to clarify, is the "Basket" a SharePoint list or it's format table ?
    If the "Basket" is a list, then you can create custom rule to the format table like the detailed article below:
    Submitting to a SharePoint List
    How to submit data from repeatable table in infopath form to a sharepoint list?
    If the "Basket" is a format table, then please provide the format table screen shot.
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Macbook Pro 2010 - LCD screen ghosting, pink/green color

    Hello, I am out of warranty and getting some ghosting on my macbok pro mid-2010. Not sure what is the issue and if it can be fixed with some software update. Please see the vide below on youtube http://youtu.be/dltq6NE0g-o Help please!!! and thanks f

  • Set the default printer setting to landscape in Excel

    Hi, Is it possible to set the default printer setting to "1 page wide" and "landscape" whenever the user clicks print in Excel? I am trying to create an Excel report using XML and XSL. Though the report is created, I am not sure if I can control the

  • GNS (Grid Naming Service) Real World configuration

    I am looking for some information on setting up of the GNS. It would be really good to see the actual configuration that someone has used in configuring this in a larger corporation, rather than the over simplified examples that appear in the Oracle

  • Line tool problems

    When I use the line tool the line has a blue box around it and when the fill option is used the fill ignores the line entirely, how do I stop this?

  • Error in printing the production order in TCode COHV

    When i tried to print the production order in COHV transaction code the system prompts me an information message as order is printed but it is not generating any spool request even i am not getting the print too. This error persist for few orders onl