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 -> ASP

 Using database values in record

Print topic Send  topic

Author Message
curthess

Posts: 7
Posted: 07/07/2006, 2:24 PM

As an OLD programmer (60's) I'm almost to embarassed to post a question like this, so please consider pointing me to an educational source instead. (i.e. If I want to use the 2nd tier power of CCS, what do I need to learn? I can do some pretty sophisticated stuff w/o knowing, but I suspect there is some real power under the top level.)

Anyhow, I simply want to "reset" a record value to another value. For example, I want to have a user click on a submit button saying "reset my password to my DOB" when I already have the DOB stored in the member record.

Use the Event/OnClick? What would the code look like?

Simple? Hard? Pointer?

Thanks in advance.
View profile  Send private message
DonB
Posted: 07/07/2006, 4:36 PM

Since that sounds like the form has only one function, I'd put in a Record
control, with the button having the 'Update' action assigned to it. Then
all that's needed is a Custom Update defined in the Record properties, which
then sets the password to the DOB field value.

Of course on click event code can be added to do the same thing, but with
greater flexibility, if necessary.

--
DonB
peterr


Posts: 5971
Posted: 07/07/2006, 10:59 PM

If you want to have more control a similar method may be to create an empty record form and place a button within it. Then assign custom code to the "On Click" event of the button where you can execute custom queries and other routines. Here is a similar example, although using different event: http://docs.codecharge.com/studio3/html/ProgrammingTech...eCustomSQL.html
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

MS Access to Web

Convert MS Access to Web.
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.