telmiger
Posts: 61
|
Posted: 07/13/2004, 2:01 PM |
|
I have many forms were I need to create some custom security and would like to create a custom function.
I tried to assign a variable to the form projects like in the example below but it does not work.
Global $projects; // projects is the name of the form
$form_name = $projects;
if (Form_Criteria){
$form_name->InsertAllowed = false;
$form_name->UpdateAllowed = false;
$form_name->DeleteAllowed = false;
}
I would like to do this so that I can create a custom function.
Any help would be appreciated
Tony Elmiger
|
|
|
klwillis
Posts: 428
|
Posted: 07/13/2004, 2:29 PM |
|
You can pass your form as a reference to your custom function.
Something like this ...
function FormCriteria(&$projectForm)
{
..
if (Form_Criteria)
{
$projectForm->InsertAllowed = false;
$projectForm->UpdateAllowed = false;
$projectForm->DeleteAllowed = false;
}
}
_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"
Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006 |
|
|
|