Quantcast
Channel: Adobe Community : Popular Discussions - Adobe FrameMaker
Viewing all articles
Browse latest Browse all 23442

How do I change the table's first row to a Heading row if it contains pgfs with tblHead tags

$
0
0

So far, I have the following in a JavaScript:

 

if (tbl.FirstRowInTbl.FirstCellInRow.FirstPgf.PgfFmt.Name === "tblHead")

        {

            if (tbl.FirstRowInTbl.RowType === 1)

                //1 is Constants.FV_ROW_BODY

                tbl.FirstRowInTbl.RowType = 0;

                // 0 is Constants.FV_ROW_HEADING

            else

                continue;

         }

        else

            continue;

 

This does not work. I'm not comfortable with tbl.FirstRowInTbl.FirstCellInRow.FirstPgf.PgfFmt.Name.

It is clearly wrong. How would I indicate I want to determine the tag of the first paragraph in the first row?

 

Any help is very much appreciated!

 

Thanks,

Ruth


Viewing all articles
Browse latest Browse all 23442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>