Jump to content
We've recently updated our Privacy Statement, available here ×

How to create a table with two nested levels?


bouget.g

Recommended Posts

Hello,

I've found a solution but I'm having trouble getting the table not to be truncated from one page to the next at the header or total row. It should cut with at least one "FUND" line (not total row or header alone).

<PROFILES>  <PROFILE>    <NAME>PROFILE_1</NAME>    <FUNDS>      <FUND>        <ISIN>FRXXXXXXXX01</ISIN>        <PRICE>12</PRICE>        <QUANTITY>200</QUANTITY>        <VALUE>2400</VALUE>      </FUND>      <FUND>        <ISIN>FRXXXXXXXX02</ISIN>        <PRICE>8</PRICE>        <QUANTITY>56</QUANTITY>        <VALUE>448</VALUE>      </FUND>    </FUNDS>  </PROFILE>  <PROFILE>    <NAME>PROFILE_2</NAME>    <FUNDS>      <FUND>        <ISIN>FRXXXXXXXX03</ISIN>        <PRICE>95</PRICE>        <QUANTITY>162</QUANTITY>        <VALUE>15390</VALUE>      </FUND>      <FUND>        <ISIN>FRXXXXXXXX04</ISIN>        <PRICE>225</PRICE>        <QUANTITY>14</QUANTITY>        <VALUE>3150</VALUE>      </FUND>    </FUNDS>  </PROFILE>  <TOTAL>    <VALUE>21388</VALUE>  </TOTAL></PROFILES>[/code]

Output could be:

|-----------------------------------------------||NAME/ISIN      PRICE ($)        QT       VALUE ||-----------------------------------------------||PROFILE_1                                      ||  FRXXXXXXXX01        12       200       2,400 ||  FRXXXXXXXX02         8        56         448 ||PROFILE_2                                      ||  FRXXXXXXXX03        95       162      15,390 ||  FRXXXXXXXX04       225        14       3,150 ||-----------------------------------------------||                             TOTAL      21,388 ||-----------------------------------------------|[/code]

Regards,

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...