J
|
Jane 3/16/2007 |
Hi, $values["OwnerIDField"]= $_SESSION["OwnerID"]; |
D
|
dlpirl author 3/16/2007 |
Hi, you need to check off Use can see and edit their own records only security option and select OwnerID field in both Main Table: ownerID field and Users Table: OwnerID field dropdown boxes on the Advanced security settings dialog on the Security tab. To fill OwnerID field you can use Before record added event on the Events tab. Here is a sample:
|
J
|
Jane 3/19/2007 |
Hi,
and replace it with this one: if($strTableName=="TableName") { $ret=GetFullFieldName(GetTableOwnerID())."=".make_db_value(GetTableOwnerID(),$ownerid)." or editby='".$_SESSION["editby"]."'"; } |
D
|
dlpirl author 3/20/2007 |
Hi, as I understand you need to use two fields as OwnerID: OwnerIDField and editby fields.
|
D
|
dlpirl author 3/23/2007 |
I want to be able to have any user who is a member of the 'sales' group to edit spcified tables such as orders, orderdetails, customers, etc. Is there a way to do this?
|
J
|
Jane 3/23/2007 |
Donald, |
D
|
dlpirl author 3/23/2007 |
you can save value of OwnerID to $_SESSION["aaa"] variable in the AfterSuccessfulLogin event on the Events tab and then use it in the include/commonfunctions.php file.
|
J
|
Jane 3/26/2007 |
Donald, $smarty->assign("username",$_SESSION["UserID"]);
$smarty->assign("username",$_SESSION["UserID"].", ".$_SESSION["aaa"]); |
D
|
dlpirl author 3/26/2007 |
to print your $_SESSION["aaa"] variable on the menu page with LoginID open menu.php file, find this line: and replace it with this one:
|
J
|
Jane 3/27/2007 |
To show the GroupID next to UserID on all pages open C:/Program Files/PHPRunner3.2/source/list.php, find and modify following code snippet: ##if @BUILDER.bCreateLoginPage## $smarty->assign("userid",htmlspecialchars($_SESSION["UserID"])); endif
|