Skip to main content
10-Marble
March 1, 2012
Question

Table Continued/Concluded

  • March 1, 2012
  • 7 replies
  • 1671 views
Hi,

Does anyone know a way to make the "continued" title of a
multi-page table say "Concluded" on the last page of the
table?

I'm using Styler 6.0 with APP.

Thanks,
Richard Steadman

    7 replies

    1-Visitor
    March 1, 2012
    Haven't done this. You will probably start by changing the Gentext > Repeat
    title on title in context of table. You will replace "Continued..." with a
    new User Formatting Element. Your next step will be to edit that User
    Formatting Element so that it (pseudo-code alert!) something like this:

    If (page_of_table == last_page_of_table) {
    Concluded
    }
    else {
    continued
    }

    Not sure what will be easiest/possible. An xpath test?

    10-Marble
    March 1, 2012
    Hi Paul,

    I tried something similar with a UFE. The problem seems to be
    that the gentext of the Repeating Title is constructed only once,
    so even if you change it later in the UFE, the actual text output
    doesn't change.

    At least that's how it looks to me. It's a bit hard to follow
    the exact sequence of text generation in these nested gentexts
    via UFEs.

    Thanks,
    Richard


    1-Visitor
    March 1, 2012
    That's always been true. You can't change the floated text. Once it has a value it keeps that value until the end of the scope. I wasn't sure if APP would change that or not, sounds like not.

    Trudy

    16-Pearl
    March 1, 2012
    You could get this working with APP but it would be tricky (deep deep edited
    source if we are talking Styler). The problem is when you come to the last
    page of the table, how do you know it is the last page of the table? APP
    formats in a forward direction only and will not backtrack during a format
    to update information it has already placed.



    What you would need to do is a double format. On the first format pass you
    need to identify the final page for each table and then on the second format
    pass you can use that information to do a simple "if this else that" to
    display the correct continuation text.



    // Gareth Oakes

    // Chief Architect

    // GPSL (www.gpslsolutions.com)


    1-Visitor
    March 2, 2012
    I thought there was a trick (prossibly a FOSI trick) to cheat the "Page x
    of y" for continuing tables. If there is, then it should also be possible
    to cheat the continued/complete text. That said, I can't find it in the
    archives, nor in anything Suzanne has sent out. So maybe it was a dream ...

    10-Marble
    March 2, 2012
    Thanks for the advice Gareth and Trudy,

    I got the end page by saving it in a perl hash in edited APP
    code of the last row of the table. I think there's probably
    a better was to save it in a javascript variable attached
    to some APP object, but I'm not sure of the syntax.

    In any case, even having that information it seems not to
    update the gentext from the Repeating Title text. I'll keep
    tinkering - maybe something will click!

    Regards,
    Richard


    > You could get this working with APP but it would be tricky (deep deep
    > edited source if we are talking Styler). The problem is when you come to
    > the last page of the table, how do you know it is the last page of the
    > table? APP formats in a forward direction only and will not backtrack
    > during a format to update information it has already placed.
    >
    > What you would need to do is a double format. On the first format pass you
    > need to identify the final page for each table and then on the second
    > format pass you can use that information to do a simple "if this else
    > that" to display the correct continuation text.
    >
    > // Gareth Oakes
    > // Chief Architect
    > // GPSL (www.gpslsolutions.com)
    >
    1-Visitor
    March 5, 2012
    With FOSI, you could probably create an e-i-c for row within table occur="last" and have a savetext that you could use in the header or footer of the page. Using it at the beginning of the last page would probably require that the text variable be status="1". Using in the footer, probably not.
    I am not familiar with APP so I don't know what can be done in this area