2 Replies Latest reply on Apr 27, 2016 9:39 PM by tpk1982

    Table overset alert

    tpk1982 Level 4

      Hi,

       

      I need to know any table contains overset text in document. The tried coding is not working as expected, please help me to sort this problem:

       

      if(app.activeDocument.stories.everyItem().tables.everyItem().cells.anyItem().overflows==true){
          alert("Overset table found")
          }
      

      Regards,

      Karthi

        • 1. Re: Table overset alert
          b91823603 Level 3

          Hi Karthi,

           

          Try this,

          if(app.selection[0].columns.everyItem().cells.everyItem().overflows.join().indexOf('true' )!=-1)

                                  alert("Overset");

          • 2. Re: Table overset alert
            tpk1982 Level 4

            Thank you so much b91823603 ..

             

            working as expected

             

            the below is searching for all tables in document, am i right?

             

            if(app.activeDocument.stories.everyItem().tables.everyItem().columns.everyItem().cells.eve ryItem().overflows.join().indexOf('true' )!=-1)

                                    alert("Overset");