Switch view in the InfoPath form according to the whether current user is in SharePoint group admin
2012-11-14 18:11
666 查看
Some develop scenarios need to switch the view (list form which customized by InfoPath) according to the whether current user is in admin(SharePoint group).
This article will show you how to implement it.
Here are the steps:
1. Follow steps in these artcle to get the user info and IsAdmin value
http://blog.csdn.net/farawayplace613/article/details/8149167
http://blog.csdn.net/farawayplace613/article/details/8153989
2. Open the list form by InfoPath again
3. Create the admin view:
4. Design the admin view
5. Click the data tab, and click the form load, add one more rule, named "SwitchAdminView", then set the condition to IsAdmin equals Admin:
6. Click the Add action button and select switch view:
7. Select the View to Admin and click OK
8. Click quick publish button on the left top of the InfoPath designer
9. After it finish try to add one item in the list, you will see the defualt view, that because the current account is not in the Admin group(SharePoint group)
10. Add the current account into Admin group (SharePoint group), then try to add one item again, you will see the admin group
This article will show you how to implement it.
Here are the steps:
1. Follow steps in these artcle to get the user info and IsAdmin value
http://blog.csdn.net/farawayplace613/article/details/8149167
http://blog.csdn.net/farawayplace613/article/details/8153989
2. Open the list form by InfoPath again
3. Create the admin view:
4. Design the admin view
5. Click the data tab, and click the form load, add one more rule, named "SwitchAdminView", then set the condition to IsAdmin equals Admin:
6. Click the Add action button and select switch view:
7. Select the View to Admin and click OK
8. Click quick publish button on the left top of the InfoPath designer
9. After it finish try to add one item in the list, you will see the defualt view, that because the current account is not in the Admin group(SharePoint group)
10. Add the current account into Admin group (SharePoint group), then try to add one item again, you will see the admin group
相关文章推荐
- InfoPath display or hide some section according to whether current user belong to SharePoint group
- Checking if a user is a member in a SharePoint group within web InfoPath 2010 forms
- How To: Check if a user is part of a SharePoint group in InfoPath
- Get the SharePoint groups in Infopath 2010 and SharePoint 2010 by current user without any code
- Sharepoint Error : The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- Code view is missing in SharePoint Designer Beta 2 when you try to edit a WSS v3 site.
- Judge whether the user is in some windows group.
- 转:How to submit the rows of a repeating table in InfoPath to a SharePoint list
- 学习:How To Use Filters in SharePoint to show items in the current Calendar Month(转)
- SharePoint Error - The current user is not an SharePoint Server farm administrator
- bpel 测试遇到“The content of the body cannot be displayed in the form view. Please switch to the source”
- Internet Information Services is not installed. You must have Internet Information Services installed in order to use the SharePoint Products and Technologies Configuration Wizard
- Sharepoint BDC错误处理:"No finders available in the View Group associated with the SpecificFinder ……"
- Changes to the Design View in SharePoint Designer 2013
- The database schema is too old to perform this operation in this SharePoint cluster. Please upgrade the database and...
- JSON is undefined. Infopath Form People Picker in SharePoint 2013
- How to get the current user logged into Sharepoint
- Get tasks assigned to user or to current user groups in SharePoint using CAML query
- How to set the current user on the model instance in the admin:
- TIP: when you get a message in job log user [Dr. Who] is not authorized to view the log