Programmatically setting a view to Read Only - InfoPath Dev
in

InfoPath Dev

Programmatically setting a view to Read Only

Last post 04-24-2008 02:03 PM by Clay Fox. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-24-2008 01:51 PM

    Programmatically setting a view to Read Only

    Hi all, I can see how to do this using the Infopath 2007 UI, but how do I do this programmatically

     Dave

    Filed under: ,
  • 04-24-2008 02:03 PM In reply to

    Re: Programmatically setting a view to Read Only

    Hey Dave.

    My question is why? If you want the option of having a view read only.

    Create and finalize your view.

    Create a second view

    Copy and paste the controls to the second view

    In View properties make the view read only.

    Then just use a switch views action or in code if you need read-only.

    I do not think it is a dynamic process so I do not think you could actually switch it on the fly. It is just a shortcut in the designed to set all of the fields readonly. But I am not sure. You could set all of the controls readonly individually.

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