![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Howdy all. Have a form where I have a tableframe in which I've changed the display of the purge field (A,1) to a checkbox obj. I tried the code below in the changevalue event but it does not update the underlying table nor Assncount field until you move off the current checkbox. Researching came up with info on the dbCommunity site (ObjectPALŽ List Tricks Kasey Chang). on using editCommitField. However, this didn't work for me...maybe missing something my four eyes aren't seeing 8-) So how can I get it to save/commit the last clicked checkbox action? Process question: Have a form that purges inactive/old transaction records. One method "backs up" the production tbls involved prior to deleting the transactions using xcopy tablename.* (faster than Pdox table copy). Rather than cause this event to run every time, was wondering if it might not be better to set a flag or check the table creation datetime such that if it is several hrs old then backup the tables. Or I could just add the current datetime to the tables and have an incremental backup though then later I have to delete the backups at some time... Thanks in advance, Rey ********************** checkbox's checkedvalue = "P" uncheckedvalue = "" ********************************* if self.value = "P" THEN ;self.value = blank() dodefault IF NOT (NumSelected = 0) THEN NumSelected = NumSelected - 1 Assncount = NumSelected EndIF ELSE ;self.value = "P" dodefault NumSelected = NumSelected + 1 Assncount = NumSelected EndIF |
#3
| |||
| |||
|
#4
| |||
| |||
|
| In changeValue(), the new value is not available as self'value until after |
|
Howdy Anders. Thanks for reply and suggestion on separating questions. Tried the new value event on the prev form w/no success. Then this AM, ran another test form using a copy of the orig table but changing the Purge field to logical. Used following code in newvalue event and still was unable to get last click committed: dodefault if eventinfo.reason() = EditValue then self.action(editCommitField) endif Any thoughts? Thanks, Rey |
#5
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |