Skip to main content
dublove
Legend
July 16, 2025
解決済み

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

  • July 16, 2025
  • 返信数 2.
  • 165 ビュー

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

I see, it should be parentRow, not parentRows.

 

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

返信数 2

dublove
dublove作成者解決!
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.