Skip navigation
Currently Being Moderated

Table footnotes

Jun 20, 2013 4:06 AM

Hello friends,

Obiously table footnotes are not the same objects as footnotes (in text flows). They are not found with the script as described in my post message/5430068#5430068. They are also flows (I assume this from the § symbol at their end).

 

How to access these table footnotes? I have found only properties for their format, for example TblFnNumStyle, TblFnCellPosition or TblFnSuffix).

There is no such constant as FTI_tblfn….

 

I welcome Your ideas.

Klaus

 
Replies
  • Currently Being Moderated
    Jun 20, 2013 5:36 AM   in reply to K.Daube

    Hi Klaus, There is no special table footnote object in FrameMaker. There are two ways to get to table footnotes:

     

    1) Loop through all of the document's Fn objects.

     

    var doc = app.ActiveDoc;
    var fn = doc.FirstFnInDoc;
    while (fn.ObjectValid()) {
      // ... Do something here.
      fn = fn.NextFnInDoc;
    }
    

     

    This is the simplest method, but the internal list may not be in document order.

     

    2) Process the paragraphs in document order, and for each paragraph, get a list of footnote anchor objects. I don't have time to code this in ExtendScript, but here is how it looks with FrameScript:

     

    Set oPgf = TextSelection.Begin.Object;
    Get TextList InObject(oPgf) FnAnchor NewVar(tTextList);
    Loop While(i <= tTextList.Count) LoopVar(i) Init(1) Incr(1)
      Set oFn = tTextList[i].TextData;
      // Do something with the footnote here.
    EndLoop
    
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points