Skip to main content
1-Visitor
August 17, 2013
Question

Update table header floats within a table?

  • August 17, 2013
  • 16 replies
  • 2508 views
My authors want to be able to modify the repeating table headers within a
table. For example, there might be a header that included "System, Date
Deployed, Date Support Ends" at the top of the table and at the top of the
subsequent pages if the table continues.

Standard table header float stuff so far.

Now, there might be a section within the table that talks about those three
columns of data for County X. And that should be part of the table header
float that continues. However, when in the middle of the table, it changes
to Country Y (and Country Z and so on), they want the "second" row of the
table header float to update with Country Y and drop Country X.

For example:
Top of table:

System Date Deployed Date Support Ends
Country X (spans all three columns)

On page two you would get:
System Date Deployed Date Support Ends
Country X (continued ...)


Somewhere on page two of the table, this row occurs and replaces the
Country X row in the float:
Country Y


Now, page three of the table starts:
System Date Deployed Date Support Ends
Country Y (continued ...)


Easy, right? Anyone done anything like this?

--
Paul Nagai

    16 replies

    1-Visitor
    August 17, 2013
    Paul,
    You can try this by using multiple tgroups in the table. Each tgroup would have it's own float and that way you can get away with multiple theads in a table. Floats can't change, but this should stop the first one and pick up the second one. It's about the only option you have.
    Good luck!
    Trudy

    1-Visitor
    August 17, 2013
    I tried this recently, and the thead with the second tgroup was output in the middle of the page where the second tgroup started as well as at the top of the table on subsequent pages. In my case, I had other options, so I didn't pursue it. Hmmm ... maybe the second thead could be suppressed and output as a regular float . . .

    Good luck!

    Suzanne Napoleon
    www.FOSIexpert.com
    "WYSIWYG is last-century technology!"


    16-Pearl
    August 17, 2013
    I think the behaviour you describe is what Paul is after actually. In case you really need to push the limits on this stuff APP/3B2 supports up to 5 levels of table headers … 🙂

    -Gareth
    naglists1-VisitorAuthor
    1-Visitor
    August 20, 2013
    I *think* this works the way I/we wanted it to but I've passed the
    technique back to the authors who will really be able to determine if it
    fulfills one of those wish-list items. Thanks to all!


    naglists1-VisitorAuthor
    1-Visitor
    August 20, 2013
    Ah, yes, so the authors quickly point out that this works only if the
    header is "simple" and can be completely replaced. Otherwise we need the
    capability Gareth refers to in APP ("tiers" of thead) and Suzanne hints at
    in terms of suppressing tgroup(notfirst)/thead but still letting it update
    the float. APP isn't going to happen, but maybe I can plink around with our
    FOSI and see what's the what re: multiple tgroups...


    1-Visitor
    August 20, 2013
    Paul,

    What does "simple" headers mean exactly?

    Suzanne


    naglists1-VisitorAuthor
    1-Visitor
    August 20, 2013
    Single row (or double row that would be ok to replace fully) vs. "complex"
    where you would want the first row(s) to repeat for the duration of the
    entire table, but the second row(s) would only repeat until replaced.

    For example:
    CALIFORNIA
    NorCal

    Might repeat until you talked about
    SF Bay Area (which by the way is "central" ... and yes, I'm trying to
    start somethin' 😉

    At which point, "Norcal" should be replaced by "SF Bay Area" and CALIFORNIA
    should remain part of the table header BUT CALIFORNIA should not appear in
    the interior of the table when it converts from NorCal to SF Bay Area.

    In the first tgroup, you can start with both the CALIFORNIA and the NorCal
    rows. In the second, you can have only the SF Bay Area BUT you will not get
    CALIFORNIA at the top of the next page ... just SF Bay Area OR you can have
    CALIFORNIA/SF Bay Area when it changes from NorCal to SF Bay Area ... tihs
    will get you the proper continuation on subsequent pages but will introduce
    a redundant CALIFORNIA row (unless you force a table pagebreak before it).

    Not sure how to describe it any better .... does that make sense?

    The trick would be for FOSI to examine thead occur="notfirst" and maybe
    then attributes on row to suppress some (the CALIFORNIA
    thead[notfirst]/row) from outputting there in the table but save them all
    (both CALIFORNIA and SF Bay Area rows) to the float.




    On Tue, Aug 20, 2013 at 12:26 PM, Suzanne Napoleon <
    SuzanneNapoleon@fosiexpert.com> wrote:

    > Paul,
    >
    > What does "simple" headers mean exactly?
    >
    > Suzanne
    >
    1-Visitor
    August 20, 2013
    I'm not sure if I'm following. Below is a representation of what I think you might mean.
    naglists1-VisitorAuthor
    1-Visitor
    August 20, 2013
    That is the desired output. Yes.


    On Tue, Aug 20, 2013 at 2:56 PM, Suzanne Napoleon <
    SuzanneNapoleon@fosiexpert.com> wrote:

    > I'm not sure if I'm following. Below is a representation of what I think
    > you might mean.
    >
    1-Visitor
    August 20, 2013
    Is there markup for "Norcal" and "SF Bay Area"?