Skip to main content
dublove
Legend
Jul 16, 2025 2:51 AM UTC
Answered

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

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)

 

dublove
dubloveCorrect answer
Legend
Jul 16, 2025 3:01 AM UTC

I see, it should be parentRow, not parentRows.

 

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

2 replies

dublove
dubloveAuthorCorrect answer
Legend
Jul 16, 2025 3:01 AM UTC

I see, it should be parentRow, not parentRows.

 

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

Translate
Community Expert
Jul 16, 2025 7:17 AM UTC

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

 

It might help others who find it later. 

Translate