Coding Reoccuring Table to work with "Ruling" script
My current Manual Template has a Parts Table that you Insert, but each time you insert it you have to copy and paste the second header row with "ITEM, PART NUMBER, DESCRIPTION, QTY.". I have a script called "Table Ruling" with denifies the second row of the header and if the second header row has "part" in the text - it sets the proper rulings. (ie. thin line after every second number). If the first colum ("ITEM") is blank it will remove the lines between the (what we call the) parent numbers.
I went to format the second row with "Paragraph Formats" and it broke the script code, since it no longer has the "Part" as plain text. Is there a way to change the current script to look for a "Paragraph Format = zCellPN" instead.
Suspected code I need to change:
if(dude.indexOf("PART") !== -1) //Checks for a Parts Table.

