Which page is my table row on?

Hi there
I have a large table that spans many pages in overflowing to different text frames.
How can i tell which page a row is on.. i have tried the following
function PageRowIsOn(row) //yes i do correctly pass a table row
    var table = row.parent;
    var frame   = table.parent;
    var pageIndex= frame.parent.index;   
    return pageIndex;
but it always returns 0.
So i was wondering if someone can point me in a better direction
cheers
Buzz

Try the below code return the page object
function getPage(theObj)
     if (theObj.constructor.name == "Page") return theObj;
     if (theObj.constructor.name == "Character")
      return getPage(theObj.parentTextFrames[0]);
     if (theObj.constructor.name == "Application")
          // Frame is on an unexpected place...
          alert ("Can't able to find the page");
          //exit(0);
     return getPage(theObj.parent);
Arivu

Similar Messages

  • Smartforms  how to print Table rows on to the next page automatically

    if this question is answered pls point to the the link
    SMART forms:
    layout :  Half of my A4 page is filled with templates, a small portion is footer, the middle portion is Table.
    Note: i have set the condition for the footer as (tick the check box) "only after end of main window"
    Output:
                       the template is displayed the table is populated on the first page, no footer on 1st page,
                    on page 2 the table rows are printed (table rows were a lot) and finally footer got printed every thing as per normal
    what i want is:
                     instead of the table lines printed in the middle of page 2 (bcz my main window table is in the middle, top is templates)
                     i want the table lines (after filling the main window table lines in the 1st page) to continue to print from the
                     top of the page on page 2 and immediately after the table rows finish. footer must be printed....
    what should i be doing to get this output

    dear bob,
    yes i have done that already as u said, when i do it......
    i created a new page (next page) directed first page to next page
    on the next page my layout is like below
    removed all the templates dragged the main window to the top of the page...... 
    when i check the result, there is an empty line as the first line in the table (2nd page)
    and also the footer (again a template) on the first page, which is ticked as ( print after end of main window) is NOT displaying.

  • Why is an entire page of table rows duplicating in FrameMaker 10?

    I have a long table in one of my chapters in FrameMaker 10. The table is seven pages long, but an entire page worth of table rows is duplicated, so the table really only should be six pages long. The first four pages look like this:
    Page 1: Rows 1-7
    Page 2: Rows 8-16
    Page 3: Rows 8-16
    Page 4: Rows 17-28
    The headers and footers are completely unaffected. All of the index markers in the table rows are also duplicated, so all of the index markers on Page 3 are also showing up in the IX file. I’ve combed through the file for unresolved cross-references, but I can’t find any. Also, if I insert a blank row on Page 2, the set of rows is no longer duplicated. If I highlight the entire table, Page 2 does not appear to be highlighted. I can’t select or edit anything on Page 2.
    I’m absolutely mystified about why this is happening. Any insight on what is causing this set of phantom rows to appear?

    Hi,
    I noticed this problem several times in the past years. MIF-washing always helped, but sometimes the table rows duplicated again.
    With FrameMaker 10 I did not notice this bug yet.
    Best regards
    Winfried

  • In table  rows , i need to check the date validation of perivous ent'd rows

    Hi All,
    I'm using adf 11g.
    I have a table with add and delete button in jsff. In jsff page , i mean table row have one lov column and date column and enterable inputtext fields .
    Conditions 1.lov value , date column and inputext value should be unique . this can be handled by alternate key.
    2. if user enters value like
    lov value date inputtext
    v1 01/02/2011 ipt1
    v2 01/02/2011 ipt2
    v1 01/01/2011 ipt3 here , lov selected v1 is already selected in first row, i want to validate dat second occurance of v1 with combination date and inputtext should be
    unique --- it makes unique with compare to first row .but i have to check second v1 date should be always greater than the first v1's date .
    User can add n number of records of keeping date variance , but the same lov value having record , the date should be always less than the perivouse entered row date (same lov value ).
    how can i handle this date check . business rules / validation .
    thanks in advance .
    Edited by: user9010551 on Jun 16, 2011 9:23 PM
    Edited by: user9010551 on Jun 16, 2011 11:25 PM

    you have to make use of this technique - in memeory filtering
    http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcadvvo.htm#CEGBEICF

  • SSRS Table/Row Header does not repeat on every page when exported to PDF

    Hi, I have a SSRS Report in which the rows are grouped and the Tablix has a Table/Row header. I wanted the header to repeat on every page for a group because sometimes the data from the group would be more than one page.
                                   To achieve this
                                   - I went to Advance mode by clicking the arrow next to column group
                                   - Selected the Header Static column from Row Group
                                   - Changed the following properties
                                                    - KeepWithGroup: After
                                                    - RepeatOnNewPage:
    True
                                                    - The header columns
    are set to not grow.
    The problem only occurs when the nested grouped data in one of the columns goes over a page. The following pages don't have any header.
    So half of the time the header row repeats but when the nested grouped data extends over one page the header does not show. Problem only occurs when rendered to pdf.
    I found this line "Headings are repeated on each page only if there is sufficient room" in SQL 2008 version. But I could not find it in later versions of sql server. So does that mean it is fixed

    Hi Mumblesnz1,
    According to your description, you specify value of RepeatOnNewPage as True in the report. When exporting the report to PDF, one grouped data extend over one page, and tablix header display on first page, not repeat on following pages.
    As we tested in our environment(SQL Server 2008(SP3)-10.0.5520.0(X64)), it works as you required. We set KeepWithGroup as After and RepeatOnNewPage as True. After exporting to PDF, the grouped data display on two pages, and tablix header repeats on each
    page. Since we haven’t found any document mentioned this issue is fixed on which version, I suggest you try to install the service pack 3 for sql server 2008.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • Print each table row at new page in PDF

    Hi All,
    I have a very specific requirement for Adobe forms.
    1. I have to print a table which can flow upto several pages and after that i have a structure which is having some fields which needs to be displayed at last page i.e at the bottom of last page like the total of all data in the table.
    2. I have to print a table in which each row should be printed at different page i.e 1st row which is again a table type can flow upto several pages then 2nd row which is a table type must be start from next page and so on.
    How can i achieve these two requirements.
    Thanks in advance,
    Nawal Kishor Mittal

    1. I have to print a table which can flow upto several pages and after that i have a structure which is having some fields which needs to be displayed at last page i.e at the bottom of last page like the total of all data in the table.
    If you use content: flowed + allow page breaks within content, then the rows will be distributed to the pages and the content which is placed in the hierarchy just after the table will appear at the bottom of the table
    I have to print a table in which each row should be printed at different page i.e 1st row which is again a table type can flow upto several pages then 2nd row which is a table type must be start from next page and so on.
    That means you will use the table of tables (create table of tables in the backend and then just display it in the form). To work with the page break/ pagination you should set up "top of next page" (tab Pagination) for every outer table row.
    Otto

  • Adding rows onto a new page in a table

    Hi,
    I have created a form that had the last page as a subform with a table on it, flowed western so that the cells expand with content./ Also added a add new row button to it (as per the scripting given in the Livecycle help), all of which was working fine. I then moved the subform with the table to the middle of my document instead of the last page and now when I add rows, it doesn't create a new page when it reaches the end, but just continues down off the end of the existing page. The following pages are just information set it their own sub forms.. do I need to change the subform pagination or hte scripting or the table settings to make it add an extra page and keep adding rows in the middle of the form?
    Many thanks for any assistance
    Jackie

    No the issue is with the page subform ...it must be flowed as well .....make sure you wrap all of the other content in Positioned subforms or it will be flowed also.
    Paul

  • Table rows are breaking on seperate pages...

    I have table which has 20 rows:
    First 3 rows are on one page, then half of the page is blank hen remaining 17 rows are on second page.
    How can I keep table from breaking rows. I want all rows in table to follow one another.
    Please help. Thanks.

    The Keep With settings are found in Table > Format > Row Format...
    Note: the first row on the second page may also have a Start setting that tells it to be at the top of a page or column.
    The Widow/Orphan control just specifies how many rows to keep together (widow is the first page; orphan is the second page) when a table needs to split across a page. The higher the number, the more rows are forced to stay together.

  • How to add an Attachments Table on the Page of a Single Row Region

    Dear All,
    Please help me with a tutorial or anything that help me adding a an Attachments Table on the Page of a Single Row Region.
    I took a look at the attachment in ch4 in the developer guide but it is not explained clearly how to implement it.
    Thanks,
    Mahmoud Assem
    Message was edited by:
    Mahmoud Assem

    If you follow the dev guide properly, there shouldn't be any issue. Let us know where exactly you are facing the issue.
    --Shiv                                                                                                                                                                                                                                                                   

  • How to use script to get the first table row on each page?

    I create a print form to display a table. I set a conditional page break on this table, so the table rows on each page could be different.
    For example, there're total 50 rows in this table. On the 1st page, there're 5 rows, but on the 2nd page, there're only 2 rows, and so on...
    Now I want to get some value from the 1st table row on each page. How can do that? I can refer to a table row using TableRow[n], but I don't know how to calculate 'n' in script (either FormCalc or JavaScript) for the 1st row on each page.
    Any ideas?

    Hi Wei,
    There is an option of setting the overflow header in the pallette. You may check that out. It is basically used to have the table header to be seen in all pages, if the table is overflowing to multiple pages. You may put your first row as the overflow header.
    - hope this helps, Kindly update,
    thanks and regards,
    - anto.

  • Dynamic Table row breaks only on the first page (not on second)

    Hello,
    I biuld a dynamic table with Livecycle.
    If the text in the last field is to long, the table grows automatically.
    If the end of the first page is reached, the row breaks over from the first to the second page(= 1st break)
    This works correctly.
    But if the text is longer, and the field have to break from the second to the third page, the field does not break!!
    Please see the attached file.
    The settings should be correct, because the break ( from 1st to the 2nd page) works.
    But why, is the "dynamic behaviour " limited to only ONE page ?
    Can you help me please ?
    Thanks....

    @radzmar
    GERMAN
    Danke für die korrigierte Datei.
    Jep, bei deiner Datei funktionierts.
    Ich habe alle Einstellungen genauso angeklickt wie Du, aber trotzdem funktionierts nicht in meiner Tabelle.
    Kannst du Dich erinnern, was genau Du geändert hast ?
    Ich lade eine Datei hoch, in der ich eine neue Tabelle in die bereits existierende Tabelle ( von Dir korrigiert und funktionierend) einfgefügt habe.
    In dieser zweiten Tabelle habe ich die gleichen Einstellungen wie in deiner Tabelle. Meine Tabelle funktioniert aber nicht.
    Wo ist mein Fehler ?
    Danke für deine Hilfe.
    Ich hatte es aber als dynamisches Formular gespeichert. Die Felder verändern sich ja, nur nicht mit dem richtigen Umbruch.
    https://acrobat.com/#d=kBUbNEdmNNLTXmKuCUo84w
    Ist es womöglich ein Versionsproblem ?
    Teillösung:
    Mit 1 Spalte anstelle von 2 Spalten funktionierts auch bei mir.
    Mit 2 Spalten nicht.
    Weiss jemend Rat ?
    ENGLISH
    thanks for the correction of the file.
    It works fine in your doc.
    I copied all settings from your pdf-file, but still it doesn`t work in my doc.
    Do you remember, what you changed ?
    I will upload a flie, where I paste a new table in the existing one. Can you tell me where the failure is ?
    Thanks for your help.
    I saved the origin file as a dynamic form. The fields were growing automatically (when the text is long). The problem was the overflow.
    https://acrobat.com/#d=kBUbNEdmNNLTXmKuCUo84w
    Is it possibly a bug within my LCD Version ?
    Greetings
    Dilaver
    UPDATE
    It works fine, when I delete 1 column.
    With 2 columns -> overflow problem
    With 1 column -> no problem..
    Does anybody knwo why ?

  • Table row does not flow to next page

    Hi,
    I am using deep structure table in adobe form but the content is not flowing to next page.
    I have wraped the table in subform, Body Page, subform and table all are flowed and allow page breaks with content is also ticked,  still the table row does not flow to next page.
    Regards,
    Kimaya

    Hi Kimaya,
    Just drag the table directly on the body page and execute the form. This should take care of the properties required for data to flow on the form.
    Thanks

  • Trying to access row values in a table which does not have any rows yet

    try{
                             MappedRecord importParams = recordFactory.createMappedRecord("CONTAINER_OF_IMPORT_PARAMS");
                             IFunction function1 = client.getFunctionsMetaData().getFunction(funModGetDet);
                             IStructureFactory strucFact = interaction.retrieveStructureFactory();
                             response.write("try2 :"+pnumber);
                            IRecord structure = (IRecord) strucFact.getStructure(function1.getParameter("PERNR_TAB").getStructure());
                             response.write("try111 :"+pnumber);
                             structure.setString("PERNR",pnumber);
    I am getting the following error "Trying to access row values in a table which does not have any rows yet " where PERNR_TAB is a table containing field "PERNR".
    Can anybody help me out?

    Please re-post this question in the appropriate forum. It seems to have nothing to do with Web Dynpro.

  • Merging data in table rows into single page form to be printed?

    Hello all,
    I've been trying to make this work but after much hair pulling have had no luck with it.
    I have a three page pdf. On the first page are two tabls of employee names. Each row in the tables includes a cell for the employee name and also one that holds a checkbox. 
    The second and third pages are time sheets appropriate for the department that each employee is in. These two pages are hidden.
    So the idea is that if a particular employee is selected by the check mark, a time sheet with his name, dates and other info would be printed. One department is straightforward in that there is one sheet per employee.
    The trouble is with the other department, in that for that department, each time sheet has four columns, at the top of each goes one employee's name. So the logic for this department is as follows:
    1. count how many names are selected
    2. if four or less are selected, enter first selected name into the first row of the first column, the second into the first rown of the second column, the third into the first row of the third colum etc.  
    3. if more than four are selected, enter the first four names into the first page, print the page, and enter the remaining into the second page and print, and so on until all selected names are processed.
    1. works fine
    2. works fine
    3. works but not correctly.
    So if I have say six names selected, for example, aaa, ,bbb, ccc, ddd, eee, and fff what end at the top of the columns on first page is:
    eee, fff, ccc, ddd  and on the second page its the same thing
    The actual bit of formcalc script to do this is below, obviously it is incorrect or else missing something.
    Any pointers and suggestions (in formcalc if possible) would be very welcome and appreciated.
    Thanks.
    // use a for loop to count number of names selected. tabel has 15 employee names
    for i = 0 upto 14 do
          if ((not (form1.main.front.Table2.Row[i].dbmname.isNull | form1.main.front.Table2.Row[i].dbmname == "")) and (form1.main.front.Table2.Row[i].Checkbox == 1)) then    
                   ns = ns + 1    // ns = number of names selected
          endif
    endfor
    for i = 0 upto 14 do                         //if any names are selected then process and print desk and maintenance sheet
                                                           //check to see if selected rows are not empty     
                   if ((not (form1.main.front.Table2.Row[i].dbmname.isNull | form1.main.front.Table2.Row[i].dbmname == "")) and (form1.main.front.Table2.Row[i].Checkbox == 1)) then
                                                          //enter first selected name into column 1 and second into colum 2 etc... 
                 form1.dbm_sheet.Table3.header2.dbm_name[np] = form1.main.front.Table2.Row[i].dbmname.rawValue 
                                                           //np = name position to select next column that the next name will go into
                  np = np + 1
                                                           //ok - check if number of names selected was 4 or more and if first four names have been entered, lets print the first timesheet
                  if ((ns >= 4) and (np == 4)) then
                            xfa.host.print(1, "2", "2", 1, 1, 0, 0, 0)          //print sheet
                                                           //first sheet with 4 names is printed, therefore reduce ns by 4
                            ns = ns - 4
                                                           //first sheet printed, reset np to zero
                            np = 0
                                                          //if less than 4 names were selected OR are left after printing first 4 then process remaining names
                elseif ((ns  < 4) and (np == ns)) then
                                                 xfa.host.print(1, "2", "2", 1, 1, 0, 0, 0)
                                                        // blank remaining columns that are supposed to be empty : if there are less than four names to be printed on the sheet
                    for i = (np) upto 3 do
                                                                          form1.dbm_sheet.Table3.header2.dbm_name[np] = ""
                 endfor        
            endif
                        endfor
      endif
      endfor

    helo DV,
    to insert a new node element in the resulting model node following code can he used.
    wdContext.node<Node name>().validate();
    IPublic<controller>.I<node>Element ele = wdContext.create<node>Element(new <model structure type>());
    ele.set<attribute name>("<value>");
    wdContext.node<node name>().addElement(ele);
    now to traverse the model node and change a column value following code can be used.
    for(int i=0;i<wdContext.node<node name>().size();i++
    IPublic<controller>.I<node>Element ele = wdContext.node<node name>().get<node name>ElementAt(i);
    ele.set<attribute name>("");
    Regards,
    Piyush.

  • Printable page table rows incorrect on showPrintablePageBehavior

    I'm using 11.1.1.3.
    My page has a table that shows rows returned from the database. I also have a command button with a showPrintablePageBehavior tag.
    The table fetchSize and autoHeightRows are set to the rangeSize. Let's say the result set is 100 rows and the table displays 10 rows at a time. If I click the printable button and don't scroll the table the printable page displays fine. As I scroll down the table fetches the next batch of 10 rows.
    When I then click the printable button the rows that are displayed are different that what was on the original page. It shows the first 10 rows and the the row count indicates rows 1-20.
    No matter what row I scroll to, the printable page goes to the beginning of the Iterator's cached rows. The VO Access Mode is set to Scrollable. No other modes seem to work.
    The issue happens even on the demo apps that go to the HR database.
    I've spent considerable time researching this to no avail. That's why I'm finally asking the forum.
    Any guidance would be appreciated. Thanks.

    Sorry, another thought...
    Basically I want the user to be able to print what they see. If the user scrolls down to row 43 I need the printable page to actually show rows 43 -53 and indicate that they are seeing "Rows 43-53 of 100". That doesn't seem to ever happen UNLESS the user has not scrolled at all.
    I know that the user could just click the browser Print button on the original page. However, with panel splitters, flash dvt graphs and other buttons on the page it really doesn't look right.
    Thanks again!

Maybe you are looking for

  • Having trouble setting up Airport Extreme Base Sation

    Hi, I'm new to a wireless set up for my Mac. Initially I tried to set up entering various passwords along the way and discovered my cables were not connected correctly - I rectified this and tried again. I was then encouraged to proceed via Bridge mo

  • Need to change email on Apple ID and don't want to lose all my purchases!

    I am trying to get iCloud set up but have an issue with my apple ID.  Somehow I managed to get two separate IDs.  My original ID, which has all my itunes etc on it is associated with my old email which used to forward to my current email, but no long

  • Weblogic 10.3.2   Error when deploying ear file

    Using WLS 10.3.2, wwhen activating changes, I obtain following errors: An error occurred during activation of changes, please see the log for details. Exception occured while downloading files [DeploymentService:290066]Error occurred while downloadin

  • IPhoto hangs when you export photos

    Installed OSX 10.9.2 yesterday; now, when I try to export photos from iPhoto, iPhoto hangs. This is the first part of the error message, it goes on for pages: Process:         iPhoto [894] Path:            /Applications/iPhoto.app/Contents/MacOS/iPho

  • Yosemite Running so Slow on my Macbook Pro 13" 2011 Model

    I have Macbook Pro 12011 model upgraded to Yosemite and it is very slow.... any known reason or fix?