Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Restart Alternating Table Rows

Community Expert ,
Oct 30, 2017 Oct 30, 2017

Is there a way to restart the sequence of alternating rows? In the example, the tables are separate individual tables. But, I would like to have one continuous table, with a row after [125 B 40-78], and then restart the sequence [150 A 32-64] with a gray row.

tablerow.jpg

739
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Oct 30, 2017 Oct 30, 2017

No. You set up a pattern (shade every other row, every 2nd row, etc.) and other than the option to skip the first or last row, it runs continuously through the table.

You are talking about the row shading, aren't you? (Now I'm not sure.)

Translate
Community Expert ,
Oct 30, 2017 Oct 30, 2017

No. You set up a pattern (shade every other row, every 2nd row, etc.) and other than the option to skip the first or last row, it runs continuously through the table.

You are talking about the row shading, aren't you? (Now I'm not sure.)

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 31, 2017 Oct 31, 2017

Yes, the issue is the row shading. I was hoping for some trick (pun intended) that would work similarly to restart numbering for a list.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Oct 31, 2017 Oct 31, 2017

Jeffery, the starting and ending alternating colors are scriptable, so you could try this example—you have to select the container text frame that holds the tables before running the script:

var sel=app.activeDocument.selection[0].tables;

var lt, r1, r2;

for (var i = 1; i < sel.length; i++){

  

    //get the previous table's last 2 rows

    lt=sel[i-1].rows.length;

    r1=sel[i-1].rows[lt-2];

    r2=sel[i-1].rows[lt-1];

  

    sel.startRowFillColor=r1.fillColor;

    sel.endRowFillColor=r2.fillColor;

  

    sel.startRowFillTint=r1.fillTint;

    sel.startRowFillTint=r2.fillTint;

};

Does this:

Screen Shot 2017-10-31 at 1.36.59 PM.png

After:

Screen Shot 2017-10-31 at 1.37.13 PM.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2017 Nov 01, 2017
LATEST

Rob, thanks for the script suggestion. It appears as though your script works with multiple tables within a frame. And what I was hoping to do was have one frame with one continuous table, and start a row shading sequence at a specific row, then restart it again at another point, etc.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines