Role-Based Filtering on Dynamic Pages

Last post 07-11-2008 5:40 PM by sjnaughton. 3 replies.

Sort Posts:

  • Role-Based Filtering on Dynamic Pages

    07-11-2008, 3:31 PM
    • Member
      8 point Member
    • metebulutay
    • Member since 06-27-2008, 1:30 PM
    • Ankara, TURKEY
    • Posts 18

    Hi,

    In the app that I'm working on, every master table has a "RecordOwner" column which indicates the record is created by which user. I need to implement filering on my dynamic pages in a way such that each user can only list records that he is marked as the record owner. But the users with "Admin" role should be able to see all records and they should be able to filter records by record owner.

    Any suggestions?

    Thanx.

    Mete Bulutay - www.CodeHolio.net
  • Re: Role-Based Filtering on Dynamic Pages

    07-11-2008, 4:50 PM
    Answer
    • Star
      12,356 point Star
    • sjnaughton
    • Member since 04-29-2008, 1:11 PM
    • Newton-le-Willows, Merseyside, UK
    • Posts 2,571

    Hi Metebulutay have a look at these blog post:

    The first shows how to mark records with user name of it's creator.

    The second how to limit the rows to those created by the user.

    Hope this helps Big Smile

    Steve Big Smile

    Always seeking an elegant solution.
    [Oh! If olny I colud tpye!]
    c# Bits blog
    Oh, and don't forget to mark as answer any posts that help you Big Smile
  • Re: Role-Based Filtering on Dynamic Pages

    07-11-2008, 5:34 PM
    • Member
      8 point Member
    • metebulutay
    • Member since 06-27-2008, 1:30 PM
    • Ankara, TURKEY
    • Posts 18

    Thank you steve. I wonder how i missed these as i read and applied your tutorials on attribute based permissions.

    For automaticaly inserting and updating i'm thinking of creating a custom field template. This way i can also enable admin role to change ownership of other users' records.

    For hiding in filter repeater, your tutorial solves it with just one if statement added to page template.

    Thank you. Next time, i'll re-check all your tutorials before posting ;)

    Mete Bulutay - www.CodeHolio.net
  • Re: Role-Based Filtering on Dynamic Pages

    07-11-2008, 5:40 PM
    • Star
      12,356 point Star
    • sjnaughton
    • Member since 04-29-2008, 1:11 PM
    • Newton-le-Willows, Merseyside, UK
    • Posts 2,571

    Hi Metebulutay nice to know I writing stuff that you find useful. Big Smile

    Steve Big Smile

    Always seeking an elegant solution.
    [Oh! If olny I colud tpye!]
    c# Bits blog
    Oh, and don't forget to mark as answer any posts that help you Big Smile
Page 1 of 1 (4 items)