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

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

Guide ,
Jul 15, 2025 Jul 15, 2025

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)

 

TOPICS
Scripting
126
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

Guide , Jul 15, 2025 Jul 15, 2025

I see, it should be parentRow, not parentRows.

 

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

Translate
Guide ,
Jul 15, 2025 Jul 15, 2025

I see, it should be parentRow, not parentRows.

 

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

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 ,
Jul 16, 2025 Jul 16, 2025
LATEST

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
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