Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
someswararao
Posts: 40
Registered: ‎07-16-2008
My Device: Not Specified
Accepted Solution

how to block the Save_Discard_Cancel Dialog

Hi,

 

i am getting the following dialog box for some screens....

 

Please let me know how to restrict this... DialogBox

 

 

Developer
kzettel
Posts: 120
Registered: ‎07-16-2008
My Device: 9000

Re: how to block the Save_Discard_Cancel Dialog

You can override onSavePrompt in your screen.  I think returning false will prevent the prompt.
Kurt Zettel | Chief Architect | Metova
www.metova.com
Developer
someswararao
Posts: 40
Registered: ‎07-16-2008
My Device: Not Specified

Re: how to block the Save_Discard_Cancel Dialog

Thanks for repply,

 

u r solution is correct... but we have to return true;

 

if you return false, screen is not going back.