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