3 Replies Latest reply on Nov 8, 2006 7:35 AM by Chet Zeshonski

    conditinal tag on row of a table

    bta_om
      does anybody know how you can put a conditional tag on a (single) row inside a table.
      I tried it by selecting the row and then applying the conditional tag, but when I generate the chm, the row is still present
      but all text is gone (so I have a blank row in my table)...

      Does anyone know how I can get rid of this empty row?
        • 1. Re: conditinal tag on row of a table
          RoboColum(n) Level 5
          Hi bta_om. As you have discovered, RH has the rather annoying habit of applying the conditional tag to the cell contents but not the cell itself. However this is easily changed by going into the truecode and moving the conditional tag before the rows <td> tag. You'll also need to move the end of condition tag after the <\td> tag. Compile and you'll have what you want.
          • 2. Re: conditinal tag on row of a table
            bta_om Level 1
            Hi Colum.
            Thanks for the reply! I kinda figured this out in the mean time..
            When you want to remove a complete row this works fine.

            In 1 case I still have a problem (but I'll try to work around that...):
            the problem is when I have a table with 3 columns and the first column is sometimes merged across rows. This means I have a rowspan property with a specific nr. If you want to hide some of the rows, this means that this number should be different... (value 3 has to become 2 for example if I don't want the val2 row)

            This is how it looks more or less:

            +-----------+----------------------+
            |....text...|..val1=.blabla........|
            |...........+----------------------+
            |...........|.val2=..blabla........|
            |...........+----------------------+
            |...........|.val3=..blabla........|
            +-----------+----------------------+


            The way I work around it now, is by not merging but putting a table inside a table:

            +-----------+------------------------+
            |...text....|.+--------------------+.|
            |...........|.|.val1.=.blabla......|.|
            |...........|.+--------------------+.|
            |...........|.|.val2=..blabla......|.|
            |...........|.+--------------------+.|
            |...........|.|.val3=..blabla......|.|
            |...........|.+--------------------+.|
            +-----------+------------------------+
            • 3. Re: conditinal tag on row of a table
              Level 1
              If your table isn't very large, create two versions of it. Simply apply different build tags to each version. Voila! Problem solved.