CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Assigning a variable to a form_name

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.