Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Storing custom properties for users

  Asked By: Haresh    Date: Aug 25    Category: Sharepoint    Views: 1146

I am writing a custom webpart in sharepoint. I wanted to know that does
sharepoint provide any feature to store the custom properties set by a
user so that if the webpart is rendered for a particular user it shows
the properties set by him..



7 Answers Found

Answer #1    Answered By: Sydney Lewis     Answered On: Aug 25

Yes, take a look at Microsoft.SharePoint.WebPartPages.WebPartStorageAttribute in
the SDK, specifically the "Creating a Web Part with Custom Properties" example.

Answer #2    Answered By: Jayme Raymond     Answered On: Aug 25

I am trying the same thing but it is not saving the changes for a
particular user. What is happenning is that as soon as soon as any
user changes the property it gets changed for all users, though I
have specified the webpart.storage property as storage.personal.

Answer #3    Answered By: Devika Bellad     Answered On: Aug 25

Are you using authenticated or anonymous users? Is the portal setup for
anonymous access?

Answer #4    Answered By: Diego Paul     Answered On: Aug 25

I have disabled anonymous access on my portal site...
And every user  of my portal site falls under a site group...
But still the problem remains the same... Changes done at last are
wanted  to know that everytime when the webpart  is rendered, are the
properties retrieved form the database???
I also tried explicitly saving the properties  by
using "saveproperties" property but still result was the same...
I want to know that is the webpart rendered from the cache or from
database after retrieving the various properties..???

Answer #5    Answered By: Denis Cantrell     Answered On: Aug 25

A couple more questions - are personalization rights granted for each user, and
are they using the web part in the shared or personal view of the page?

Answer #6    Answered By: Sarita Patel     Answered On: Aug 25

The users  are modifying the webpart  in a shared view. How to grant
personalization rights ????
One more question is that can a site admin target a custom  webpart to
all the users of the site on their my site???

Answer #7    Answered By: Elias Cannon     Answered On: Aug 25

Personalization is a right like any other - you just assign it to a site group
or role, then add the users  to that group or role. I just answered the other
question in a separate email.

Didn't find what you were looking for? Find more on Storing custom properties for users Or get search suggestion and latest updates.