Dear experts,
I've read tons of posts here about the adding users to alpha websecurity tables, but still did not find an answer for my problem :(
I'm trying to add users to alpha websecurity tables using a5ws_Save_User_Values function on a5w page. I followed the help file carefully, but never the less the "Required Data Missing" is returned by a5ws_Save_User_Values.
Here is my code:
Another thing that seems important for me is that ?a5ws_User_File_Field_List() returns me only {Guid Password Userid } and that's all, ulink field is missing. Can that be a reason? If yes, how can I enable ulink to be in this list?
Currently ulink is enabled in application security settings (screen attached).
Any clues will be highly appreciated!
Thank you,
Olga
I've read tons of posts here about the adding users to alpha websecurity tables, but still did not find an answer for my problem :(
I'm trying to add users to alpha websecurity tables using a5ws_Save_User_Values function on a5w page. I followed the help file carefully, but never the less the "Required Data Missing" is returned by a5ws_Save_User_Values.
Here is my code:
Code:
function saveSecurityValues as c (newLogin as C, newPassword as C, newSecurityGroup as c, ulink as c) saveSecurityValues="OK" 'define request variables dim request.variables.guid as c dim request.variables.userid as c dim request.variables.password as c dim request.variables.ulink as c dim request.variables.email as c dim request.variables.groups as c 'define output variables dim output as p dim output.controls as p dim output.controls.guid.value as c dim output.controls.password.value as c dim output.controls.userid.value as c dim output.controls.ulink.value as c dim output.controls.groups.value as c 'define result variable dim result as p dim newUserGuid as c newUserGuid="" request.variables.ulink=ulink request.variables.guid=API_UUIDCREATE() 'i'm not sure i need to do this, but without this row the error is the same - Required Data Missing request.variables.userid=newLogin request.variables.password=newPassword request.variables.groups=newSecurityGroup request.variables.email=newLogin+"@fc.com" 'i'm not sure i need to do this, but without this row the error is the same - Required Data Missing ?"<br>We are in saveSecurityValues function<br>" ?"ulink="+request.variables.ulink+"<br>" ?"userid="+request.variables.userid+"<br>" ?"password="+request.variables.password+"<br><br>" ?a5ws_User_File_Field_List() ?"<br>" 'new user will be created result = a5ws_Save_User_Values(output,request) if result.errors = .T. then saveSecurityValues = "Can not save user password and group: "+result.error_text ?saveSecurityValues return else newUserGuid = output.controls.guid.value ?"new user guid="+newUserGuid 'saveSecurityValues=saveGroup(newUserGuid, newSecurityGroup) end if end function
Currently ulink is enabled in application security settings (screen attached).
Any clues will be highly appreciated!
Thank you,
Olga
Comment