Alpha Video Training
Results 1 to 3 of 3

Thread: Adding users to security V-10

  1. #1
    Member bob9145's Avatar
    Real Name
    Bob Senski
    Join Date
    Jun 2009
    Posts
    810

    Default Adding users to security V-10

    Can you add users to security using the new V-10 ajax enabled grids?
    It seems to me that there is a lot of hand coding to do this with a dialog component.

    If you can add a new customer (record to a table ) with a grid component
    than why not users and groups?


    Is this possible? The obvious barrier I see is that the security tables are hidden. I guess this would compromise security?

    I am approaching this in a way that allows a user to add themselves through a registration process. I reviewed the Alpha sports dialog components.
    This seems much more difficult then the code free grids.

    My application will have more than one type of user. Customer, Vendor ect... . These parties all will be able to self register. Their info will be stored in different tables depending on their role within the application.
    Thanks,
    Bobby Rookie

  2. #2
    Volunteer Moderator Steve Wood's Avatar
    Real Name
    Steve Wood
    Join Date
    Nov 2003
    Location
    Bay Area, California
    Posts
    8,842

    Default Re: Adding users to security V-10

    Administering a User normally involves TWO tables, not just the hidden websecurity_users table. You save basic security parameters to Alpha's table, and personal information to your own Users table. Because of that, I've always used a Dialog to Add users. Once the user's two records are created, I use a grid to manage the local information, and a Dialog to manage their security information. I'm sure you could use a Grid Events to do these functions, but I've never tried.

    It's pretty easy to remove users from both tables with a Grid that is a view of the local Users table, with this code in the A5W page:

    dim chkrows as n

    with tmpl_userlist
    componentName = "userlist"
    chkrows = rows
    end with

    '' DELETE CODE
    dim deletelist as c
    for i = 1 to chkrows
    if eval_valid("V.R"+alltrim(str(i))+".CheckBox_Delete") = .T. 'delete checked
    deletelist = deletelist + eval("V.R"+alltrim(str(i))+".userid") + crlf() ' assuming the field was named 'ulink'
    end if
    next

    for each foo in deletelist
    a5ws_delete_user(foo.value,request)
    next
    Steve Wood
    Join the ALPHA DEVELOPERS NETWORK
    There is no Cloud. It's just someone else's computer.
    Web - Mobile - Hosting - Products - Frameworks - Developer Resources
    AlphaToGo | IADN (100% Alpha Anywhere Websites)

  3. #3
    Member bob9145's Avatar
    Real Name
    Bob Senski
    Join Date
    Jun 2009
    Posts
    810

    Default Re: Adding users to security V-10

    Thank you Steve. I will ck it out.
    Bob

Similar Threads

  1. adding users and security
    By richard2007 in forum Application Server Version 8
    Replies: 18
    Last Post: 06-14-2010, 09:35 AM
  2. Issues in adding a new security group ...
    By drgarytraub in forum Application Server Version 9 - Web/Browser Applications
    Replies: 0
    Last Post: 07-07-2009, 11:16 PM
  3. Adding users
    By glbaird in forum Application Server Version 8
    Replies: 1
    Last Post: 10-26-2007, 04:58 PM
  4. Adding Security Restrictions
    By Esio Trot in forum Alpha Five Version 8
    Replies: 7
    Last Post: 04-27-2007, 06:33 PM
  5. Security and users
    By dzervas in forum Alpha Five Version 7
    Replies: 0
    Last Post: 10-05-2006, 01:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •