Manual pagination

Hello,
I am using APEX 4.2.2
I have a Dynamic PL/SQL region that shows too many number of rows. How can I create a pagination for that result set.
Regards,

Use a normal report with a source function returning SQL query. Otherwise there is no way to get the pagination working.
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.apress.com/9781430235125
https://apex.oracle.com/pls/apex/f?p=31517:1
http://www.amazon.de/Oracle-APEX-XE-Praxis/dp/3826655494

Similar Messages

  • Custom / manual pagination - batched collection report

    <p>I am trying to create a report with custom/manual pagination because I wish to implement a data access package where all request for data are via PL/SQL packaged functions returning Collections that represent the application data (i.e. no direct access to tables).</p>
    <p>I pass in the 'Slice number' to the data access function - first fetch is Slice number = 1, second fetch is Slice number = 2 and so on. I can implement an On Submit Branch to increment a session state Slice number, but dont seem to be able to tie this to the Next Button, and therefore cannot decrease the Slice number when pressing the Previous button!!</p>
    <p>I paste below sample SQL and PL/SQL code I am using.
    Can you give me any tips / advices? Many thanks.</p>
    <pre>create or replace type User_Objects_Obj as Object (
    Owner varchar2(30),
    Object_Name varchar2(128),
    Object_Type varchar2(19),
    Last_DDL_Time date
    show errors;</pre>
    <pre>create or replace type User_Objects_Vat as Varray(15) of User_Objects_Obj;
    show errors;</pre>
    <pre>create or replace package Data_Access_Pkg
    as
    function Get_User_Objects (Slice_No in integer)
    return User_Objects_Vat;
    end Data_Access_Pkg;
    show errors;</pre>
    <pre>create or replace package body Data_Access_Pkg
    as
    function Get_User_Objects (Slice_No in integer)
    return User_Objects_Vat
    as
    User_Objects_Var User_Objects_Vat;
    Slice_Size integer := 15;
    lb integer := Slice_Size*(Slice_No - 1) + 1;
    ub integer := lb + Slice_Size - 1;
    begin
    with Bounded as (
    select 'X_User' as Owner, t.Object_Name, t.Object_Type, t.Last_DDL_Time
         ,Rownum r
         from User_Objects t
    order by t.Object_Type, t.Object_Name
    select User_Objects_Obj(
    Bounded.Owner, Bounded.Object_Name
         ,Bounded.Object_Type, Bounded.Last_DDL_Time)
    bulk collect into Get_User_Objects.User_Objects_Var
    from Bounded
    where Bounded.r between Get_User_Objects.lb and Get_User_Objects.ub;
    return Get_User_Objects.User_Objects_Var;
    end Get_User_Objects;
    end Data_Access_Pkg;
    show errors;</pre>
    <p>I create a SQL Report Region and use this query (in the region source) to retrieve the collection of data;</p>
    <pre>select Owner, Object_Name, Object_Type, Last_DDL_Time
    from TABLE(
    CAST(Data_Access_Pkg.Get_User_Objects(:P1001_SLICE_NO)
         AS User_Objects_Vat)
    )</pre>

    Hi Craig,
    Sorry - yes, the setting of the next/previous vaules should be a process, well spotted!
    In your report, if you click on the Region Footer heading to popup its help, you'll see that you have various values available to you:
    #TIMING#
    #ROWS_FETCHED# (items shown on the page)
    #FIRST_ROW_FETCHED# (X in X-Y of Z in pagination)
    #LAST_ROW_FETCHED# (Y in X-Y of Z in pagination)
    #TOTAL_ROWS# (total rows in report - Z in X-Y of Z in pagination)
    As these are only available AFTER the report has been generated, you can not easily use them to conditionally hide/show your next/previous buttons. However, you can use them within javascript to do this instead. For example (put this in the region footer for the report and change the button names to match yours):
    &lt;script type="text/javascript"&gt;
    var n = $('P1_NEXT_BUTTON');
    var p = $('P1_PREVIOUS_BUTTON');
    p.style.visibility = (#FIRST_ROW_FETCHED# == 1) ? 'hidden' : 'visible';
    n.style.visibility = (#LAST_ROW_FETCHED# == #TOTAL_ROWS#) ? 'hidden' : 'visible';
    &lt;/script&gt;So, if we're on the first page, the first row fetched will be row number 1, so we hide the Previous button, otherwise it is displayed. If we're on the last page, the last row fetched will match the total number of rows in the report, so we hide the Next button, otherwise it is displayed.
    Andy

  • Manual pagination in adf tables

    Hie
    I am using jdev 11g latest. The way adf rich tables show more records via auto scroll is awesome..
    Though I am looking a way to do the same old style that is a table with 4 links in header/footer first prev next last to load another set of records.
    How can i do that?
    Vik

    I've tried to contact Oracle for this question. The answer from Oracle is: there is no official way to have an old paging style in ADF 11g.
    I think you have to do it manually.
    Samson Fu

  • Paginas dinamicas dreamweaver -manuales o información-

    Necesito información (manuales o tutoriales) sobre la
    utilizacion de paginas
    en php para acceder a datos en db mediante dreamweaver
    -conexion a db
    -juegos de registros
    -mostrar datos
    -filtrado de registros
    -paginación
    -galerias dinámicas -mediante db-
    -insercion de registros.
    etc.
    (o que libros me aconsejais)
    quiero hacer plantillas con este tipo de páginas para
    futuros clientes.
    Muchas gracias a todos.
    Antonio.

    This is a multi-part message in MIME format.
    ------=_NextPart_000_0026_01C80D9F.7479A730
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    Todo lo que requieres esta en la ayuda y tutoriales de tu
    DW...
    Saludos
    Daniel Naranjo
    Lo Ultimo Group, C.A.=20
    (+58) 414 7962406 / 416 2917532 / 295 6117632=20
    Dise=F1o y Desarrollo Web, Aplicaciones Web.
    Registro de dominios y Hospedaje Web al mejor costo.
    Centro de Reservaciones Online
    "claro_" <[email protected]> escribi=F3 en el
    mensaje =
    news:[email protected]...
    Necesito informaci=F3n (manuales o tutoriales) sobre la
    utilizacion de =
    paginas=20
    en php para acceder a datos en db mediante dreamweaver
    -conexion a db
    -juegos de registros
    -mostrar datos
    -filtrado de registros
    -paginaci=F3n
    -galerias din=E1micas -mediante db-
    -insercion de registros.
    etc.
    (o que libros me aconsejais)
    quiero hacer plantillas con este tipo de p=E1ginas para
    futuros =
    clientes.
    Muchas gracias a todos.
    Antonio.
    ------=_NextPart_000_0026_01C80D9F.7479A730
    Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
    Transitional//EN">
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html; =
    charset=3Diso-8859-1">
    <META content=3D"MSHTML 6.00.6000.16544"
    name=3DGENERATOR>
    <STYLE></STYLE>
    </HEAD>
    <BODY bgColor=3D#ffffff>
    <DIV><FONT face=3DVerdana size=3D2>Todo lo que
    requieres esta en la =
    ayuda y=20
    tutoriales de tu DW...</FONT></DIV>
    <DIV><FONT face=3DVerdana
    size=3D2></FONT> </DIV>
    <DIV><FONT face=3DVerdana
    size=3D2>Saludos</FONT></DIV>
    <DIV>
    <P></P>
    <P><FONT face=3D"Arial, Helvetica, sans-serif"
    size=3D2><STRONG>Daniel=20
    Naranjo</STRONG><BR>Lo Ultimo Group, C.A.
    </FONT><BR><FONT=20
    face=3D"Arial, Helvetica, sans-serif" size=3D1>(+58) 414
    7962406 / 416 =
    2917532 / 295=20
    6117632 <BR><A href=3D"
    http://www.loultimoenlaweb.com/">Dise=F1o
    y =
    Desarrollo Web,=20
    Aplicaciones Web.</A><BR><A =
    href=3D"
    http://www.loultimoenhosting.com/">Registro
    de=20
    dominios y Hospedaje Web al mejor
    costo.</A><BR><A=20
    href=3D"
    http://www.loultimoenviajes.com/">Centro
    de Reservaciones=20
    Online</A><BR></FONT></P></DIV>
    <BLOCKQUOTE=20
    style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT:
    5px; =
    BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
    <DIV>"claro_" &lt;<A=20
    =
    href=3D"mailto:[email protected]">[email protected]</A>&gt;
    =
    escribi=F3=20
    en el mensaje <A=20
    =
    href=3D"news:[email protected]">news:femlrs$abf$1@forums=
    .macromedia.com</A>...</DIV>Necesito=20
    informaci=F3n (manuales o tutoriales) sobre la utilizacion
    de paginas =
    <BR>en php=20
    para acceder a datos en db mediante
    dreamweaver<BR>-conexion a =
    db<BR>-juegos=20
    de registros<BR>-mostrar datos<BR>-filtrado
    de=20
    registros<BR>-paginaci=F3n<BR>-galerias
    din=E1micas -mediante =
    db-<BR>-insercion de=20
    registros.<BR>etc.<BR>(o que libros me
    aconsejais)<BR><BR>quiero hacer =
    plantillas con  este tipo de p=E1ginas para futuros
    =
    clientes.<BR><BR>Muchas=20
    gracias a =
    todos.<BR>Antonio.<BR><BR><BR><BR><BR><BR></BLOCKQUOTE></BODY></HTML>
    ------=_NextPart_000_0026_01C80D9F.7479A730--

  • Adding form pagination without the wizard

    Hello,
    I'm trying to add a form pagination feature into an existing page. When I'm trying to use the Create Form Pagination Wizard I'm getting the following error: "The Create Form Pagination Wizard uses the onChange JavaScript event to alert users when they are about to exit a page without saving their changes. Remove the onChange event from any item with a source of Database Column and restart the wizard."
    I have many items on this page with onchange event, and I really don't want to erase all of then, using the wizard, and retyping them again. Is there a way to bypass this problem? I'm actually looking to use the " Get Next or Previous Primary Key Value" process. Can I manually create this process without the "help" of the wizard?
    Thanks,
    Arie.

    Arie - Perhaps you could create a temporary form page with a "clean" form and then create the form pagination process there. Then copy that process to your existing form page. After the copy, edit the process and change all the item names, column names, etc., in the process definition page and create any items required to support it. Finally, delete the temporary form page.
    Scott

  • Empty report with pagination,  rows not displayed

    Dear HTML DB Team,
    We have in our reports the next error: An empty report with pagination appears , no rows not displayed
    The test case to reproduce the error:
    1. Create "SQL report" with next report attributes in "Layout and Pagination"
         a. Row ranges 1-15 16-30 in select list (with pagination)
    b. Number of Rows : 15
    c. Number of Rows (Item): empty
    d. Max Row Count: empty
    2. Fill the table on which the report is based with 17 rows
    3. Go to the 2nd page of the report , pagination rows 16-17 of 17
    4. Remove 2 rows from the table, refresh report
    5, The pagination shows now 1 - 15 of 15 rows
    - no rows displayed
    - no "previous button" ( only )
    - no way to get the rows displayed, except logging out and in again
    Any suggestions?
    Erik

    Hello,
    i encountered the same problem while developing in HTMLDB.
    In application builder, i select application Application 106, then click on items, then click next ( the application has 22 global items). Now i want to take a look at the global items in application 105 (there are only 5). In the menu i click Builder - Application 106, select application 105 from Available Applications, click Go and Items. It shows no rows, but says that is displaying rows 1-5, and offers a Next button. No way to see/modify the items unless make a new session or go back to Application 106, Click Previous to see the first page of global items and then again switch to Appication 105 or click to the next button and then manually set pg_min_row=1 in URL.
    One more question - is this forum the right place to report bug suspicions, or is there some other special place for that?
    Best regards,
    Andres

  • How to add a new row at the top of manual tabular form

    I have a manual tablular form. I'm trying to add a row at the top of the form, instead of new row of being displayed at the bottom. any ideas are appreciated.
    thanks,
    Surya

    This will depend on two things:
    1. sorting of the columns - needs to be a some kind of a descending sorting on a hidden column, enabled within the Report Attributes and not in the SQL Query
    2. Report Attributes => Layout and Pagination => Sort Nulls First
    You will need to play with those settings a bit. One thing to consider is that you should sort your report on a hidden column and you shuldn't enable the sorting on visible columns, because it will mess up your row positioning.
    See this example:
    http://apex.oracle.com/pls/otn/f?p=31517:215
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Problem in tabular form based on dynamic view and pagination

    Hi All,
    I have a manual tabular form based on a dynamic view. The view fetches the records based on search criteria given by the user in all cases. But this view fetches ALL records when user clicks on pagination, without considering the search criteria. This is the problem I am facing.
    I am doing the following:
    Since tabular form does not support pl/sql function returning query, I cannot use a table directly. I need my results based on search criteria selected by user. Hence I created a dynamic view and used a "INSTEAD OF UPDATE" trigger to update the table.
    I use a set bind variables procedure, on load before header for setting the variables.
    This view fetches the correct data based on user search always. It creates a problem only in one situation, when using pagination in the report.
    The example can be found at:
    http://apex.oracle.com/pls/otn/f?p=19399:1:
    username = [email protected]
    pwd = kishore
    Here if "manager name" is entered as test, we get 5 records in "Summary of requests" report and 5 records in "Inactive Requests" report. When user clicks on Pagination in any of the reports, ALL the 7 records get fetched in "Summary of Requests" and 6 records in "Inactive Requests". How can I overcome this problem?? The report must consider the search variables even when pagination occurs.
    Is this because, the inbuilt "html_PPR_Report_Page" executes the region query once again by considering all search variables as NULL?
    Backend Code is at:
    http://apex.oracle.com/pls/otn/
    workspace: sekhar.nooney
    Username :[email protected]
    pwd: kishore
    application id = 19399
    My region code is something like:
    select *
    from regadm_request_v
    where access_type = :F110_REGADM
    and status <> 'INACTIVE'
    order by request_id
    My view code is:
    CREATE OR REPLACE VIEW REGADM_REQUEST_V
    AS
    SELECT *
    FROM REGREGOWNER.REGADM_REQUEST
    WHERE upper(employee_name) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_EMPLOYEE_NAME),'%')||'%'
    AND upper(manager_name) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_MANAGER_NAME),'%')||'%'
    AND upper(employee_sunetid) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_EMPLOYEE_SUNET_ID),'%')||'%'
    AND upper(manager_sunetid) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_MANAGER_SUNET_ID),'%')||'%'
    AND upper(request_date) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_REQUEST_DATE),'%')||'%'
    AND upper(USAGE_AGREEMENT_RECVD) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_USAGE_AGREMNT_RECVD,'~!@',NULL,REGADM_REQUEST_PKG.GET_USAGE_AGREMNT_RECVD)),'%')||'%'
    AND upper(STATUS) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_STATUS,'~!@',NULL,REGADM_REQUEST_PKG.GET_STATUS)),'%')||'%'
    AND upper(REQUEST_APPROVED) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_REQUEST_APPROVED,'~!@',NULL,REGADM_REQUEST_PKG.GET_REQUEST_APPROVED)),'%')||'%'
    AND upper(nvl(APPROVAL_DATE,sysdate)) LIKE '%'||nvl(upper(REGADM_REQUEST_PKG.GET_APPROVED_DATE),'%')||'%'
    AND upper(APRVL_REQUEST_SENT) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_EMAIL_APPROVERS,'~!@',NULL,REGADM_REQUEST_PKG.GET_EMAIL_APPROVERS)),'%')||'%'
    AND upper(NOTIFY_APPROVED) LIKE '%'||nvl(upper(DECODE(REGADM_REQUEST_PKG.GET_APPROVAL_NOTIFICATION,'~!@',NULL,REGADM_REQUEST_PKG.GET_APPROVAL_NOTIFICATION)),'%')||'%'
    I would be glad for any suggestions.
    Andy/Varad any ideas? You both helped me a lot on my problems for the same application that I had faced before in More Problems in Tabular form - Please give me suggestions.
    Thanks,
    Sumana

    Hi Andy,
    The view and the package for setting bind variables work properly in my entire application other than the pagination. A pity that I came across this only now :(
    I have used this same method for holding variables in another application before, where I needed to print to PDF. I used this approach in the other application because my queries were not within the APEX character limit specified for the "SQL Query of Report Query shared component".
    In this application, I initially had to fetch values from 2 tables and update the 2 tables. Updateable form works only with one table right? Hence I had created a view. Later the design got changed to include search and instead of changing the application design I just changed the view then. Still later, my clients merged the 2 tables. Once again I had just changed my view.
    Now, I wanted to know if any method was available for the pagination issue (using the view itself). Hence I posted this.
    But as you suggested, I think it is better to change the page design quickly (as it would be much easier).
    If I change the region query to use the table and the APEX bind parameters in the where clause as:
    SELECT *
    FROM REGADM_REQUEST
    WHERE upper(employee_name) LIKE '%'||nvl(upper(:P1_EMPLOYEE_NAME),'%')||'%' .....
    I also changed the ApplyMRU to refer to the table.
    Here the pagination issue is resolved. But here the "last Update By" and "Last Update Date" columns do not get updated with "SYSDATE" and "v(APP_USER)" values, when update takes place. Even if I make the columns as readonly text field, I am not sure how I can ensure that SYSDATE and v('APP_uSER') can be passed to the columns. Any way I can ensure this? Please have a look at the issue here: http://apex.oracle.com/pls/otn/f?p=19399:1:
    I have currently resolved the "last update" column issue by modifying my view as:
    CREATE OR REPLACE VIEW REGADM_REQUEST_V
    AS
    SELECT *
    FROM REGADM_REQUEST
    I modified my region query to use APEX bind parameters itself as:
    SELECT *
    FROM REGADM_REQUEST_V
    WHERE upper(employee_name) LIKE '%'||nvl(upper(:P1_EMPLOYEE_NAME),'%')||'%' .....
    And I use the "INSTEAD OF UPDATE" trigger that I had initially written for update. The code is:
    CREATE OR REPLACE TRIGGER REGADM_REQUEST_UPD_TRG
    INSTEAD OF UPDATE
    ON REGADM_REQUEST_V
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
    UPDATE REGREGOWNER.REGADM_REQUEST
    SET MANAGER_EMAIL = :NEW.MANAGER_EMAIL
    , EMPLOYEE_EMAIL = :NEW.EMPLOYEE_EMAIL
    , STATUS_UPDATE_DATETIME = SYSDATE
    , USER_UPDATE_ID = (SELECT v('APP_USER') FROM DUAL)
    WHERE REQUEST_ID = :OLD.REQUEST_ID;
    END;
    Please let me know how I can resolve the "last update" column issue using the table itself. (Just for my learning)
    Thanks,
    Sumana

  • Ssrs pagination issue

    This issue is related to pagination in ssrs.I want to handle pagination using stored procedure. I have created below sp and would like to know that how can i set  value for parameter @pageNum. so that every time i change page in report viewer value
    get increase with +1(like 1,2,3,4,5.....).
    create proc [dbo].[Test_paging]
     @pageNum int, --page no
     @pageSize int---how many rows
    as
    ; with test 
    as
    SELECT DISTINCT row_number() over(order by column name),
    List of the columns 
    from table name
    select * from TBL_CMBLY
    WHERE RowNum BETWEEN (@pageNum - 1) * @pageSize + 1
      AND @pageNum * @pageSize
    order by rownum

    Hi Tejaskumar,
    As you may know, per the RDL specification, accessing the current page number from within the report body is not supported in Reporting Services. Using custom code to work around this limitation is also not supported, because it would rely on intrinsic expression
    evaluation order and pagination/rendering order which is not documented.
    One possible workaround is calculating the page number by yourself to display the page number in the report body. Suppose the report has 100 records, and one page has 10 row, then we can refer to the steps below:
    Add another column with the expression like below in the tablix, then hide the column:
    =ceiling(Rownumber("DataSet1") / 10)
    Drag a table right of the current tablix, and delete the tablix header, second and third columns.
    Right-right the Details group to add Page Breaks with the “Between each instance of a group” option.
    Insert the expression below in the textbox:
    =ceiling(Rownumber("DataSet1") / 1)
    Then use the expression below to control the row visibility:
    =iif(ceiling (Rownumber("DataSet1")  / 1)>reportitems!Textbox6.Value,true,false)
    Note that the Textbox6 is the name of the textbox which contains the value: =ceiling(Rownumber("DataSet1") / 10)
    Besides, we can use the expression below to manually add page break with 10 rows for each page in the tablix:
    =ceiling(Rownumber("DataSet1") / 10)
    The following similar thread is for your reference:
    http://social.msdn.microsoft.com/forums/sqlserver/en-US/ab9c18bc-ee37-45a2-a52d-628c12d08b33/ssrspagination-on-report-body
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How do I get automatic pagination on 4 pages with 4 different spreads?

    I have constructed a document having four pages, but they are not linked together as one spread.  This unusual arrangement arose out of how I obtained the pages.  They came from a .tiff file of mine via an Optical Character Reader (OCR) that yielded each processed text page separately.  I then transferred each page to a separate spread on InDesign.  When I try to use the Master page to set up the usual automatic pagination, it doesn't work.  Do I have to construct a blank four-page spread and then copy and paste to the single spread to get it to work?  Thanks for your assist.

    All is well.  Case closed.  The problem was that I manually typed in the letter A when I should have selected a Special Character>Markers>Current Page Number that inserted its special character that appears as the letter A.
    In retrospect, my "complex" problems turned out to be pilot error.  I deeply appreciate your patience and kindness as well as your great expertise.  Best regards.
    I do have one comment.  This version of Jive is really tough to navigate once a question reaches more than two pages old.  I was out of the office nearly all day yesterday after my previous post to you.  It was really tough finding your very helpful reply because my question was old enough to be on page 3 or 4.  Thank goodness for the email notification.  This has been a hard-earned Correct Answer for you.

  • Out of the box behavior of the Pagination control

    Why does the Pagination invoke the PageFactory callback upon page count change?  And when it does invoke it, why is it with currentPageIndex=0?  Should there be an API to remove this listener if this is undesirable behavior?  If we know we may need to alter the Page Count after construction of the Pagination control, would it be best to remove the old one, and construct a new one for display at that point since the current implementation seems to behave inconsistently when one wants to alter the Page Count post-construction and/or callback configuration.
    Please consider the following scenario:
    The user is viewing a TableView of items.  Below the TableView is a Paginator whose PageFactory callback fetches rows from a database and calls TableView.setItems(<results>).  There are 3 pages and the user is on the 3rd page.  Only 5 rows remain out of a possible page size of 20.  The user decides to delete the 5 remaining rows on page 3 from the table/database.  Now it would seem natural at this point to conclude that page 3 no longer exists and we would want to the user to return to page 2.  If we simply call paginator.setCurrentPageIndex(currentIndex - 1) then we will correctly transition the user to Page 2, however Page 3 will remain displayed in the Pagination control and if the user browses back to that page, he is met with the "There is no content to display" label.  So it would seem natural that we could presume this happening and instead call paginator.setPageCount(2), then paginator.setCurrentPageIndex(currentIndex - 1).  That way the Pagination control reflects an accurate number of pages.  Unfortunately, this results in TWO callbacks to the PageFactory method, one at currentPageIndex=0 and another at the correct index.  Sometimes the widget that is constructed in the PageFactory callback (TableView) doesn't get displayed properly (disclaimer: speculation ahead) probably due to some asynchronous nature of the two competing callbacks (?).
    I'm struggling to get a handle on this control.  So far, my experience with TableView has been pretty good.  I love the features you get with this Pagination control out of the box, but some of the choices that were made with regards with what APIs to expose confuse me.  The frustrating thing about callbacks is that sometimes you can get caught in this callback hell where there are all sorts of callbacks being invoked and you don't really know why.  Often times, the Javadoc does not indicate that there is a default listener being applied to certain property that may invoke one of these callback.  I don't mean to sound like a rant.  Overall my experience with JavaFX 8 has been very positive so far.  I can usually always find a workaround if a come across a weird issue with an out of the box control.  Worst comes to worst, I'll write my own Pagination control.
    Thanks for your time.

    For anyone else that may come across this post.  I was able to find a workaround by simply using a field, boolean pageCountReset, and then bounding all of the logic in my page factory call back with a condition checking for this boolean value i.e. if (!pageCountReset) // continue, else // noop.  Then, if I need to reset the page count, I set my boolean to true so that the page factory callback results in a noop.  Because the pagination control under the hood will make currentPageIndex=0 (as I talked about above) if the page count is reset, I then have to be very explicit and either call my page factory callback manually to refresh the current page if it still valid, or I call pagination.setCurrentPageIndex(<new index>) so that the page factory callback will be invoked and pageCountReset will be false at this point, so I can successfully transition pages.

  • Does Acrobat Pro 9 support "page-break-before" CSS tag? ie Pagination issues

    Hey there
    Converting a whole stack of html files to PDF and having some pagination issues.  Titles not staying with images and tables getting chopped in half by page breaks etc.
    Thought i could solve it by using carefully placed "page-break-before:always" tags where i wanted the page break.  Works as expected in Safari when i go to print but not when i "File:Create PDF: From File" in Acrobat Pro.  They get ignored.
    Here's how they should work:
    http://www.w3.org/TR/CSS21/page.html#x3
    This is a major hassle. I've got over 600 webpages to convert to PDF's and manually entering <br> to force items onto the next page is getting old.
    Here's some sample html, paste it into a file, save, open it in Safari and then go to print.  It should print 7 pages.  Open it in Acrobat Pro 9.1.0 and you get one page.
    <body>
    test0
    <p style="page-break-before: always">
    test
    <p style="page-break-before: always">
    test1
    <p style="page-break-before: always">
    test2
    <p style="page-break-before: always">
    test3
    <p style="page-break-before: always">
    test4
    <p style="page-break-before: always">
    </body>
    The really nice thing is this would be so useful.  You can attach the tag (page-break-before:avoid)  to a Caption style and always be assured that it will stay with a following graphic when you print the webpage. Or use it to make sure a table doesn't get cut in half.
    http://reference.sitepoint.com/css/page-break-after
    http://reference.sitepoint.com/css/page-break-before
    Any hints would be great
    tia
    Jeremy

    Nope.  Did the </br> thing. 
    Cost me some serious cash.  Very annoying.
    I haven't tried it with Safari 5. Acrobat allowed me set page margins, something that Safari 4 didn't allow (didn't support margin css tags).  But acrobat didn't support the pagination and Safari 4 did.
    Like i said annoying
    I'll see if Safari 5 supports the print margins css tags.
    I'll prob get asked to do this again so would like to sort it out
    Jeremy

  • Pagination woes

    Hi - wonder if anyone else has this problem...?
    I have three Framemaker book files. To simplify (and reduce the number of files, let's say I have:
    * Master book file
    file a
    file b
    file c
    file d
    * Book 1
    file a
    file b
    file c
    * Book 2
    file a
    file b
    file d
    Some files contain conditional text. I have set each file (independently) and each file in the book, apart from file a, to delete empty pages, and start on next available page. I have a double-sided layout. I display *all conditions* in the Master book before selecting Update Book. I then open (say) Book 1, display *its* conditions and choose Update Book.
    My problem is that, no matter what I try, whenever I try to build Book 1 or Book 2 the pagination does not work correctly.
    I always have to go back through individual files after updating, and re-apply the correct Master pages, when they should update correctly/automatically. This is a pain, as my real books contain many files (not just 4 as above). Specifically, a chapter page will start on the wrong side, and/or an extra blank page will be generated at the end of a file.
    When updating, I select "Apply Master Pages", and have the following Master Page assignments on the Reference page:
    UnstructMasterPageMaps
    Book Update (Yes or No): Yes
    Paragraph Tag Name    Right-Handed Master Page (or Single-Sided Master Page)    Left-Handed Master Page    Range Indicator (Single, Span pages, Until changed)    Comments
    Chapter.number    First-R    First-L    Single   
    Appendix.number    First-R    First-L    Single   
    IX.name    Index-First-R    Index-First-L    Single   
    TOC.name    First-R    First-L    Single   
    Glossary.name    First-R    First-L    Single   
    Manual title    First Front        Single  
    Regards,
    Martin Ley
    martin at em-dash dot com

    Hi Art,
    Thanks for the speedy reply.
    I'm using Frame v9.0p250 under XP SP3, itself under Parallels Desktop for Mac on my MacBook Pro 17", 8GB RAM, OS X 10.6.2.
    I thought I had covered all pagination eventualities by saying "I have set each file (independently) and each file in the book" - maybe I wasn't explicit enough - apologies. What I did (as well as going into each individual file and doing it) was:
    1. Select the first file in the book (actually from the Book file) and set Pagination to Double Sided, Right, Delete Empty Pages.
    2. Select all the other files and set Pagination to Double- Sided, Next Available, Delete Empty Pages.
    Knowing that book settings stomp over individual file settings, I figured that was the way to go.
    I suspect that you may be correct when you talk about my specific requirements throwing off the automatic pagination. The weird thing is sometimes it works if I update twice in a row. These manuals have been in existence since Frame 5, and I have 'improved' them many times over the years. Perhaps this page layout is a bridge too far - I was hoping the Reference page setup would work for me - it seems that's what it's designed to do (applying specific Left or Right masters depending on paragraph tags).
    Again weirdly, I thought I had solved the problem by not having the 'master' book open at the same time as the 'conditional' book. I considered this because I was getting another problem:
    1. Open both book files.
    2. Open all files in the 'conditional' book (i.e. a subset).
    3. Page through the files in the conditional book to check pagination (due to problems above).
    What happens is Frame asks if I want to open 'the next file in the book'. No - I already have all the files I need open, but Frame assumes I'm using the 'master' book, not the 'conditional' book. Bizarrely, in a previous installation (before TCS2) I was also getting pages that would be hidden after updating - they existed in a file, but I couldn't turn the page to see them! I forget how I solved that one, but I suspect it was part of the same problem. They were always the last page in a file.
    In fact, after my initia euphoria, I discovered that only having one book file open did not solve my pagination problems - it was updating for a second time that had solved them (sometimes). I haven't tested this exhaustively (sometimes, manually repaginating means I actually get my work done instead of fuming over what I think should be happening but isn't!). I have a bug logged with Adobe support, but I suspect I will have to reinstall Frame if I take their back-to-first-principles solutions. No thanks. I lost faith in tech support a long time ago.
    Hope I haven't muddied the waters too much with my extra explanations. I was trying to keep it simple first time around...
    Regards,
    Martin

  • Pdfmaker changes my pagination from my Word 2007 document

    When I use pdfmaker in Word 2007 it changes the pagination from my Word document.  For example, the first page of my document ends up being 2 pages when I convert the file (text shifts).  If I just do file > print > Adobe PDF, the file looks exactly like the Word document.  The problem with that though is I need my table of contents linked and then I have to do that manually.  I've set my default printer to Adobe PDF, but it still doesn't make a difference.  Any help would be greatly appreciated!

    What version and update of Acrobat? It might be a simple update of Acrobat will do the trick. I am not why PDF Maker would be different, but PDF Maker is no longer a preprocessor for the Adobe PDF printer with AA9. Thus there may indeed be an issue -- probably related to the link embedding. You might try unchecking all of the options in PDF Maker and seeing if you get a good result. If so, then put things back in until it breaks. Not the best solution, but maybe a useful workaround.

  • Pagination changes when creating PDF from FM file

    Using Structured FM 7.2p158, Adobe Acrobat Professional 8.1.3. I have updated a chapter with a graphic and want to send a specific page to a colleague. Tried to print the individual page to a file, then distill that print file to a PDF file; Distiller flushed it, whether I used the Acrobat PDF printer or my regular printer.
    Next tried printing the entire chapter, which works, but the PDF pagination is changed from the original FM file. Tried setting to "Standard" and "High Quality Print" but still get the same result.
    Any suggestions, please?
    Thanks,
    Cheryl

    Cheryl Dwyer wrote:
    Tried to print the individual page to a file, then distill that print file to a PDF file; Distiller flushed it, whether I used the Acrobat PDF printer or my regular printer.
    Cheryl,
    You should only be using the AdobePDF printer instance when working on FM files. If you changed to a different printer and created output using that to send to Distiller, then there can be a number of issues, especially if you've somehow used the printer fonts (you may have substituion enabled in the printer driver giving you different metrics). The SetPrint utility from Sundorne <http://www.sundorne.com/FrameMaker/Freeware/setPrint.htm> will ensure that your default printer in FM is always the AdobePDF. Note: you can still manually switch in FM if you need to directly output hardcopy to your system printer.
    If Distiller "flushed" your output, then there should have been a log file generated that specifies what the error was. This might help provide some solution to your original problem.
    The joboptions settings in Distiller wouldn't be creating the reflows that you're seeing. It's probably one of the fonts, printer instance, graphic size (dimension/scale) that caused your problem.

Maybe you are looking for

  • Previewing Data in EAS Console on client machine throws an error.

    When I preview data in EAS console(version 11.1.1.4) on a client workstation I get a "Cannot sign on to domain. Error initializing the ORB.java.io.FileNotFoundException: domain.db (Access is denied)" error. Now if I Use the URL for Admin Console on t

  • Why doesn't AS3 FileReference Download Work in IE/FF (Works fine in Chrome)

    I am generating an Excel file with Java on the back-end and it seems to work just fine in Chrome but for whatever reason it doesn't in FF/IE. I have the very latest of Flash in each browser listed from this site: http://helpx.adobe.com/flash-player/k

  • [svn:fx-4.0.0] 13391: Updating OSMF for the ASDoc updates and taking a new SWC and RSL.

    Revision: 13391 Revision: 13391 Author:   [email protected] Date:     2010-01-08 16:12:48 -0800 (Fri, 08 Jan 2010) Log Message: Updating OSMF for the ASDoc updates and taking a new SWC and RSL. QE notes: - Doc notes: - Bugs: - Reviewer: Deepa Tests

  • Complex Script needed

    Hi - I have two things here I need help on. I have a form created in Adobe LiveCycle Designer 8 that has an add and delete row.  The rows have a check box called Sub to Sub for users if a job construction job was sent from a subcontractor to another

  • ADF Mobile: Reading barcodes from camera

    Hi everyone, We are planning to develop an ADF Mobile application. One of our client requirements is that they can use Mobile camera to read barcodes from their products. We have tried to use Zxing for barcode recognizion but we get a poor level of s