infopath lock different controls or different view

I am just starting to make an infopath solution for a sharepont workflow.  I have a somewhat basic expense report.  I plan to only let certain people edit certain areas based on what step it is on.

I was thinknig that I would have to make different views of the info.  I clicked on Add a New View, and it gave me a blank screen.  Since everything is basically the same, the plan was to pretty much copy everything, then make certain controls read only.  I tried selecting everything then pasting and it did not work.

1. Is there an easy way to copy one view into another?

2. If I do this, will I have to rename controls, so the firstname in one view would have to be something else in the other view?  Can they all be the same?  Are views seperate?

3. Is there a better way of doing this?  Should I just lock controls one at a time, instead of swithing views?

4. Is there a way to make a view out of a partial piece of the form?  Meaning, if I only wanted to restrict one area, can I kind of leave the whole form and only restrict/enable a certain section? (Like an area of a paper form the says "For office  use only"

Who is Participating?
Clay FoxConnect With a Mentor Director of Business IntegrationCommented:
You should be able to copy and paste most controls and text.  Sometimes it is difficult to highlight all of what you need with repeating tables or scrolling regions. Also button rules do not copy.  The fields and controls are referenced the same whether they are in multiple views.  The data is the same it is just the view that is different.

Creating seperate views is a good practice, especially if the view will be all readonly since in 07 you can make an entire view readonly in view properties.

You can use one view and make individual controls readonly using conditional formatting, in some cases this can work but with lots of controls can get cumbersome.

Another way to make a text control readonly is change it to an expression box.

There are multiple ways and combinations and it will come down to your specific requirements.
jackjohnson44Author Commented:
I tried copy and paste, but that won't work. My new view has a dark grey background.
jackjohnson44Author Commented:
Thanks, if I can get the copy and paste working, is can the controls all have the same name as on the first view?  Will I have to rebind them and treat them as totally different controls?
All Courses

From novice to tech pro — start learning today.