help me!! - InfoPath Dev
in

InfoPath Dev

help me!!

Last post 08-28-2011 03:41 PM by Karsten Brocksieper. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 08-28-2011 02:12 AM

    • hanna
    • Not Ranked
    • Joined on 08-28-2011
    • Posts 1

    help me!!

    how i hide  Group/ table   in infopath code c# 
  • 08-28-2011 03:41 PM In reply to

    Hello Hanna,

    ... and welcome to our forum.

    You canĀ“t hide a group/table with managed code. Unfortunately you will not be able to use the same object model as you did while working in Visual Studio Windows Applications. An object has absolutely no formatting of display attributes, this is because XML is strictly data. To disable, hide, change color, or apply other formatting instructions to a control in your form you will have to use conditional formatting. To do this, double-click the control, click the Display tab, and then click the Conditional Formatting button. From here you can add rules to change the way your control is viewed. To be able to disable the node by code you will have to follow this process:

    1. Create a text field and name it "field1Enabled".
    2. Add conditional formatting on the field1 control that says to disable the control whenever the "field1Enabled" node is set to FALSE.
    3. In your code, set the "field1Enabled" node to true or false corresponding with whether or not you want to enable or disable the control. 

    Hope that helps

    Regards, 

                          

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