Alpha Video Training
Results 1 to 5 of 5

Thread: Delete User

  1. #1
    Member
    Real Name
    Rogers
    Join Date
    Jan 2008
    Posts
    213

    Default Delete User

    Hi Good Day
    I have a Grid Component that shows all the users from my registration Table. However when I delete a User form my Registration Table it's not deleted from Alpha's web Security. How can I delete the user from Alpha's Web Security Table via my Grid Component. I am trying to avoid having to go into the Web Security Option to delete the User.


    Thanks Rogers

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

    Default Re: Delete User

    I have this in my CanDeleteRecord event. My primary field is userid which is the login USERNAME, yours might be different.

    Code:
    function CanDeleteRecord as v (DataSubmitted as P, Args as p, PageVariables as p, Result as P)
    with PageVariables
    
    dim request as p
    dim session as p
    dim response as p
    request = args.GridDefinition.request
    session = PageVariables.session
    response = args.GridDefinition.response
    
    a5ws_delete_user(DataSubmitted.userid,request)
    
    Result.Cancel = .f.
    Result.ErrorHTML = ""
    end with
    end function
    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
    Real Name
    Rogers
    Join Date
    Jan 2008
    Posts
    213

    Default Re: Delete User

    Thanks Steve. Excellent.

  4. #4
    Member
    Real Name
    Rogers
    Join Date
    Jan 2008
    Posts
    213

    Default Re: Delete User

    One more question how can I make the user input a reason for deletion before he/she deletes a user? I would like to keep a record of the reason why the user was deleted.

  5. #5
    Member
    Real Name
    Rogers
    Join Date
    Jan 2008
    Posts
    213

    Default Re: Delete User

    I was thinking maybe create some sort of log file to show the user when he/she was deleted and the reason

Similar Threads

  1. Web Application Delete User
    By Brett17 in forum Application Server Version 9 - Web/Browser Applications
    Replies: 2
    Last Post: 07-23-2009, 01:10 AM
  2. Delete user from Alpha 5 security table
    By David Brown in forum Application Server Version 8
    Replies: 3
    Last Post: 01-10-2008, 01:47 AM
  3. Sec Framework - delete a user
    By Steve Wood in forum Application Server Version 8
    Replies: 9
    Last Post: 04-10-2007, 04:52 PM
  4. Update Errors Other user and delete check box
    By peteconway in forum Alpha Five Version 7
    Replies: 0
    Last Post: 11-08-2005, 09:47 PM
  5. the user delete my progam in the network
    By nehru albania in forum Alpha Five Version 4
    Replies: 4
    Last Post: 02-28-2002, 05:20 AM

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
  •