Save the change on issue close

Hi all, I searched around the forum for an answer but couldn't find one.

I have problem with is basically, I can't get rid of the recording of the dialogue changes when the application closes. Many people suggested using a variant of:

public boolean onSavePrompt()
   {
       return true;
   }

but I noticed that all the people who got to work have extended their screen. I did not extend my screen - as in the example of the Music Store tutorial - because I don't know how to use the persistent store when the screen is extended. So, if I use the code above, it does nothing.

Finally, I would like to save the changes when you exit without any dialogue arise. Currently, I save the changes using the menu button - Save as in the tutorial of Music Store. How could do?

Help, please! Thanks in advance!

How do you define your screen?  -That's something like...

SerializableAttribute public class screen extends MyScreen

{

...

}

If so, just add the code of onSavePrompt() in there.

Your screen will confirm record when he thinks there are pending changes (isDirty() == true).  So, another way to avoid it is to simply call setDirty (false) in your code before the closing.

Tags: BlackBerry Developers

Similar Questions

  • How to remove the warning "do you want to save the changes to investigation.pdf before closing.

    Question: To remove the warning "do you want to save the changes to investigation.pdf before closing.

    I created a file of pdf XFA (using the LC Designer 8.2) to view this issue

    I can't attach PDF file. Without attaching the pdf file, it would be difficult to explain.

    Click event js:

    function activateUser() {}
    var PDFVersion = xfa.host.variation + xfa.host.version;
    xfa.host.messageBox ("registered button click event");
    XFA. Form.Form1.sendForm.welcomeMsg.Presence = "invisible";
    XFA. Form.Form1.sendForm.successMsg.Presence = "visible";
    Event.Target.Dirty = false;
    };

    docReady event js:

    function displayInfo() {}
    var res =xfa.host.variation;//Added this line to display the successMsg
    xfa.host.messageBox ("docReady event recorded");
    XFA. Form.Form1.sendForm.welcomeMsg.Presence = "visible";
    XFA. Form.Form1.sendForm.successMsg.Presence = "invisible";
    };

    docClose js event:

    xfa.host.messageBox ("docClose recorded event");
    Event.Target.Dirty = false;

    Steps to get the caveat:
    (1) open the attached pdf using Acrobat Professional.
    (Bouton 2) click on registration to confirm.
    (3) now close the document and the Acrobat gives a warning "do you want to save the changes to investigation.pdf before closing.

    The XFA pdf summary:
    It has two text fields. DocReady event field has done this & field B is rendered invisible.
    The button click event of the field made invisisble & field B are made visible.
    Closing the pdf should not raise this warning message.

    My Efforts:
    (1) found a property in js adobe docs.
    Event.Target.Dirty = false;
    It does not solve the problem.
    (2) I tried to put this logic in almost all the events listed in the designer, but I'm not able to solve the problem.

    Please help me solve this problem.

    Hello

    Change the visual appearance is dirty the screen, before all data are actually entered in the form. I've seen this before.

    I think that the docClose event is too late to have the sale/requiresFullSave script. preSave does not either, as this is triggered after the warning dialog is displayed.

    For a test, I would put the sale/requiresFullSave script in the layout event: loan. Not the most efficient, but he should do after changing the visibility of the messages.

    This could be interesting: http://cookbooks.adobe.com/post_How_often_events_fire_and_their_sequence-16547.html

    Niall

  • Error message: to restore enough memory for programs running, save the file and then close or restart all programs

    It said "restore enough memory for programs to operate correctly, save the file and then close or restart all open programs".

    I changed the size of paging and says always the same, I have 1.5 GB free RAM, but don't know how to find or what to do 'virtual memory '.  Have windows 7.

    I started the safemode and run also memory dignostics and nothing found, please help, cannot afford to take a shop or get a new computer, I'm using another pc.

    I was recommended to download and. Run 'hitmanpro3'... but if anyone has had this problem and solved it or know how, please help!

    Thank you

    Hello

    Please contact Microsoft Community.

    I understand that you receive an error related to the lack of virtual memory. This error message appears when running any program that requires more memory your computer has, or running in the background, Windows manages the system memory by saving the data between physical memory and virtual memory. In order to help you better, please provide us with the following information:

    What is the brand and model of your computer?

    I suggest you follow the methods and check them off below if this solves the problem.

    Method 1: Clean boot

    A clean boot is a troubleshooting technique that allows you to get the computer facing up and running so that you can determine what elements of the normal starting procedure problems.

    How to perform a clean boot in Windows

    http://support.Microsoft.com/kb/929135

    Note: Once you are done with the clean boot, follow the section How do I reset the computer to start as usual after a clean boot troubleshooting under more information in the article to put your computer to normal startup.

    Method 2: Prevention of insufficient memory problems

    Follow the steps mentioned in the link and the check, it solves the problem. Follow the evolution of the size of the virtual memory section

    http://Windows.Microsoft.com/en-us/Windows/preventing-low-memory-problems#1TC=Windows-7

    Method 3: Virus Scan

    Microsoft Safety Scanner is a free burner that can be used to analyze a system for computer viruses and other forms of malware.

    Microsoft safety scanner

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Warning: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Additional information: Windows optimize for better performance

    Hope this information helps. Response with status so that we can help you.

  • Help with image files, drop box and save the changes?

    My husband put all our photos of drop box.  They are still on our computer, but we can now also access elsewhere.  But it has somewhat modified files.

    I'm putting together, cultures and (in general) to save the changes made to some images.  But I get an error.

    Example: The image I want to change is on the side.  I right-click on the file icon and select "Rotate clockwise" in the menu dropdown. Immediately, I raise the sound "bonk" and an error message appears: "you cannot rotate this image.  The file can be used or open in another program or maybe the file is read only.  It wasn't a problem before doing things to the drop box.
    So, I wait to make sure that everything is ok.  The image is not open anywhere else.  I clicked the properties option to see if it is in read-only mode.  He said that it is not.
    When I open the image and try to use the rotation on the bottom, it will turn.  But when I close the window, I get a different error message that says "Windows Photo Viewer cannot save changes to this picture because there is a problem with the properties of the image file."   There is a link at the bottom of the message box for "Why can't save this picture?  I clicked it.  He said "the subject you are looking for is not available in this version of Windows. For additional assistance, see multiple support options. "The more support options?  Get a tech savvy friend who could help me. Nice.
    Anyone know what I need to do to make this work?
    I don't know what version of windows we have.  I'm sure that's not Vista.  It's the one after that.

    Hello

    Thank you asking in the Microsoft Community.

    1. open Microsoft paint.

    2. navigate to the image through Microsoft Paint.

    3 try to rotate and save the image.

    4 let me know if you are able to.

    Post back with the result.

  • The payment change ADOBE info Web page fails - I can't scroll down to save the changes. My subscription is expired and I am dead in the water! I can't find a support customer portal to this problem - HELP PLEASE!

    I can't scroll down to save the changes. My subscription is expired and I am dead in the water! I can't find a support customer portal to this problem - HELP PLEASE!

    catsrock

    Great salvation,

    We are sorry for the inconvenience caused to you!

    I recommend you contact customer service regarding this issue.

    Kind regards

    Rahul

  • Save the changes to a tilelist component using the sharedObeject() method

    Yesterday I asked here a simple way enable users to save changes, they make a request at the click of a button backup and received an excellent suggestion which has been using the method of the shared object that stores the recorded data even after an application is closed and reopeneded.

    However, I am fighting to make it work with tilelists changes. In my application I have a text box in which the user can enter his name, a left hand tilelist populated with details of a collection of table which the user can then drag the items in hand right tilelist, a reset button that resets the tilelist, and changes to the tilelists once the user slipped and dropped points , and a backup button clicked once to save all changes to the request, but for the moment it only records the text that a user has entered in the text box.

    What I want is when the user drags an element / elements of the left to the right clicks and tilelist tilelist save it any changes made to these two tilelists is also recorded for example the button if the user drags an item from left to right, then save the clicks, next time they close and reopen the application that the article is no longer in the tilelist left and will be in the right.

    Can anyone maybe change my code for me so that it saves the tilelists too that I'm completely clueless on where to start on this.

    Here is the code for my application: -.

    <? XML version = "1.0" encoding = "utf-8"? >

    < mx:Application

    ' xmlns:mx = ' http://www.Adobe.com/2006/MXML "layout =" " absolute "creationComplete ="initprofile1SO ()"

    >

    < mx:Script >

    <! [CDATA]

    import

    MX. Collections.*;

    private function profile1NewsAndSportReset():Sub

    {

    profile1NewsAndSportAddLinksTilelist.DataProvider =

    New

    ArrayCollection([)

    {link:}

    "www.bbcnews.com" , label: "BBC News"

    },

    {link:}

    "www.itv.com/" , label: "ITV"

    },

    {link:}

    "www.skynews.com" , label: "Sky News"

    },

    ]);

    profile1NewsAndSportLinkChoice.DataProvider =

    New

    ArrayCollection ([]);

    }

    []] >

    < / mx:Script >

    < mx:Script >

    <! [CDATA]

    import

    flash.net.SharedObject;

    public var

    profile1NameSO:SharedObject;

    private function initprofile1SO():Sub

    {

    profile1NameSO = SharedObject.getLocal)

    'profile1Name '.

    );

    If

    (profile1NameSO.size > 0)

    Profile1NameEntry.text = profile1NameSO.Data.Name;

    }

    private function saveProfile1(event:MouseEvent):Sub

    {

    profile1NameSO.data.name = Profile1NameEntry.text;

    profile1NameSO.Flush ();

    }

    []] >

    < / mx:Script >

    < mx:TextInput id=" Profile1NameEntry "maxChars =" " 10 "width = » 113 "fontSize = » 10 " x=" 5 " y=" 77.5 "

    / >

    < mx:Button click = "profile1NewsAndSportReset ()" id =" " Reset "label =" " Reset " y=" 5 "height = » 25 " x=" 5 "

    / >

    < mx:TileList id=" profile1NewsAndSportLinkChoice "fontWeight =" " "BOLD" "dragEnabled =" " true "dragMoveEnabled =" " true "dropEnabled =" " true "height =" " 292 "width =" 650 "top =" 5 "left =" 521 "columnCount =" 5 "rowHeight =" 145 "columnWidth =" 125 "backgroundColor =" #000000 "color =" #FFFFFF " " / > "" "" "

    < mx:TileList id=" profile1NewsAndSportAddLinksTilelist "fontWeight =" " "BOLD" "dragEnabled =" " true "dragMoveEnabled =" " true "dropEnabled =" " true "height =" " 419 "width =" 385 "top =" 5 "left =" 128 "columnCount =" 3 "rowHeight =" 145 "columnWidth =" 125 "backgroundColor =" #000000 "color =" #FFFFFF "" "" "" "

    >

    < mx:dataProvider >

    < mx:Array >

    < mx:Object " link = ' www.BBCnews.com "label =" BBC News ''

    / >

    < mx:Object " link = ' www.ITV.com/ "label =" ITV ''

    / >

    < mx:Object " link = ' www.Skynews.com "label =" Sky News ''

    / >

    < / mx:Array >

    < / mx:dataProvider >

    < / mx:TileList >

    < mx:Button click = "saveProfile1 (event)" id =" " Save "label =" " Save the changes " x=" 5 " y=" 38 "width = » 113 "height = » 25.5 "

    / >

    < / mx:Application >

    If this post has answered your question or helped, please mark it as such.

    
    
      
         0){
              if(profile1NameSO.data.name){
                Profile1NameEntry.text=profile1NameSO.data.name;
              }
              if(profile1NameSO.data.addList){
                if(profile1NameSO.data.addList != "empty"){
                  var addList:Array = profile1NameSO.data.addList.split(",");
                  var tempAC1:ArrayCollection = new ArrayCollection();
                  for each(var str:String in addList){
                    for each(var obj1:Object in addLinksAC){
                      if(str == obj1.label){
                        tempAC1.addItem(obj1);
                        continue;
                      }
                    }
                  }
                  if(tempAC1.length > 0){
                    profile1NewsAndSportAddLinksTilelist.dataProvider = tempAC1;
                  }
                }
              }
              if(profile1NameSO.data.choiceList){
                var choiceList:Array = profile1NameSO.data.choiceList.split(",");
                var tempAC2:ArrayCollection = new ArrayCollection();
                for each(var str2:String in choiceList){
                  for each(var obj2:Object in addLinksAC){
                    if(str2 == obj2.label){
                      tempAC2.addItem(obj2);
                      continue;
                    }
                  }
                }
                if(tempAC2.length > 0){
                  profile1NewsAndSportLinkChoice.dataProvider = tempAC2;
                }
              }
            }else{
                profile1NewsAndSportReset();
            }
          }
          private function saveProfile1(event:MouseEvent):void{
            profile1NameSO.data.name = Profile1NameEntry.text;
            var addList:String = "";
            if(ArrayCollection(profile1NewsAndSportAddLinksTilelist.dataProvider).length > 0){
              for each(var obj1:Object in
                profile1NewsAndSportAddLinksTilelist.dataProvider){
                addList += obj1.label + ",";
              }
            }else{
              addList = "empty";
            }
            profile1NameSO.data.addList = addList;
            var choiceList:String = "";
            for each(var obj2:Object in
              profile1NewsAndSportLinkChoice.dataProvider){
              choiceList += obj2.label + ",";
            }
            profile1NameSO.data.choiceList = choiceList;
            profile1NameSO.flush();
          }
        ]]>
      
      
      
      
      
      
    
    
  • Portege 2010 - cannot find the button FINISH to save the changes to the BIOS

    I couldn't save my Bios Setup because I can not find the keys to the end to save the changes.
    I tried to hit all the keys on keyboard, but none of this save the settings.

    Can you show me the keyboard scheme showing the end keys?
    I have toshiba portege 2001 series.

    > Can you show me the keyboard scheme showing the end keys?

    I checked the user manual which you can download from the Toshiba user manual page and the END button seems to be located in the upper right corner, it s above the BACKSPACE key.

    See you soon

  • Unable to save the changes in the resolution of the screen on Satellite P20

    Recently, I have problems with the resolution/quality of images on my laptop P20.

    When I try to remedy this in the tab settings of Options Diplay it me does not save the changes to the screen resolution or image quality. I am currently using the default monitor on NVIDIA GeFOrce FX Go5200.

    Any ideas?

    Hello

    For all the ideas give us more information please. I just know that the resolution of the standard screen for this laptop is 1440 x 900 and if the right display driver is pre-installed to avoid any problems.

    I used Satellite P20-303 (nVIDIA GeForce FX Go5600) nearly two years with the original display driver and have never had any similar problems.

  • Photos app does not save the changes, impossible to edit photos without using other applications

    'Photos' of photo editing features does not work because it is impossible to save the changes. Photos can be edited as usual, but trying to save the changes that the photo is reinstated to the State of origin regardless of changes. There is no error message, to solve the problem, I tried to reset all settings, but it did not help.

    I have iOS 9.2.1 on an iPhone 6 s.

    Thanks in advance for your advice

    I have the same question since getting my iPhone 6. Very frustrating. Several times the photo says even "revert to original" even though the changes have been never applied, as if he thinks he has saved the changes. I asked for help with an apple store and they had never seen before and had no suggestions.

  • Why won't my router save the changes to 192.168.0.1 DNS settings? (DGN2200v4)

    I just bought a DGN2200v4 and successfully connected to the internet. However, it took me ages to figure out how to save the changes made to DNS settings. (I wanted to use "OpenDNS" on 208.67.222.222)

    It turns out that if I connect to the router through 192.168.0.1, I can not change the DNS settings. When I click "Apply" after entering the new numbering, it takes 30 seconds or more for the progress bar for complete, but no change is made. i.e. it does not save the changes I made.

    If instead I connect to the router via www.routerlogin.net, changes are correctly saved after clicking 'Apply', with the progress bar by taking 30 seconds or more.

    I tried several times with consistent results. Why 192.168.0.1 not working then as www.routerlogin.net don't? I thought they were equivalent - the webpage 'Netgear genius' is identical on both...

    JC

    JCA says:


    Also, do you recommend make a factory hard reset after the firmware update, or there at - there no need?

    Sorry for the late reply.

    Personally, I tend to reset factory and re - enter the settings manually, unless I've saved a backup of this same version of the firmware. However, I use Netgear as Access Points routers and so I have little data to re-enter. To some people will say that a factory reset is useless and very often they would be correct, but the effects of factory reset no when it may be necessary are often difficult to predict. I was moderator on these forums for a dozen years, and have seen hundreds of threads where the solution to the problems after an update of the firmware has been at the factory to reset the router.

  • Save the changes to the input parameters of circle finder

    In the finder, circle and Pattern matching

    We use some KING and setings of entry...

    I need to record this change while the application is running.

    Which method I should use...

    to save the changes

    Hello

    using xml with the structure of the event function to read and write the values selected.

    Example of XML (you can write the the datastructure options circular detection directly):

    Best regards

    K

  • Why is my Windows Photo Gallery not allowing me to save the changes I made to my photos?

    I've always been able to edit my images under "fix" and then save the changes. However, now I get a message that the changes cannot be saved because an error with my Windows Photo Gallery. Anyone know what can possibly be wrong?

    Go to this thread and the possible error code in their entirety, the list

    http://windowslivehelp.com/forums.aspx?ForumID=cafb0556-8959-49b9-AFEB-635314aa02f3

  • F10 does not save the changes

    I bought a HP 500-023 refurb which was great good cheap at Microcenter.  I would like to enable vt - x, which is a feature of the i3 chip that is installed on this computer, and finally because the Commission will support the other processors I could switch to something that can run a virtual machine that is better outside the i3 chip that went into it.  So, every time I enter the bios and go to the screen that allows me to change the vt - x for 'licence' to 'disabled', that it is not possible to F10 any change.  In fact, it is no screen in the bios at all which allows F10 to save even though the bios says «F10 save/ESC exit»  I built several computers myself in the past and unlocked cores on the processors through the settings of the bios etc, so I am very familiar with the bios settings.  The question is, literally, that the changes cannot be saved.  If someone knows something about HP computers specifically which would explain this weird behavior in the menu of the bios Setup?  To say they have simply disabled the ability to make changes is a total deal breaker and will return just the machine to the store.

    OK as it turns out I have F10 CAN save the changes to the bios settings and activate the HP motherboard Joshua 500-023 device virtualization.  The problem was that I just changed the BIOS with my keyboard not HP.  It's a Microsoft Wireless ergonomic keyboard that I use always.  I would never in a million years try to use cheap plastic keyboard that came with the computer, but read on UEFI and how it detects hardware confidence that it crossed my mind that maybe I should just plug the supplied keyboard with the computer.  YES... that's all it took.  I could then F10 and save changes to the bios.

  • My wallpaper appears only in the extended format. I want to display a .jpeg file into the center channel mode. I click on center and save the changes, but he remains in stretch mode...

    My wallpaper appears only in the extended format.  I want to display a .jpeg file into the center channel mode.  I click on center and save the changes, but he remains in stretch mode...

    HP technical support solves the problem for me with a patch: I'm sorry that I don't remember all the steps they walked me through but the patch was SP45575. EXE.   It was working fine.  Good luck

  • Error: "Canoe Photo window Viewer save the changes to this picture because there is a problem with the property of photo file" when trying to upload photos from the iPhone to the Windows Photo Viewer.

    Original title: saving photos and videos, common sense?

    JW why I can't save a picture to the top of the right way in my windows photo viewer and Media Player (same for video too) so when I download my pictures frim my iphone on the computer a few photos have been taken vertically, and when I go to put the image a gardener would come saying ' canoe photo window Viewer save the changes to this picture because there is a problem with the file of. properties of photos? What can I do to fix this?

    JW why I can't save a picture to the top of the right way in my windows photo viewer and Media Player (same for video too) so when I download my pictures frim my iphone on the computer a few photos have been taken vertically, and when I go to put the image a gardener would come saying ' canoe photo window Viewer save the changes to this picture because there is a problem with the file of. properties of photos? What can I do to fix this?

    =============================================
    I don't know if the following links answer your question, but
    they may be worth a visit:

    Good luck and * proceed at your own risk *.

    FWIW... There is a very long discussion (several pages) to the
    following link:

    Cannot change the imported iPhone 4S photo
    https://discussions.Apple.com/thread/3444951?start=0&TSTART=0

    More Discussion

    iPhone 4S image properties is not compartible with Windows?
    Editing can be done on the computer due to the error
    "Windows Photo Viewer cannot save changes to this picture.
    because there is a problem with the properties of the image file".
    Any help?
    https://discussions.Apple.com/message/17291884#17291884

    More Discussion:

    We cannot turn a few photos in Windows 7 (but can turn others)
    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-pictures/cant-rotate-some-photos-in-Windows-7-but-can/3a809845-9144-4BB1-9bb3-ab4f5b856524

    A simple solution is to open the photos in paint or most other
    digital image editor and modify it.

    Some people have reported success using the following free download
    to remove the metadata.

    Property restrictions stripper iphone 4S (JPEG & PNG Stripper)
    http://www.SteelBytes.com/?mid=30&cmd=download&PID=15

    Here's a way to turn...

    Easily turn locked iPhone 4 and 4 s Photos in Windows 7 with
    the rotator Lossless JPEG free
    http://www.daleisphere.com/easily-rotate-locked-iPhone-4-and-4S-photos-in-Windows-7-with-the-free-JPEG-lossless-Rotator/

    Free download JPEG Lossless rotating
    http://annystudio.com/software/jpeglosslessrotator/

Maybe you are looking for