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 -> General/Other

 Grid with edit on one field

Print topic Send  topic

Author Message
Fixer

Posts: 18
Posted: 12/17/2004, 4:32 AM

New to this awesome application- learning as I go. I can create a grid form with fields from a table from my hosted MySQL. One field is a y,n - That is the only field that I want users to be able to change- do I set up the rights at MySQL, CCS, or both. How and where in CCS do I define which fields are editable- also, when looking to build a login screen and setup authentication- can I just import users from MySQL somehow.
View profile  Send private message
peterr


Posts: 5971
Posted: 12/17/2004, 12:01 PM

I don't know if MySQL supports field-based permissions. In CCS you would use standard HTML approach, for example use the "disabled" HTML attribute (also available on the "Format" tab in properties). Or you can use Label instead of Textbox, so that the information is shown but not edited.

As for the login and users, you don't need to import users, just specify the user table in the security settings. Your Web application will read the user table at the time of login.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Fixer

Posts: 18
Posted: 12/17/2004, 12:52 PM

Great, thanks for the info- I must have been thinking about MS-SQL in terms of field permissions- By any chance, would you know how I can trigger an email to go off if a field value is changed? If not I can start a new post, I'm sure there is a way.
View profile  Send private message
peterr


Posts: 5971
Posted: 12/17/2004, 1:02 PM

There may be couple or more ways to do this, such as:
1. Server based: in "Before Update" event use the CCDLookup function to lookup the field value before it is updated, then send the email if it doesn't match the currently submitted value.
2. Client+server based: create a non-bound hidden field and use some JavaScript that will change its value when another field's value is changed. Then in the program use the "Before Update" event to read the hidden field's value and send the email accordingly.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Fixer

Posts: 18
Posted: 12/20/2004, 4:04 AM

thanks- I'll give it a shot.
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.