Skip to main content
This topic has been closed for replies.

4 replies

Klaus Göbel
Legend
February 9, 2021
Community Expert
February 8, 2021

Hi Klaus,

 

You are correct. The code  behind the link is coloured, at least for a second, and your code here is just black.

 

Best regards

 

_Winfried

K.Daube
Community Expert
K.DaubeCommunity ExpertAuthor
Community Expert
February 8, 2021

Just now discoverd: while eidting or creating a post, the code also of the other posts is highlighted. As soon as I submit the edit/new post the highlights disappear.

K.Daube
Community Expert
K.DaubeCommunity ExpertAuthor
Community Expert
February 5, 2021

Just a trial

KLD_F.FindOverflowCell = function () { // ---------------------------------------------------------
/*            Find and identify overflowing table cell
Arguments     -
Returns       true if found, else false
Called by     main
Calling       ???
Used in       FMmngFindRepl
Reference     Rick Quatro, https://community.adobe.com/t5/framemaker/finding-cell-overflow-in-table-problem-with-script/m-p/7663483
              Klaus Göbel, https://community.adobe.com/t5/framemaker/view-current-cell-if-cell-overflows/m-p/11304625
History       2021-02-04 test with VSCode and ESDebugger
*/
var bFound = false, oDoc, oTable, oTtblRow, oTtblCell, oTLbeg, oTLend, oTR = undefined;  

  oDoc = app.ActiveDoc;  
  oTable = oDoc.FirstTblInDoc;  
out:
  while (oTable.ObjectValid ()) {  
    oTtblRow = oTable.FirstRowInTbl;  
    while (oTtblRow.ObjectValid ()) {  
      oTtblCell = oTtblRow.FirstCellInRow;  
      while (oTtblCell.ObjectValid ()) {  
        if (oTtblCell.Overflowed === 1) {  
          bFound = true; 
          break out;
        } 
        oTtblCell = oTtblCell.NextCellInRow;  
      }  
      oTtblRow = oTtblRow.NextRowInTbl;  
    }  
    oTable = oTable.NextTblInDoc;  
  } 
  if (bFound) {
    oTLbeg = new TextLoc(oTtblCell.FirstPgf,0);
    oTLend = new TextLoc(oTtblCell.FirstPgf,Constants.FV_OBJ_END_OFFSET);
    oTR = new TextRange(oTLbeg,oTLend);
    oDoc.ScrollToText(oTR);
  }
  return oTR;
} //--- end FindOverflowCell