This topic is locked

Add Page / Before Record Added

2/23/2007 3:55:22 AM
PHPRunner General questions
A
asimha author

My current project (CDS) has only Admin access as the public users see another set of PHP generated pages.
In Adv Security I am using the option "Users can see and edit other user's data" as I need all Admin's to be able to edit any other Admin's data.
I would need to assign the current user to a field in one of the tables (basically the record owner).
Any ideas?

J
Jane 2/26/2007

Andre,
you can do it using Before record added event.

Here is a sample:

$values["FieldName"]=$_SESSION["UserID"];



where FieldName is your actual field name.

A
asimha author 2/26/2007

Andre,

you can do it using Before record added event.

Here is a sample:
where FieldName is your actual field name.


Thank you Jane, perfect!

Andre