1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Storing values against a user

Storing values against a user

4 posts, 0 answered
  1. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    17 Dec 2010
    Link to this post
    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
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    20 Dec 2010
    Link to this post
    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
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Steve
    Steve avatar
    3037 posts
    Registered:
    03 Dec 2008
    20 Dec 2010
    Link to this post
    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)?
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    22 Dec 2010
    Link to this post
    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
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
4 posts, 0 answered