CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Restrict records based on Session Variable (RESOLVED)

Print topic Send  topic

Author Message
saseow

Posts: 744
Posted: 12/15/2008, 12:10 PM

At Login, I create a session variable based on the branch that the user works for. This is called "user_branch" and echos correctly in the data form.

I want to restrict the data to only those users who are employed by the branch.

I have tried putting CCGetSession("user_branch") in the default field for the branch_id field but is still returns all records.

I have tried adding branch_id={user_branch} to the select clause for the editable grid with no luck either.... it returns all the rows.

Any suggestions MOST welcome!

Thanks,

Trevor
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.