dodaniel
Posts: 43
|
| Posted: 09/22/2006, 3:00 PM |
|
I have a CCS 3 Sign-Out Board application that shows the Name, Location, time out, est time in fields. When a person signs in or out, they click on their name to go to the CCS Maintenance screen and erase their location, time out, time in fields (if they are returning). I would like to create a "Clear" button that will erase all 3 of these fields w/o the person having to erase each one individually. Can anyone help me build the button for this?
|
 |
 |
kevind
Posts: 251
|
| Posted: 10/04/2006, 4:40 AM |
|
if this is a form, you can add a server side event to the 'submit' button that would remove values from the fields in question before submitting.
Add it to the On Click event under Server and add code like:
MyRecord.FieldName.value=""
MyRecord.FieldName2.value=""
etc.
Alternatively, you can create more than 1 Submit button in a form and change the text that appears in the button. Then in its Server On Click Event, set field values differently - you can have one button for 'check in' and another for 'check out', each setting record form fields to different values depending on the situation.
One sneaky trick I do is have a link in the grid like 'check in' and have it point to a page with a record form which only changes key fields - then I add an event on the CLIENT side On Load section to Submit the form and return to the grid page right afterward. The only condition here is that your browser must allow Javascript execution.
Let me know if this helps.
kd
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
|