Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Blackberry - Disable Save option in BasicEditField?

I am using a basiceditfield to take input from the user to do some simple string search. But if i type a few letters and wish to go back without continuing the search, it automatically asks me whether to save the contents of the field. I don want this to happen. Can i in any way disable the "Changes made!-save-discard-cancel" option in basiceditfield(or any editfield for that matter)????please help!!!

like image 526
chethan Avatar asked Jan 23 '23 10:01

chethan


1 Answers

Try adding this to your MainScreen class:

protected boolean onSavePrompt() {
        return true;
    }
like image 96
Vivart Avatar answered Jan 31 '23 14:01

Vivart