.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Show and hide items in the list as per permission (depend on the permission)

Posted By:      Posted Date: September 22, 2010    Points: 0   Category :SharePoint

Dear all,

In sharepoint 2010

How I Show and hide items in the list as per permission.

i.e the user can fill the most fields in the list and we need to prevent him to see manager's fields in the same list.


View Complete Post

More Related Resource Links

Show/hide dashboard items Sharepoint



I'm having a problem with trying to filter the appearence of items on a sharepoint site by having a dropdown list and filter according to the current value, The method i am using atm is by having javascript and by looping through all the <td> on page. This works for list views, But not for Performance point dashboard objects/web parts, +

Is there a way to somehow get the title of all performance point objects on a page, fill the dropdownbox show/hide depending on the selected item in the box?



Customized Announcement List (Possible Permission Issues)

I am working in SharePoint 2007 with a portal site and related subsites for the various divisions within the company. I have created a custom announcement list template which is used on each subsite so that each deivision has it own announcements. I have a cotnent query web part on the main portal page that pulls all the announcements for the various subsite to the main portal page.  I am finding that only me and another individual has full rights are able to see the announcements contents (image, title and short description) via the CQWP, visitors only see the title and the rollup image of the announcement but should see a short description of the announcement. If the visitor clicks the title of the announcement they are able to see the entire contents of the announcement. I have checked the permissions on each list under the list setting and visitors all have read permissions. Any ideas on where to start troubleshooting?   Thanks,

How to set the permission of the View in list

I want to set the permission for the View of my list in SharePoint 2010. I want to restrict the user for view only not in the list. if the user is from some group say "Manager" the record should be displayed else not.

Show total items for GridView in List.aspx or GridViewPager

Hi, Is there a solution to show total items in Grid View in List.aspx or GridViewPager Eg. Record: 1 - 20 of 231 

No permission to open a list pages in Sharepoint Designer 2007


We have a sharepoint site with two main lists.

List 1: I could open the pages, make changes BUT cannot create workflows (for the site).
List 2: I could not even open it. I get the message
"You do not have permission to do this operation. Ask your web site administrator to change your permission and try again, or log on with user account that has this permission ...."

I am secondary server administrator and also have 'full control' of the site.

Any ideas?

Thank you

Root element is missing error AFTER changing the List permission


I have an Infopath form that submits the data onto a SharePoint list. Everything works if the user has 'view, insert, edit, delete' access to the list. However, we dont want them to be able to delete and view the item so we gave this user group only 'insert' access. After doing so, they get the following error message:

The following DataObject either cannot be created or cannot be initialized:
The query cannot be run for the following DataObject: NameOfList
InfoPath cannot run the specified query.
The SOAP response indicates that the error occurred on the server:

Server was unable to process request. ==> The root element is missing. 

Anyone know if there's another way to solve this without granting the user group full access to the List?  I'm not an admin, I just normally request what type of permission to set on our sharepoint sites. 

Thanks for the help

Sharepoint list item permission



i need to set permission to the List item that Item should be able to edit by Item Created User, and should be viewable by the Sharepoint groups that User selects when creating a New Item


How can i achieve this ?

Thanks and Regards,


edit list permission using InfoPath


what is the least permission level tht has to be given to user on a specific list to be able to  modify a new form on a list using infopath ?

How to check who is the person that change the list permission or the list item permission?


Does SharePoint out of the box has any reports that report the change of permission to list/list item?

User A change the permission of List Item A by adding a new user
User B change the permission of List Item A by removing a user

Thank in advance.

Item level permission for Custom List in sharepoint


Hi all,

  I have created a custom list with work flow associated with that. The workflow takes the item through different levels of approval.

My workflow scenario is like Say an initiator add an item, which will go to manager for approval. When the manager approves, few columns in the current list will get updated. On manager approval it will be forwarded to head of department. Again when the Dept head takes an action, the column values of the list get updated. For all these users i have set Contribute permission. But the problem is that an item started by an initiator should not be editable or deleted by other users using the pull down menu that appears for each item. Only the owner of the item and manager should have permission to edit it using the pull down menu. When i tried changing the edit access for the item through Advance settings-->Item level permission --Edit access being set to "Only their own" while manager or dept head approving i get an access denied error message.

Can any one please suggest me what is the work around for this?



Regards Reshma

Sharepoint List - Field Level Permission



I have added Shapoint Contact List. I dont want to show Business/Home and MObile no fields to all the normal users. Only some specific users can see these fields.


I am comfortable with SPD.


Please advise.

how to programatically retrieve permission of a user on a list item?



            is it possible to retrieve the permission of a user on a list item programatically.? i mean if a user has the rights Contirbute on the list item can i get that programatically that he has Contribute rights?

 please help. your help is appreciated.


Assigning Custom Permission Role to a List Column in MOSS 2007

I have created three custom roles: Role1, Role2, Role3.  I have a user list with permissions column.  This permissions column has three choices in a dropdown list.  I want to associate each value in the dropdown list to a custom role (Role1 or Role2 or Role3).  This way, when I create a new user, I would just have to pick a value in the permissions column.  Oh Yes, I am using MOSS 2007.

Advanced Search does not show items from Custom List- why?



I have search working in general for site. However, when I run it only picks up files - not list items. Even List search in top right comes up with blank results.  

I read somewhere that this is switched off due to size of search results.

Can someone tell me how to include List Items in search?



Display single item from List using XSLT and show total count of all items in list


I have a simple SharePoint 2010 list named "Tips". Each item consists of a Title and Description. I want to display a single item at a time in a sidebar on my site with arrows to advance to the next or previous item in the list. I've been able to accomplish this pretty easily using OOTB SharePoint XSLT list view web part settings and AJAX. However, when I tell the web part to only display 1 item at a time the pager always says it's showing item "1 of 1" or "2 of 2". It won't show the total number of items from the list. I'd like it to show something like item "1 of 25", etc. How do I get it to display the total count of items from the list?  I've looked at possibly using aggregation attributes on a FieldRef but I've not been able to get anything to work. I'm not even sure that's the right place to be looking. I'm needing to accomplish this without writing a custom web part. 


Hide a repeater in ASP.NET C# if the DataSource contains no items?

I have an ASP.NET page that uses a repeater nested within another repeater to generate a listing of data. It's to the effect of the following:
In the (C#) code-behind I'm basically using LINQ to pull a listing of information from an XML document and bind that information to the first repeater.

Searching for the answer to this, it seems the method is to determine whether the data for the nested repeater is empty. If it is, then you set the visibility of the repeater to false.

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend