Infopath with multiple views. Make read only on submit button click for each view.
-
30 April 2012 15:34
Hi,
I have Multiple views with submit button specific to each view once user click on submit on each view it makes view readonly. There is an admin section for each view where admin can take actions either approve/reject...
can any one give easiest way to work on this as i got a solution here
http://office.microsoft.com/en-us/infopath-help/design-a-read-only-view-HA010211228.aspx
but i can create read only view if there is only 1view. But my application more than 1 view(say example like 6 views).
srikanth
Semua Balasan
-
30 April 2012 16:16
You could also achieve this with your 6 views but breaking the fields into sections. On each view you would have a section for the user fields and one for admin information. After each view has been submitted you could apply a rule on the button to set a field lets say View1Complete to a value of "1".
Now when View1Complete is equal to 1 you can set a few rules in View1:
- Set Rule on UserFields Section to Read-Only in the properties
- Set Rule on Admin Section as visible and editable
Repeat this for every view and it should give you the desired result you were looking for.
My Blog - www.JonesingForSharePoint.com
-
30 April 2012 16:48so u mean to set rule for each and every control in the view to read only?
srikanth
-
30 April 2012 18:35Not exactly, create a section in the fields menu on the right. Within this section include all of the fields you want to include. Then you can just add that section to the form and it will include all of the fields. Then you will apply a rule just to that section.
My Blog - www.JonesingForSharePoint.com
-
30 April 2012 22:33
I think there is some confusion here:
To srkanth
There are many ways to present data in read-only format. If you have your data-entry views defined already and you would like to have the same data presented in read-only format, the article you referenced above is a good. It is quick but it is just one of the options. In theory, you don't have to create a different view to present data in read-only format. You can display all data in the same view.
If you decide to use different views, you can use the switch view action but please note that, by default users can switch views using the standand InfoPath UI during runtime.
If you decide to have your data-entry form and read-only form on a single view, you will have to hide/display them manually.
You can group controls into sections, this will make it faster for you to create controls for the the same fields multiple times. You can simply drag-and-drop the section from the Fields window.
To SharePointJones
You can hide/display sections. but I don't think you can set a section as read-only in InfoPath
- Diedit oleh Jason Li - Canada 30 April 2012 22:33
- Diedit oleh Jason Li - Canada 30 April 2012 22:34
- Diedit oleh Jason Li - Canada 30 April 2012 22:35
- Diedit oleh Jason Li - Canada 30 April 2012 22:36
-
01 Mei 2012 13:06
Say for example i have multiple views with 2 sections in each view with section 1 for users to fill out and section 2 contains admin section (visible to only admins). i am placing save and submit button for user section and just submit button for admin section. When user clicks on submit button the controls inside his section need to be locked but when i loged in as admin i can see my section enabled even though user section is readonly. For each view there are different admins. So can we make one section read only and other section read/write?. Also in Admin section there are 3 sections where one section is to take action on the user submitted section and remaining two sections are for admin comments and work flow history. Can you give me work around for this approach.
Jagirs
-
03 Mei 2012 21:08
You are exactly right Jason! Thank you for clarifying my above statement.I think there is some confusion here:
To srkanth
There are many ways to present data in read-only format. If you have your data-entry views defined already and you would like to have the same data presented in read-only format, the article you referenced above is a good. It is quick but it is just one of the options. In theory, you don't have to create a different view to present data in read-only format. You can display all data in the same view.
If you decide to use different views, you can use the switch view action but please note that, by default users can switch views using the standand InfoPath UI during runtime.
If you decide to have your data-entry form and read-only form on a single view, you will have to hide/display them manually.
You can group controls into sections, this will make it faster for you to create controls for the the same fields multiple times. You can simply drag-and-drop the section from the Fields window.
To SharePointJones
You can hide/display sections. but I don't think you can set a section as read-only in InfoPath
My Blog - www.JonesingForSharePoint.com
-
03 Mei 2012 21:36Can u give some example since still i am under confusion.Mine is a complex infopath having 5 views with each view have user and admin sections.I want to make user sections read only once u clicked user submit button.These values look as read only for admin as well but he can take action against user section by either approve /reject ... which is also on same view visible and editable to admin. so once admin take necessary action then his workflow audits need to be saved in the admin another tab which is visible to user and admin in read only
jagirs