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 access to records based on login

Print topic Send  topic

Author Message
laggerboutique

Posts: 8
Posted: 08/25/2005, 1:42 PM

Hello,

I would like to create a database which allows a series of authorized users to add and edit records. However, I want to restrict access for each user to those records that he/she creates. For example, if jane is an authorized user, when she logs in, I want to direct her to a grid page which displays only those records that belong to her. Furthermore, if jane adds a new record, I would like her user information to be automatically included in that record, identifying her as the record's creator.

Can I do this in CCS?

Thanks in advance to anyone who might be able to shed some insight.
View profile  Send private message
peterr


Posts: 5971
Posted: 08/25/2005, 1:56 PM

Looks quite simple.
If you just want to display records that belong to a user then this done via standard filtering, similar to displaying search results.
See:
http://forums.codecharge.com/search.php?s_keyword=CCGet...m[]=5&s_period=
http://forums.codecharge.com/search.php?s_keyword=UserI...m[]=5&s_period=

In the same way you can use CCGetUserID to set default values, etc.

If you want to restrict access to individual records then check the main CCS tutorial. It's best place to learn the basics. Here is the section on record security:
http://docs.codecharge.com/studio/html/QuickStart/Creat...rInitEvent.html
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
laggerboutique

Posts: 8
Posted: 08/25/2005, 2:06 PM

Thanks! I'll study these resources and post again if I run into problems or questions.
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.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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