Hiding columns - InfoPath Dev
in

InfoPath Dev

Hiding columns

Last post 02-23-2009 02:28 PM by shorty. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-04-2006 06:24 AM

    Hiding columns

    What is the best way to conditionally hide columns in a table?
    Dean
    Charlotte, NC
  • 04-04-2006 11:01 AM In reply to

    Hiding columns is not supported in the designer. You will need to manually modify the view XSL and hand-code some conditions to make this work.
  • 04-04-2006 05:18 PM In reply to

    InfoPath 2007 also enables laying out sections side by side. This would theoretically allow you to create a structure that looks like table columns only using sections that are placed next to each other. Then you can show/hide the sections as usual. This was not possible in InfoPath 2003 because sections were a block element and had to be on separate lines.
    Shiraz Cupala / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
  • 03-26-2007 09:58 PM In reply to

    • soshan
    • Not Ranked
    • Joined on 03-24-2007
    • India
    • Posts 5
    I'm having the same problem Greg. Can you provide in a sample of the view XSL that you mentioned to show/hide columns please.
  • 03-26-2007 10:34 PM In reply to

    • soshan
    • Not Ranked
    • Joined on 03-24-2007
    • India
    • Posts 5
    Also, I cannot place sections horizontally, in a side-by-side formation, as this form needs to be browser compatible.
  • 02-23-2009 02:28 PM In reply to

    • shorty
    • Not Ranked
    • Joined on 02-23-2009
    • Posts 1

    Hello, I was having the same issue (how do you completely hide a column?). Here is the solution I worked out editing the xsl view. It basically sets the column width to 0 when a checkbox is unchecked. Hope this helps.

    <colgroup>

    <xsl:choose>

    <xsl:when test="my:CheckBox_EnteredRGU = &quot;no&quot;"><col style="WIDTH: 0px"></col></xsl:when>

    <xsl:when test="my:CheckBox_EnteredRGU = &quot;yes&quot;"><col style="WIDTH: 68px"></col></xsl:when>

    </xsl:choose>

    </colgroup>

Page 1 of 1 (6 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.