Storing values against a user
Is there a built-in way to store strings against a userid?
I want to go to a page, click a button, store a string against that userid...
Then in the backend be able to pull up all the values of that type for that user.
Doable with the Dynamic types? I'd rather not have to bother with my own OA Model
Hi Steve,
SecurityManager class has a static method -GetCurrentUserId() that you can use. PageData inherits from Content so you use DynamicFacade to store the value if you want to have it in the context of the current page.
Kind regards,
Ivan Dimitrov
the Telerik team
Hmmm...see I was hoping it'd be like a link table...
So two question then if you have a sec
1) What would happen if the page was deleted from the system?...all links to it die as well right?
2) What would the query look like to get all the page references for a user (would it be taxing at all having to query all the pages)?
Hi Steve,
If the page is deleted you will lose all data associated with the object.
This post shows how you can get all items related to a given taxon. ContentDataProviderBase
has a method GetItemsByTaxon
which you can use.
Best wishes,
Ivan Dimitrov
the Telerik team