Method Community

 

Secure Links in a Grid

Last post 02-16-2012 2:43 PM by LaCrews. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 02-16-2012 9:30 AM

    Secure Links in a Grid

    How can I secure a link (or any column) in a Grid? For example: I don't need my salesmen deleting Items. Can I prevent them from seeing and/or clicking the 'Delete' link for Items in the grid? Can I effectively hide a column in a grid based on security?

    Thanks...

    Blake C
  • 02-16-2012 10:38 AM In reply to

    Re: Secure Links in a Grid

    Blake

    There are a number of ways to accomplish this.  Here's one idea.  Add a new field to the users table called "IsPrivileged" then surround the an action set in this case the delete link with a conditional statement that tests true when  the signed in user is privileged. 

    Mark Crews
    Cloud Consultancy
    Principal and Developer


    • 2012 MethodCRM Partner of the Year

    • 2012 MethodCRM Community Excellence Award

    • 2011 MethodCRM Community Excellence Award


    Visit our website to find out about our training, support, and customization services.
    website: cloudconsultancyllc.com
    blog: cloudconsultancyllc.com/blog/
    ph: 434.326.1601
    e: support@cloudconsultancyllc.com

    What is Method?
  • 02-16-2012 11:20 AM In reply to

    Re: Secure Links in a Grid

    Blake

    Here's an another approach.  You can add an unbound text box object to the screen, label it "delete password", and set the masking property.   You can then use the user supplied value in your condtional statement.  

    Mark Crews
    Cloud Consultancy
    Principal and Developer


    • 2012 MethodCRM Partner of the Year

    • 2012 MethodCRM Community Excellence Award

    • 2011 MethodCRM Community Excellence Award


    Visit our website to find out about our training, support, and customization services.
    website: cloudconsultancyllc.com
    blog: cloudconsultancyllc.com/blog/
    ph: 434.326.1601
    e: support@cloudconsultancyllc.com

    What is Method?
  • 02-16-2012 12:25 PM In reply to

    Re: Secure Links in a Grid

    Answer

    Thx for the ideas. I'm already doing a lot of customization to this application so staying with the built-in Method security (roles/users) features would be a big benefit if at all possible.

    My Solution: I wound up removing the 'Delete' link from the ItemList grid and adding a Delete button (as link) to the ItemInventory screen instead. I then secured the link, making it visible to only those roles that are allowed to delete an item.

    I'll keep your custom workaround ideas in mind, though, should the built-in Method features prove inadequate for what I want to do.

    Thx again.

    Blake C
  • 02-16-2012 2:43 PM In reply to

    Re: Secure Links in a Grid

    Sounds like you've got a working solution.

    Mark Crews
    Cloud Consultancy
    Principal and Developer


    • 2012 MethodCRM Partner of the Year

    • 2012 MethodCRM Community Excellence Award

    • 2011 MethodCRM Community Excellence Award


    Visit our website to find out about our training, support, and customization services.
    website: cloudconsultancyllc.com
    blog: cloudconsultancyllc.com/blog/
    ph: 434.326.1601
    e: support@cloudconsultancyllc.com

    What is Method?
Page 1 of 1 (5 items)