Greetings all.
I am confussed and frustrated trying to figure out how to cancel the entering of a new record on an embedded browse.
The form the browse is on is modal. When I enter a new record, as long as I am in the first 2 fields (dates) I can cancel or press esc and the record I am entering goes away. If I go to the 3rd field, which is a look up, when I cancel it enters the record with blank fields. But it behaves differently depending on how you cancel.
Case 1: I have a button called Cancel, on push, Cancel Changes on current form at browse level. Same behavior as above.
Case 2: Click cancel changes on toolbar first time, current record goes away and moves me to record above in change mode. Click cancel changes second time, exits change mode.
Case 3:Cancel changes is the same as pressing (esc). Enter past first 2 date fields which default to today, 3rd field press esc before selecting from lookup; field is blank, down arrow still present to choose lookup for field, press esc 2nd time current record goes away, move to record above in the same field with down arrow still present, record still in change. Press esc 3rd time record is now out of change.
Case 4: Cancel changes is the same as pressing (esc). Enter past first 2 date fields which default to today, 3rd field select something from lookup table press esc 1st time and dialog box pops up "are you sure you want to lose changes" click yes, current record goes away, moves to the record above in change mode, press esc again and exit change.
Case 5: Change action script for cancel button. action 1 give focus to first date field in browse1, action 2 send {esc} same behavior as case 1.
I hope I have made it clear what I am trying to do. I can post my app if needed. How do you cancel entering a record in an embedded browse and why does it behave so differently between using the toolbar, the keyboard, and an action script?
Alan
I am confussed and frustrated trying to figure out how to cancel the entering of a new record on an embedded browse.
The form the browse is on is modal. When I enter a new record, as long as I am in the first 2 fields (dates) I can cancel or press esc and the record I am entering goes away. If I go to the 3rd field, which is a look up, when I cancel it enters the record with blank fields. But it behaves differently depending on how you cancel.
Case 1: I have a button called Cancel, on push, Cancel Changes on current form at browse level. Same behavior as above.
Case 2: Click cancel changes on toolbar first time, current record goes away and moves me to record above in change mode. Click cancel changes second time, exits change mode.
Case 3:Cancel changes is the same as pressing (esc). Enter past first 2 date fields which default to today, 3rd field press esc before selecting from lookup; field is blank, down arrow still present to choose lookup for field, press esc 2nd time current record goes away, move to record above in the same field with down arrow still present, record still in change. Press esc 3rd time record is now out of change.
Case 4: Cancel changes is the same as pressing (esc). Enter past first 2 date fields which default to today, 3rd field select something from lookup table press esc 1st time and dialog box pops up "are you sure you want to lose changes" click yes, current record goes away, moves to the record above in change mode, press esc again and exit change.
Case 5: Change action script for cancel button. action 1 give focus to first date field in browse1, action 2 send {esc} same behavior as case 1.
I hope I have made it clear what I am trying to do. I can post my app if needed. How do you cancel entering a record in an embedded browse and why does it behave so differently between using the toolbar, the keyboard, and an action script?
Alan
Comment