Hi Guys :D
just a bunch of question which i am sure this will be no deal for you to answer. All Questions referring to Code Behind in C#.
1.) How to indicate if the current opened Form is in "Read Only" mode? For example if the user hasnt the permission to save the form with any kind of edits.
2.) As all of you should know, you can add a Additional View in your InfoPath Form. Usually used as Print View. And you can configure this View to be "Read Only", so if someone Switch to this View (which can also be deactivated) he cant edit anything. Is it possible to set this kind of "Feature" to any View with Code? My Idea is to change all Views to "Read Only" if the File itself is in "Read Only" Mode - so the user cant change anything and dont wonder why he cant save it.
3.) If 2.) isnt possible, how to prevent the following Situation - A User open the Form which File is in Read Only Mode. (due insufficiant permissions).
- The User is changing a Textfield
- He cant Save the File, so he press the X - to close the Window.
- THEN InfoPath ask's him if he want to save the File, if he Press YES it will be saved ... as new File with a new Filename (as generated in the submit Rule). I must prevent this!
But how to prevent it? I read something about a OnSaveEvent or something like This as EventHandle, but how to Add this EventHandle to my Code? Thanks a lot for your tipps :) Im also happy if someone throw me a brik on my head - with some links to other Topics or/and other pages.