Skip to main content
dublove
Legend
July 16, 2025
Answered

Why can't I determine the style of the row where the “target cell” is located?

  • July 16, 2025
  • 1 reply
  • 158 views

I would like to exclude the "target cell" from being an footerRow.

Isn't this "parentRows" a table row?

myTable.columns.item(i).cells.item(j).parentRows.rowType !== RowTypes.FOOTER_ROW

Error: parentRows does not support the rowType property or method.

 

var cell = app.activeDocument.selection[0].parent;
var myTable = cell.parent;
var myFooterRow = myTable.rows[-1];
for (var i = 0; i < myTable.columns.length; i++) {
    for (var j = 0; j < myTable.columns.item(i).cells.length; j++) {
        if ((myTable.columns.item(i).cells.item(j).contents == "")
            && (myTable.columns.item(i).cells.item(j).parentRows.rowType !== RowTypes.FOOTER_ROW)

 

Correct answer dublove

I see, it should be parentRow, not parentRows.

 

That said, how do I delete a post that was posted in error?

1 reply

dublove
dubloveAuthorCorrect answer
Legend
July 16, 2025

I see, it should be parentRow, not parentRows.

 

That said, how do I delete a post that was posted in error?

Community Expert
July 16, 2025

We can leave it and lock the converstaion - if you want it reopened let me know. 

 

It might help others who find it later.