Table overflow, only header row fits on page, avoid header

Hello together,
I encountered the following problem with adobe forms. The form consists of a table with a header row and (for sure) a data part. The table is encapsulated on a subform. If the table doesn't fit on one page, it breaks correctly to the next page (including header).
Because the table is not the onliest content of my page, it could happen that only the header row fits on the first page. So after the header, I get a page break. Is it possible to avoid the output of the table on first page, if only the header row will fit on it?
Currently it looks like this:
FIRST PAGE
bla bla bla bla
bla bla bla
HEADER
<-- page break -->
NEXT PAGE
HEADER
DATA

Hello Niels,
thanks for you help. I tried a lot with the "Keep with:" options the last couple of hours and now I double checked the flags.
I missed the flag "Keep with: NEXT" at table header level. Now it works as expected.
The table is part of a subform of type "flow". For the subform, I also checked the Keep with flag becasue the subform contains more than just the table.
Now, if only the header row fits on the first page, the whole subform starts at the next page. If the table needs much more space, it correctly breaks at the end of the next page.
Thank you very much

Similar Messages

  • Dynamic Tables in PDF - repeating Header row in all pages

    Hi ,
          I have created a dynamic table in PDF, When I add rows, the table is spanning to next page, and I should get the header row in all pages. But, I am getting the header row only for the 2nd page(In Header row properties, I have choosed the header row to be displayed in all pages). I need the Header row to be displayed in all pages.
        To see the previous thread, Click [here|Dynamic Table -  same data repeating in all rows;.
    Thanks and Regards,
    Prabhakar.

    Hi Prabhakar,
    Try out with following step
    Header Row -> Binding -> Select the check box
    Repeat Row for each Data item (Min Count 1)
    Please let me know if this is working or not.
    Cheers
    Satya

  • "Include Header Row in Subsequent Pages" is not working for table

    Hi,
    I'm using version 8.1.2.3337.1.509884.
    The pagnation feature "Include Header Row in Subsequent Pages" is not working for any table in my design. ( the check-box can not be checked no matter how many times I clicking it)
    I put such table already in a flow bodypage.
    Any similar issue reported?
    Any suggestions?
    Thanks.
    -Vicky

    Hi Raghu,
    Appologies that I uploaded a wrong version of xdp file yesterday.
    Here is the correct one.
    https://acrobat.com/#d=jr0XffvBZWXd0cVhL0OQ3A
    I totally understand that I have to check the checkbox "Include Header Row in Subsequent Pages".
    My problem is that, although I can see that checkbox, and it's not grey-out, I can not tick it. See below screenshot, with the red-cycle mark.
    You can try with above file.
    Just wondering why such weird behavior happened.
    -Vicky

  • Header row on multiple pages

    Hi All,
    Please could someone explain how to conditionally display the Header row on first and subsequent pages, but make it dependent on the body row. That is, if the output flows into the second page and there are line items to display on the second page, only then should the Header appear. If there are no line items for the second / subsequent page then the Header should be suppressed.
    I have had a look at form - F110_AVIS_INT - this form has the functionality mentioned above and doesn't use conditional breaks for the Header row - but I cant decipher how it works. Please advise.
    Kind regards,
    Arijit

    Hi Gaurav,
          I have a table and i want to table header to be repeated in subsequent pages but only till 2 pages the table header is visible from the 3rd page onwards the table header is not repeated.
    I have selected the Header Row in hierarchy and in Pagination tab for the header row i have checked the the check box Insert Header Row in Subsequent Pages.
    After selecting the checkbox also table header is repeated only in 2 pages and not repeated after the second page.
    My table hierarchy in form is :
    TableSubform
       Table
           HeaderRow
           Row1
    In your previous reply you have placed header in a separate subform and you have selected the body subform and in overflow leader you have selected the header subform to be repeated.
    In my scenario i selected the TableSubform and in Overflow Laader i selected HeaderRow and tried but it was not working.
    I am using Designer 8.0 and Acrobat Reader 8.0
    Can you please help me in solving this issue.
    Regards,
    Bala Baskaran.s
    Edited by: Bala Baskaran on Feb 18, 2009 11:11 AM

  • SQL Server 2012 Undetected Deadlock in a table with only one row

      We have migrated our SQL 2000 Enterprise Database to SQL 2012 Enterprise few days ago.
      This is our main database, so most of the applications access it.
      The day after the migration, when users started to run tasks, the database access started to experiment a total failure.
      That is, all processes in the SQL 2k12 database were in lock with each other. This is a commom case of deadlock, but the Database Engine was unable to detect it.
      After some research, we found that the applications were trying to access a very simple table with only one row. This table has a number that is restarted every day and is used to number all the transactions made against the system.   So, client
    applications start a new transaction, get the current number, increment it by one and commit the transaction.
      The only solution we found was to kill all user processes in SQL Server every time this situation occurs (no more than 5 minutes when all clients are accessing the database).
      No client application was changed in this migration and this process was working very well for the last 10 years.
      The problem is that SQL 2k12 is unable to handle this situation compared to SQL 2k.
      It seems to occurs with other tables too, but as this is an "entry table" the problem occurs with it first.
      I have searched internet and some suggest some workarounds like using table hints to completely lock the table at the begining of the transaction, but it can't be used to other tables.
      Does anyone have heard this to be a problem with SQL 2k12? Is there any fixes to make SQL 2k12 as good as SQL 2k?

    First off re: "Unfortunatelly, this can't be used in production environment as exclusive table lock would serialize the accesses to tables and there will be other tables that will suffer with this problem."
    This is incorrect. 
    Using a table to generate sequence numbers like this is a bad idea exactly because the access must be serialized.  Since you can't switch to a SEQUENCE object, which is the correct solution, the _entire goal_ of this exercise to find a way to properly
    serialize access to this table.  Using exclusive locking will not be necessary for all the tables; just for the single-row table used for generating sequence values with a cursor.
    I converted the sample program to VB.NET:
    Public Class Form1
    Private mbCancel As Boolean = False
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Dim soConn As ADODB.Connection
    Dim soRst As ADODB.Recordset
    Dim sdData As Date
    Dim slValue As Long
    Dim slDelay As Long
    'create database vbtest
    'go
    ' CREATE TABLE [dbo].[ControlNumTest](
    ' [UltData] [datetime] NOT NULL,
    ' [UltNum] [int] NOT NULL,
    ' CONSTRAINT [PK_CorreioNumTeste] PRIMARY KEY CLUSTERED
    ' [UltData] Asc
    ' )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY]
    ' ) ON [PRIMARY]
    mbCancel = False
    Do
    ' Configure the Connection object
    soConn = New ADODB.Connection
    With soConn
    .ConnectionString = "Provider=SQLNCLI11;Initial Catalog=vbtest;Data Source=localhost;trusted_connection=yes"
    .IsolationLevel = ADODB.IsolationLevelEnum.adXactCursorStability
    .Mode = ADODB.ConnectModeEnum.adModeReadWrite
    .CursorLocation = ADODB.CursorLocationEnum.adUseServer
    .Open()
    End With
    ' Start a new transaction
    Call soConn.BeginTrans()
    ' Configure the RecordSet object
    soRst = New ADODB.Recordset
    With soRst
    .ActiveConnection = soConn
    .CursorLocation = ADODB.CursorLocationEnum.adUseServer
    .CursorType = ADODB.CursorTypeEnum.adOpenForwardOnly
    .LockType = ADODB.LockTypeEnum.adLockPessimistic
    .Open("SELECT * FROM dbo.ControlNumTest")
    End With
    With soRst
    sdData = .Fields!UltData.Value ' Read the last Date (LOCK INFO 1: See comments bello
    slValue = .Fields!UltNum.Value ' Read the last Number
    If sdData <> Date.Now.Date Then ' Date has changed?
    sdData = Date.Now.Date
    slValue = 1 ' Restart number
    End If
    .Fields!UltData.Value = sdData ' Update data
    .Fields!UltNum.Value = slValue + 1 ' Next number
    End With
    Call soRst.Update()
    Call soRst.Close()
    ' Ends the transaction
    Call soConn.CommitTrans()
    Call soConn.Close()
    soRst = Nothing
    soConn = Nothing
    txtUltNum.Text = slValue + 1 ' Display the last number
    Application.DoEvents()
    slDelay = Int(((Rnd * 250) + 100) / 100) * 100
    System.Threading.Thread.Sleep(slDelay)
    Loop While mbCancel = False
    If mbCancel = True Then
    Call MsgBox("The test was canceled")
    End If
    Exit Sub
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    mbCancel = True
    End Sub
    End Class
    And created the table
    CREATE TABLE [dbo].[ControlNumTest](
    [UltData] [datetime] NOT NULL,
    [UltNum] [int] NOT NULL,
    CONSTRAINT [PK_CorreioNumTeste] PRIMARY KEY CLUSTERED
    [UltData] Asc
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = on, FILLFACTOR = 80) ON [PRIMARY]
    ) ON [PRIMARY]
    go insert into ControlNumTest values (cast(getdate()as date),1)
    Then ran 3 copies of the program and generated the deadlock:
    <deadlock>
    <victim-list>
    <victimProcess id="processf27b1498" />
    </victim-list>
    <process-list>
    <process id="processf27b1498" taskpriority="0" logused="0" waitresource="KEY: 35:72057594039042048 (a01df6b954ad)" waittime="1970" ownerId="3181" transactionname="implicit_transaction" lasttranstarted="2014-02-14T15:49:31.263" XDES="0xf04da3a8" lockMode="X" schedulerid="4" kpid="9700" status="suspended" spid="51" sbid="0" ecid="0" priority="0" trancount="2" lastbatchstarted="2014-02-14T15:49:31.267" lastbatchcompleted="2014-02-14T15:49:31.267" lastattention="1900-01-01T00:00:00.267" clientapp="vbt" hostname="DBROWNE2" hostpid="21152" loginname="NORTHAMERICA\dbrowne" isolationlevel="read committed (2)" xactid="3181" currentdb="35" lockTimeout="4294967295" clientoption1="671088672" clientoption2="128058">
    <executionStack>
    <frame procname="adhoc" line="1" stmtstart="80" sqlhandle="0x020000008376181f3ad0ea908fe9d8593f2e3ced9882f5c90000000000000000000000000000000000000000">
    UPDATE [dbo].[ControlNumTest] SET [UltData]=@Param000004,[UltNum]=@Param000005 </frame>
    <frame procname="unknown" line="1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
    unknown </frame>
    </executionStack>
    <inputbuf>
    (@Param000004 datetime,@Param000005 int)UPDATE [dbo].[ControlNumTest] SET [UltData]=@Param000004,[UltNum]=@Param000005 </inputbuf>
    </process>
    <process id="processf6ac9498" taskpriority="0" logused="10000" waitresource="KEY: 35:72057594039042048 (a01df6b954ad)" waittime="1971" schedulerid="5" kpid="30516" status="suspended" spid="55" sbid="0" ecid="0" priority="0" trancount="1" lastbatchstarted="2014-02-14T15:49:31.267" lastbatchcompleted="2014-02-14T15:49:31.267" lastattention="1900-01-01T00:00:00.267" clientapp="vbt" hostname="DBROWNE2" hostpid="27852" loginname="NORTHAMERICA\dbrowne" isolationlevel="read committed (2)" xactid="3182" currentdb="35" lockTimeout="4294967295" clientoption1="671156256" clientoption2="128058">
    <executionStack>
    <frame procname="adhoc" line="1" sqlhandle="0x020000003c6309232ab0edbe0a7790a816a09c4c5ac6f43c0000000000000000000000000000000000000000">
    FETCH API_CURSOR0000000000000001 </frame>
    <frame procname="unknown" line="1" sqlhandle="0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000">
    unknown </frame>
    </executionStack>
    <inputbuf>
    FETCH API_CURSOR0000000000000001 </inputbuf>
    </process>
    </process-list>
    <resource-list>
    <keylock hobtid="72057594039042048" dbid="35" objectname="vbtest.dbo.ControlNumTest" indexname="PK_CorreioNumTeste" id="lockff6e6c80" mode="U" associatedObjectId="72057594039042048">
    <owner-list>
    <owner id="processf6ac9498" mode="S" />
    <owner id="processf6ac9498" mode="U" requestType="wait" />
    </owner-list>
    <waiter-list>
    <waiter id="processf27b1498" mode="X" requestType="convert" />
    </waiter-list>
    </keylock>
    <keylock hobtid="72057594039042048" dbid="35" objectname="vbtest.dbo.ControlNumTest" indexname="PK_CorreioNumTeste" id="lockff6e6c80" mode="U" associatedObjectId="72057594039042048">
    <owner-list>
    <owner id="processf27b1498" mode="U" />
    <owner id="processf27b1498" mode="U" />
    <owner id="processf27b1498" mode="X" requestType="convert" />
    </owner-list>
    <waiter-list>
    <waiter id="processf6ac9498" mode="U" requestType="wait" />
    </waiter-list>
    </keylock>
    </resource-list>
    </deadlock>
    It's the S lock that comes from the cursor read that's the villian here.  U locks are compatible with S locks, so one session gets a U lock and another gets an S lock.  But then the session with an S needs a U, and the session with a U needs an
    X.  Deadlock. 
    I'm not sure what kind of locks were taken by this cursor code on SQL 2000, but on SQL 2012, this code is absolutely broken and should deadlock.
    The right way to fix this code is to add (UPDLOCK,SERIALIZABLE) to the cursor
    .Open("SELECT * FROM dbo.ControlNumTest with (updlock,serializable)")
    So each session reads the table with a restrictive lock, and you don't mix S, U and X locks in this transaction.  This resolves the deadlock, but requires a code change.
    I tried several things that didn't require a code, which did not resolve the deadlock;
    1) setting ALLOW_ROW_LOCKS=OFF ALLOW_PAGE_LOCKS=OFF
    2) SERIALIZABLE isolation level
    3) Switching OleDB providers from SQLOLEDB to SQLNCLI11
    Then I replaced the table with a view containing a lock hint:
    CREATE TABLE [dbo].[ControlNumTest_t](
    [UltData] [datetime] NOT NULL,
    [UltNum] [int] NOT NULL,
    CONSTRAINT [PK_CorreioNumTeste] PRIMARY KEY CLUSTERED
    [UltData] Asc
    )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = on, FILLFACTOR = 80) ON [PRIMARY]
    ) ON [PRIMARY]
    go
    create view ControlNumTest as
    select * from ControlNumTest_t with (tablockx)
    Which, at least in my limited testing, resovlved the deadlock without any client code change.
    David
    David http://blogs.msdn.com/b/dbrowne/

  • My table header row repeats on page 2, but not thereafter -- why?

    The header row on my dynamic table will repeat when the table overflows onto the second page, but if it flows over to a third or fourth page, the header does not repeat.  Why is that?  I'll be happy to send the form with the troublesome table via email to someone who can help,
    Thanks,
    Jenny

    hi, its weird !!
    pls fwd it to [email protected]
    Abhinav

  • Select event not triggered in table with only one row

    Hi all,
    I am building a BI VC application where query data is displayed in a table. When the user clicks on a table row another query is then triggered and output in a second table. The output from table 1 is linked to the input of query2/table2 with a select event.
    The problem that I am facing is that if there is only one row in table 1, the select event is never triggered. If, however there are two or more rows in the table the select event is triggered and query 2 is executed. I have searched the forums but all I could find on select event problems was how to avoid the initial select event.
    Has anyone else experienced this issue and what is the workaround or is this a bug in Visual Composer? We are on VC 7.0 SP19.
    Cheers,
    Astein Meland

    Thanks Chittya,
    Yes we have considered this option as well. But as we have more than one table linked together we would like to avoid having to manually click several buttons.
    In the end I found Note 1364334 describing bugfixes released in VC 7.0 SP20:
    "Normally, when a Visual Composer table is populated from a data service, the first row is selected by default. However, we have found that if only one data row is returned from the data service, this row is not selected by default and cannot be manually selected by clicking on it either."
    So I think we will just have to upgrade our Portal to the latest support packs to solve this problem.
    Thanks,
    Astein

  • Issue with Selection Listener when the table has only one row

    Hi All ,
    I have developed a table in which I am using Selection Listener to perform some task when any row is selected.
    It is working fine when I have more than 1 row in the table, but when I have only one row in the table , the selection listener do not call the corresponding method in bean.
    I understand that selection event will be raised only when the row is changed, but in the use case when only one row is there, what should be done to make the selection listener work ?
    In the selection listener I have written code to make the selected row as current row , and perform the required task.
    Please suggest a way out for this situation.
    Thanks in advance.

    Hi,
    try removing this attr from table
    selectedRowKeys="#{bindings.xxx_VO1.collectionModel.selectedRow}"

  • Number of Rows, displaying a table with only one row

    Hello,
    I am doing my first VC tests on the discovery System.
    I have an input form where I put in the username, then choose a user from a table and with the user ID I want to show the user details in another table.
    Now since I am only pickling one user, the new table will only have one row. In VC I cannot set the no. of rows to 1 though, since I cannot edit the no. of rows field. I also cannot disable the scroll buttons.
    Why is that?
    Is there another way to display user details? I tried to display it in read-only form, but it is pretty ugly.
    Another question regarding designing in VC:
    Are there any design elements in VC for example to group form fields that belong together? Let's say I have street name, number, postal code and so on, could I use a design element to group them under the label "Address" ?

    Peter,
    For some reason the No. of Rows and Scroll Buttons options are only available if your compiler is set to Web DynPro. Whenever you compile to Flash they're disabled.
    Regards
    Hennie

  • InDesign Table Fit (Clear overflow, Height and Row fit)

    Hi All,
    I am using MagicFit.jsx for fit the table. But it does not clear the overflow and it does not fit the Height. I want to do all of this.
    Plz suggest.
    MagicFit.jsx
    function MagicFit(){
        app.scriptPreferences.version = 4.0;          //Because I am using CS5
        MagicFit_1()
        app.scriptPreferences.version = 6.0;
    function MagicFit_1(){
            MagicFit 2.1b for InDesign CS / CS2 -- 01/18/06               
            Fits to content the WIDTH of the selected text container(s)   
            Features:                                                     
            - Fits selected TextFrame(s) width to content                 
            - 1st call: "strict" fitting (preserve each lines length)    
            - 2nd call (within 2 secs) : "fluid" fitting (preserve height)
            - (NEW) Alternate fitting of table column(s) if selected      
            - (NEW) Compute a minimal width by parsing embedded objects   
            - (NEW) Runs on selected frames, CELLS, groups, insertion pt  
            Installation & usage:                                         
            0) !! CS2 users only !!                                       
               Rename this script file with .jsx extension                
               (activating extend script features)                        
            1) Put the present file into the Presets/Scripts/ subdir      
            2) Run InDesign, open a document and select object(s) to fit  
               (or put insertion point into)                              
            3) Run the script via Window > Automation > Scripts           
               and double-clic on MagicFit.js                             
               Alternate way: assign a keyboard shortcut to the script via
               Edit > Keyboard Shortcuts... > Product area:"Scripts"      
            Help (FR) : http://marcautret.free.fr/geek/indd/magicfit/     
                (sorry, thats a french web page!)                      
                    Feedbacks : [email protected]                    
        //            SETTINGS
        var LATENCE = 2;         // in seconds (default:2)
        var PRECISION = 0.5;    // in pts (default:0.5)
        var APP_INT_VERSION = parseInt(app.version);
        //            TOOLBOX FUNCTIONS
        /*void*/ function exitMessage(/*exception*/ ex){
            alert("Error:\n" + ex.toString());
            exit();
        //            DOCUMENT METHODS
        /*void*/ Document.prototype.setUnitsTo = function(/*units*/ newUnits){        // units can be single value (horiz=vert) or array(horizUnits, vertUnits)
            var arrUnits = (newUnits.length) ? newUnits : new Array(newUnits,newUnits);
            this.viewPreferences.horizontalMeasurementUnits = arrUnits[0];
            this.viewPreferences.verticalMeasurementUnits = arrUnits[1];
        /*arr2*/ Document.prototype.getUnits = function(){
            return(Array(
                this.viewPreferences.horizontalMeasurementUnits,
                this.viewPreferences.verticalMeasurementUnits));
        /*bool*/ Document.prototype.withinDelay = function(){
            if (this.label)
                return( (Date.parse(Date())-this.label) <= LATENCE*1000 );
            return(false);
        /*void*/ Document.prototype.storeTimeStamp = function(){
            this.label = Date.parse(Date()).toString();
        //            GENERIC METHODS (OBJECT LEVEL)
        // Returns the "fittable-container" corresponding to THIS
        // Return array or collection HorizFit-compliant
        // NULL if failure
        /*arr*/ Object.prototype.asObjsToFit = function(){
            switch(this.constructor.name){
                case "TextFrame" :            // textframe -> singleton this
                    return(Array(this));
                case "Cell" :                // cells -> parent columns
                    var r = new Array();
                    // !! [CS1] Cell::parentColumn === Cell !!
                    // !! [CS2] Cell::parentColumn === Column !!
                    // !! [CS2] Cells::lastItem().parentColumn BUG !!
                    var c0 = this.cells.firstItem().name.split(":")[0];
                    var c1 = this.cells.lastItem().name.split(":")[0];
                    for (var i=c0 ; i<=c1; i++)
                        r.push(this.parent.columns[i]);
                    return(r);
                case "Table" /*CS2*/ :        // table -> columns
                    return(this.columns);
                case "Group" :                // group -> textFrames
                    return((this.textFrames.length>0) ? this.textFrames : null);
                case "Text" :                // selection is Text or InsertionPoint
                case "InsertionPoint" :        // -> run on container
                    var textContainer = this.getTextContainer();
                    return((textContainer) ? textContainer.asObjsToFit() : null);
                default:
                    return(null);
        // Returns Text's or InsertionPoint's container :
        // Type returned: TextFrame or Cell - NULL if failure
        /*obj*/ Object.prototype.getTextContainer = function(){
            try{ // try...catch because of CS2 behaviour
                if (this.parent.constructor.name == "Cell")           
                    return(this.parent);
                if (this.parentTextFrames)        // plural in CS2
                    return(this.parentTextFrames[0]);       
                if (this.parentTextFrame)    // single in CS1
                    return(this.parentTextFrame);
                return(null);
            }catch(ex) {return(null);}
        // Parse embedded "objects": tables, pageitems [including graphics]
        // and returns the max width
        // !! All parsed objects have to provide a computeWidth method !!
        /*int*/ Object.prototype.computeIncludedObjectsWidth = function(){
            var objsNames = new Array("pageItems","tables"); // could be extended
            var objsWidth = 0;
            var w = 0;
            for (var j=objsNames.length-1 ; j>=0 ; j--){
                for (var i=this[objsNames[j]].length-1 ; i>=0 ; i--){
                    try{
                        w = this[objsNames[j]][i].computeWidth({VISIBLE:true});
                    }catch(ex){
                        w=0;
                    if (w > objsWidth) objsWidth=w;
            return(objsWidth);
        // Generic computeWidth method for bounded objects
        // VISIBLE true -> external width
        // VISIBLE false -> internal width
        /*int*/ Object.prototype.computeWidth = function(/*bool*/ VISIBLE){
            if (VISIBLE){
                if (this.visibleBounds)
                    return(this.visibleBounds[3]-this.visibleBounds[1]);
            else{
                if (this.geometricBounds)
                    return(this.geometricBounds[3]-this.geometricBounds[1]);
            return(0);
        // Override Object::computeWidth for Table : returns simply the width
        /*int*/ Table.prototype.computeWidth = function(){
            return(this.width);
        // Returns chars count for each LINE of this (-> array)
        // empty array  IF  this.lines==NULL  OR  this.lines.length==0
        /*arr*/ Object.prototype.createLinesSizesArray = function(){
            r = new Array();
            if (this.lines)
                for (var i=this.lines.length-1; i>=0 ; i--)
                    r.unshift(this.lines[i].characters.length);
            return(r);
        // Compare chars count beetween THIS and arrSizes argument
        // (generic method just presuming that THIS have lines prop.)
        // -> TRUE if isoceles, FALSE if not
        /*bool*/ Object.prototype.isoceleLines = function(/*arr*/ arrSizes){
            if (this.lines.length != arrSizes.length) return(false);
            for (var i=arrSizes.length-1 ; i>=0 ; i--)
                if (arrSizes[i] != this.lines[i].characters.length)
                    return(false);
            return(true);
        //            TEXTFRAME METHODS
        // intanciate the part of the abstract process for TextFrames
        /*bool*/ TextFrame.prototype.isEmpty = function(){
            return(this.characters.length==0);
        /*bool*/ TextFrame.prototype.isOverflowed = function(){
            return(this.overflows);
        /*int*/ TextFrame.prototype.getWidth = function(){
            return(this.computeWidth({VISIBLE:false}));
        // Redim the frame in width by widthOffset
        /*void*/ TextFrame.prototype.resizeWidthBy = function(/*int*/ widthOffset){
            this.geometricBounds = Array(
                this.geometricBounds[0],
                this.geometricBounds[1],
                this.geometricBounds[2],
                this.geometricBounds[3] + widthOffset);
        // Returns the minWidth of the frame according to embedded content
        // and inner space
        // inner width space
        /*int*/ TextFrame.prototype.computeMinWidth = function(){
            var inSpace = this.textFramePreferences.insetSpacing;
            var inWidth = (inSpace.length) ?
                inSpace[1] + inSpace[3] :    // distinct left & right inspace
                2*inSpace;                    // global inspace
            return(this.computeIncludedObjectsWidth() + inWidth);
        /*int*/ TextFrame.prototype.getCharsCount = function(){
            return(this.characters.length);
        /*int*/ TextFrame.prototype.getLinesCount = function(){
            return(this.lines.length);
        // Return chars count BY LINE (-> array)
        /*arr*/ TextFrame.prototype.getLinesSizes = function(){
            return(this.createLinesSizesArray());
        // YES -> -1  , NOT -> 1
        /*int*/ TextFrame.prototype.preserveCharsCount = function(/*int*/ charsCount){
            return( (this.characters.length != charsCount) ? 1 : -1 );
        // Indicates whether:
        // - chars count equals linesCount
        // - frame DOES NOT overflow
        // YES -> -1  , NOT -> 1
        /*int*/ TextFrame.prototype.preserveLinesCount = function(/*int*/ linesCount){
            return( ((this.overflows) || (this.lines.length != linesCount)) ? 1 : -1 );
        // Indicates whether:
        // each x line isoceles linesSizes[x]
        // YES -> -1  , NOT -> 1
        /*int*/ TextFrame.prototype.preserveLinesSizes = function(/*arr*/ linesSizes){
            return( (this.isoceleLines(linesSizes)) ? -1 : 1 );
        //            COLUMN METHODS
        // intanciate the part of the abstract process for Columns
        /*bool*/ Column.prototype.isEmpty = function(){
            for (var i=this.cells.length-1; i>=0 ; i--)
                if (this.cells[i].characters.length>0) return(false);
            return(true);
        // Indicates whether AT LEAST a cell overflows
        // !! We can't trust Column::overflows !!
        /*bool*/ Column.prototype.isOverflowed = function(){
            for (var i=this.cells.length-1 ; i>= 0 ; i--)
                if (this.cells[i].overflows) return(true);
            return(false);
        /*int*/    Column.prototype.getWidth = function(){
            return(this.width);
        // Redim the column width by widthOffset
        // !! we HAVE TO update the display after resizing !!
        /*void*/ Column.prototype.resizeWidthBy = function(/*int*/ widthOffset){
            this.width += widthOffset;
            // updates the display
            if (APP_INT_VERSION > 3)        // CS2+
                this.recompose();
            else{
                // CS -- thx to Tilo for this hack --
                for(var i = this.cells.length - 1 ; i >= 0 ; i-- ){
                    // Comparing the cell contents against null
                    // seems to internally recompose the cell!
                    if (this.cells[i].contents == null) {}
        // Returns the minWidth of the column according to embedded content
        // and inner space
        /*int*/ Column.prototype.computeMinWidth = function(){
            var iCell = null;
            var w = 0;
            var r = 0;
            for (var i=this.cells.length-1 ; i>= 0 ; i--){
                iCell = this.cells[i];
                w = iCell.computeIncludedObjectsWidth() +
                    iCell.leftInset + iCell.rightInset;
                if (w > r) r = w;
            return(r);
        // Returns SIGNED chars count BY CELL (negatif if overflows)
        /*arr*/ Column.prototype.getCharsCount = function(){
            var r = new Array();
            var sgn = 0;
            for (var i=this.cells.length-1 ; i>= 0 ; i--){
                sgn = (this.cells[i].overflows) ? -1 : 1;
                r.unshift(sgn * this.cells[i].characters.length);
            return(r);
        // Returns lines count BY CELL
        /*arr*/ Column.prototype.getLinesCount = function(){
            var r = new Array();
            for (var i=this.cells.length-1 ; i>= 0 ; i--)
                r.unshift(this.cells[i].lines.length);
            return(r);
        // Matrix: returns the chars count BY LINE / BY CELL
        /*bi-arr*/ Column.prototype.getLinesSizes = function(){
            var r = new Array();
            for (var i=this.cells.length-1 ; i>= 0 ; i--)
                    r.unshift(this.cells[i].createLinesSizesArray());
            return(r);
        // Indicates whether:
        // overflow sign BY CELL x equals sgn(charsCount[x])
        // YES -> -1  , NO -> 1
        /*int*/ Column.prototype.preserveCharsCount = function(/*arr*/ charsCount){
            var sgn = 0;
            for (var i=this.cells.length-1 ; i>= 0 ; i--){
                sgn = (this.cells[i].overflows) ? -1 : 1;
                if (sgn * charsCount[i] < 0) return(1);
            return(-1);
        // Indicates whether:
        // - lines count BY CELL x equals linesCount[x]
        // - no cell overflows
        // YES -> -1  , NO -> 1
        /*int*/ Column.prototype.preserveLinesCount = function(/*arr*/ linesCount){
            for (var i=this.cells.length-1 ; i>= 0 ; i--){
                if (this.cells[i].overflows) return(1);
                if (this.cells[i].lines.length != linesCount[i]) return(1);
            return(-1);
        // Indicates whether:
        // - in each CELL x, each LIGNE y isoceles linesSizes[x][y]
        // (if a cell overflows, returns 1)
        // YES -> -1  , NO -> 1
        /*int*/ Column.prototype.preserveLinesSizes = function(/*bi-arr*/ linesSizes){
            for (var i=this.cells.length-1 ; i>= 0 ; i--){
                if (this.cells[i].overflows) return(1);
                if (this.cells[i].isoceleLines(linesSizes[i]) == false) return(1);
            return(-1);
        //            METHODES CENTRALES
        // !! [CS2 only] Prevents a strange crash on wide table columns selection !!
        // !! Thx to Tilo for this hack --
        /*void*/ Object.prototype.manageFit = function(/*bool*/ FLUIDFITTING){
            if (APP_INT_VERSION>=4){
                $.gc();
            // NOP if empty object
            if (this.isEmpty()) return;
            // min width to preserve
            var minWidth = this.computeMinWidth();
            // let's go!
            this.processFit(FLUIDFITTING, minWidth);
        // Fits this object
        // if FLUIDFITTING -> fluid fitting, else: strict fitting
        // minWidth sets the threshold
        /*void*/ Object.prototype.processFit = function(/*bool*/ FLUIDFITTING, /*int*/ minWidth){
            if (FLUIDFITTING){ // FLUID FITTING
                if (this.isOverflowed()){ // NB : overflowed CELLS are "transparent"
                    var charsCount = this.getCharsCount();
                    var evalFlag = function(thisObj){return(thisObj.preserveCharsCount(charsCount));}
                else{
                    var linesCount = this.getLinesCount();
                    evalFlag = function(thisObj){return(thisObj.preserveLinesCount(linesCount));}
            else{ // STRICT FITTING
                  // NB : overflowed columns are "intouchable"
                if ((this.constructor.name=="Column") && (this.isOverflowed()))
                    return;
                var linesSizes = this.getLinesSizes();
                var evalFlag = function(thisObj){return(thisObj.preserveLinesSizes(linesSizes));}
            // DICHOTOMIC LOOP
            var sgnFLAG = -1;
            var w = ( this.getWidth() - minWidth ) / 2;
            while (w >= PRECISION){
                // resize width by +/- w
                this.resizeWidthBy(sgnFLAG*w);
                // +1 = increase | -1 = reduce
                sgnFLAG = evalFlag(this);
                // divide
                w = w/2;
            // exit with sgnFLAG==+1 -> undo last reduction -> +2w
            if (sgnFLAG>0) this.resizeWidthBy(2*w);
        // MAIN PROGRAM
        if ( app.documents.length > 0 ){
            if ( app.activeWindow.selection.length > 0 ){
                try{
                    var thisDoc = app.activeDocument;
                    var FLUIDFLAG = thisDoc.withinDelay();
                    var memUnits = thisDoc.getUnits();
                    thisDoc.setUnitsTo(MeasurementUnits.points);
                    var selObjs = app.activeWindow.selection;
                    var objsToFit = null;
                    for (var i=selObjs.length-1 ; i>=0 ; i--){
                        objsToFit = selObjs[i].asObjsToFit();
                        if (objsToFit){
                            for (var j=objsToFit.length-1 ; j>=0 ; j--)
                                objsToFit[j].manageFit(FLUIDFLAG);
                    thisDoc.setUnitsTo(memUnits);
                    thisDoc.storeTimeStamp();
                }catch(ex){
                    thisDoc.setUnitsTo(memUnits);
                    exitMessage(ex);
            else
                alert("No object selected!");
        else
            alert("No document opened!");

    InDesign table cells don't break across pages the way they do in Word. It's all or nothing.

  • Nested Tables - Unable to make Table Header row to repeat in subsequent pages

    Hi,
    I am unable to make the header row to repeat in subsequent pages for nested tables.
    Can anyone reply with a sample form to illustrate a similar scenario?
    Thanks,
    Rohit

    Hi All,
    I have selected the the check box Insert Header Row in Subsequent Pages then also the header is not getting flowed in subsequent pages only till 2nd page its getting flowed.
    I have used table wizard to create table and i have made the table subform as flowed then also table header is not repeating in subsequent pages.
    MainForm (Flowed)
    TableSubform1(Flowed)
    Table1
    HeaderRow
    Row1
    TableSubform2(Flowed)
    Table2
    HeaderRow
    Row1
    I selected TableSubform1 and in Pagination tab OverFlow Leader dropdown i selected HeaderRow, the same i did for TableSubform2 also but the table header is not getting repeated in subsequent pages.
    Please help me in solving this problem.
    Regards,
    Bala Baskaran.S

  • Repeating Multiple header rows of table in subsequent pages

    Hi Gurus,,
    I'm struck in a typical problem.
    I have a Table with 2 header rows in a flowed subform.
    when content flows to the next page, the table displays either the Ist header row or the second Header row depending on the checkbox selected for the individual header row.
    The problem is how to get both the rows in the next page.
    When I try to select both the header rows for display in initial as well as subsequent pages either of the one only remains on activation of the form.
    Any help will be highly appreciated.
    Thankx in Advance.
    Aryan

    Hi Srini Vasan,
    In the Hierarchy View of the Palettes, goto the Table you created, Right click on one of the Header Rows in the Hierarchy View, there you select Group as Section. Now a section will be created, in this you drag another Header Row also(in Hierarchy View only).
    Now goto Object Palette of Subform(where the Table is present in the subform), for this you make Content as "Flowed", Flow Direction as "Top to Bottom", and select "Allow Page Breaks within content". For this Subform goto Binding Tab and there select "Repeat Subform for each Data item, select "min count" and enter 1 and dont select "max count" and "initial Count".
    Now goto object Palette of Table in that select "Allow Page Breaks within content". now goto Binding in that select "Repeat Subform for each Data item, and dont select "min count", "max count" and "initial Count".
    Now goto the object palette of the newly created Section  inside a table. for this goto Pagination there select "Include Header Row in Initial Page" and also "Include Header Row in Sunsequent Pages". Now goto Binding Tab and there select "Repeat Subform for each Data item, select "min count" and enter 1 and dont select "max count" and "initial Count".
    Now goto object Palette of Table Row in that select "Allow Page Breaks within content". now goto Binding in that select "Repeat Subform for each Data item, select "min count" and enter 1 and dont select "max count" and "initial Count".
    Regards
    Pradeep Goli

  • Repeating Header Rows - Not repeating beyond page 2

    Hello,
    I'm at my wit's end and I have yet to see a response to questions related to repeating headers (though I've seen it in a few forums).
    I have a flowed form with an initial header table and then 4 subforms, each made up of tables with a header group of two rows and then a user-modified number of data rows. Each of the subforms has it's own 2 line header, which includes a static "topic" row (with "add/delete row" button) and then a second header row with the column titles (9 columns across). As I said, these two header rows are grouped together.
    Each of the 4 subforms can (and does) flow on to multiple pages once filled in by the users. At first, my issue was getting the two rows (grouped) that make up my header to repeat on subsequent pages for each subform. No go - apparently grouped header rows can't make up an overflow leader (I can only choose one of the two), and when I check the box to make the GROUP appear on subsequent pages under pagination, it will only appear on page 1 and 2 for that particular subform...so I've given up on that. Now I just want the second header row (with the column titles) to appear on every page that each subform overflows on to, but I can still only get it to appear TWICE. Anytime a subform moves onto a third page, requiring a third instance of the header, it doesn't work.
    I came across one solution involving the "repeat header for each row", but that came with a host of new bugs, including a bug where every time I open, edit data in a particular subform and save the file, a NEW header group row is added to that subform (after 12 opens, there is literally 12 header rows at the top of each of my 4 subforms if I edit data in all 4)...though it solves the other issue and the header rows DO appear properly on subsequent pages beyond page 2!!!!
    Any solutions? I've run into this on three separate occasions over the past year when building forms and every time, I've hit this wall, given up the search for a solution and sacrificed aesthetics and functionality in my forms that I shouldn't really have to.
    Ck.

    Here is a sample I did for you..
    https://acrobat.com/#d=BSeyeLhbaeyqXfwX*wrwzA
    The difference with this file, is I created a table and then in the top row I merged all cells. Then created a table with two rows inside this merged cell.
    In the Header row properties I checked, repeat header in Subsequent pages.
    Let me know if you have any issues..
    Thanks
    Srini

  • Table heading row does not repeat

    I'm using InDesign CS5, and have a table that splits over two pages. There is one heading row, and I've set it to repeat on each page. But it doesn't repeat. The only thing a little unusual about this table is that some of the heading row cells are rotated and some are not rotated. Has anyone encountered this and found a solution?
    (Yes, it is really a header row.)

    Works fine for me?
    What do you mean you set it to repeat?
    When you highlight the Top Row, call up the context menu (right click or CTRL Click on Mac with one button mouse) select "Convert to Header Row"
    Once it's a header row it automatically repeats when the table breaks.

  • Orphan table header at bottom of page when page breaks a table across multiple pages

    Hi all,
    I think similar questions have been asked before but I have not found an answer.
    Here's the scenario:
    I have several dynamic tables in a dynamic form.  The layout is flowed, and everything can grow and shrink as needed.  That all works.
    However, my tables have headers.  Occasionally when one of these tables is large and needs to break across multiple pages, there will be just enough room at the bottom of the previous page to show the next table header, but not enough space to show any of the related table rows.  So it ends up looking silly, with just an orphaned header at the bottom of one page, and then the table continues on the next.
    I have my tables set up so that headers get repeated on subsequent pages, by setting the header row to "repeat row for each data item" on the binding tab.  I would like to keep that functionality, but I just want to find a way to avoid these "orphaned" table headers that sometimes appear.
    I have tried the "keep with next" option.  However, although this does push the rendering of the header to the next page, it seems that according to livecycle the table still officially began on the previous page.  Therefore I get a duplicate header because of the "repeat row for each data item" option.
    I have also tried having two header rows, one that is set to only be displayed on the initial page, and the other that is set to appear only on subsequent pages (pagination tab).  This did not work - I ended up with duplicate table headers.
    Can anyone help me?
    Thanks!

    You shouldn't have "repeat row for each data item" selected for header rows.
    You should have "include header row in initial page" and "include header row in subsequent pages" selected on the Pagination tab.
    Then using a "keep with next" might work ok.

Maybe you are looking for

  • Photoshop CC won't save files after update

    i just let Adobe do an update to photoshop CC last night, and now this morning, when i go to create files and save them for use in premiere CC, they don't save. i click save, save as, ctrl+S, they just don't do anything. they don't bring up the save

  • Acrobat Plug In...Could not find external window handler

    When I try to open a pdf file with Adobe Acrobat, my computer gives me a prompt, Acrobat Plug In...Could not find external window handler... The problem just started recently.  I am running Adobe Acrobat 6.0 and the ME version of Windows.  The Micros

  • Credit Note With Out Incoming Excise invoice

    Hi guys, I want to know what are the A/R Credit Memos that still has not been converted intlo Incoming Excise Invoices. will any  body please provide me a query for the same. I have tried a query for displaying the Incoming Excise Invoices which has

  • Sent mail is marked as 'unread'

    This just started happening a few days ago. No settings have been changed, nothing is different in how or where mail is stored. About 1/2 of the mail I send now appears as 'unread' in the Sent mail folder in Mail. Why? How can I make this stop? I rel

  • SD and FI integration

    Dear Guru's, I am not able to post the billing document to FI. Can any body throw light on this issue. Scenario: Revenue is getting posted to FI but if I add Tax getting error while saving document. Error is : Error in account determination: table T0