Table with no return data

Home Forums Open-Xml-PowerTools Table with no return data

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  ash 8 years, 3 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #3549

    ash
    Participant

    Hi Eric,

    I need to hide a table when there are no data rows.

    At the moment I get Table Select returned no data, is there some way to hide or customise the message (including formatting).

    Regards
    Ash

    #3569

    Eric White
    Keymaster

    Hi Ash,

    The approach I recommend:

    • Put an element (or attribute) in your XML file that indicates whether there is data.
    • In your template, put a conditional block based on the element that indicates whether there is data.
    • Then within the conditional block, import the data into the table.

    This will then hide the message that there is no data.

    Cheers, Eric

    #3572

    ash
    Participant

    Thanks Eric.

    Cheers

    Ash

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.