Problems with changing screen & alert message. Bug?

Hallo everybody,
I have very strange problem.
I'm using gauge in independent screen while mobile phone is connecting to server. If it cannot connect becouse of any reason (bad password, etc), it should jump to main menu and display Alert with error message:
public void catchError(String error_message){
        display.setCurrent(mainMenu);
        currentMenu = MAIN_MENU;
        Alert alert = new Alert("ERROR!", error_message, null,  AlertType.WARNING);
        alert.setTimeout(Alert.FOREVER);
        display.setCurrent(alert);
}So with this code, it show mainMenu for a very short while (about 1/10 s), than displays alert. But when I dismiss the alert message, it jumps back to "Gauge_screen"!
I think it put screen to some buffer, but when I change display so fast, it cannot complete it sucesfully. Only solution of this problem that I found is very stupid and I cannot use it with clear mind:
public void catchError(String error_message){
        display.setCurrent(mainMenu);
        currentMenu = MAIN_MENU;
        int i = 0;
        while (i<10000){
            i++;
        Alert alert = new Alert("ERROR!", error_message, null,  AlertType.WARNING);
        alert.setTimeout(Alert.FOREVER);
        display.setCurrent(alert);
}Does someone saw and solve this problem before? What do you think about it?
Thanks
petosh

It's probably because setCurrent() is not something that happens instantaneously. So after setCurrent() when you put the alert on the display still hasn't changed so it remembers that it has to return to the gauge screen. You can use setCurrent(Alert a, Displayable next) to set the alert with the menu as the next screen.
shmoove

Similar Messages

  • Does anyone has a problem with the screen of the new ipad? (there's a part of the screen which the color in it is "very" bright) and when I move the aluminium part of the smart cover when it's attached to the ipad the colors change!! Help!!!

    Does anyone has a problem with the screen of the new ipad? (there's a part of the screen which the color in it is "very" bright) and when I move the aluminium part of the smart cover when it's attached to the ipad the colors change!! Help!!!

    I'd take it into my local APple store and have them look at it. There may be something wrong inside your device.

  • Automatic page updates causing problems with your screen reader? this kind of message come when i access yahoo mail.yahoo mail page not come properly.

    Automatic page updates causing problems with your screen reader? this kind of message come when i access yahoo mail.yahoo mail page not come properly.i can't chat,compose mail nothing accessing.

    Try Refresh Blocker: https://addons.mozilla.org/firefox/addon/992

  • Problem with changing Label in Bridge CS3 and CS6

    Hi there,
    I am having some problem with changing Label in Bridge CS3 and CS6 in windows.
    1. In Bridge CS3 (Windows XP), most of the time with most of the files, there is no problem. But I found that in some files, the Label does not get changed. I usually change Label by right clicking on the picture, then Label and select any Label. When I do so in those files, nothing happens. But when I rename the file by changing or adding just a single character, then it works. And if I again rename to original name, it still works. But without renaming the Label does not change. Again this does not happen with all pictures, but occationally with some. We usually receive pictures from different clients for editing purpose.
    2. In Bridge CS6 (Windows 7), if you create lot of Path using Pen tool in Photoshop for the purpose of removing background, you save the file, close, and change Label in Bridge, again open the file in Photoshop, you see no Path in the Path Pallette. So that means, changing Label works, but it removes the Path from the file. But if there is small amount of path, then no prboblem. But if there is lot of path, like you need to create for a necklace to remove background, then the problem arises.
    I am using Bridge for a purpose where it is very helpful so I really need to use Bridge, and Labeling feature is the most important to me, but after feaguring out this problem, I am really tensed as to whether or not I will find a solution to this. So any help, guidance will really be appreciated.
    Thanks very much in advance for any solution.
    Best regards

    I have re-checked the issue and I found that the problem is with JPG file.
    I wasn't even aware you could save a path to a jpeg file (always use PSD because of wanting to keep the Alpha Channel, jpeg only can contain 1 layer and no alpha channels and/or transparency).
    However I tried it on a file with a simple path and one with a complex path. It seems indeed you have found a bug. The simple path is no problem but the more complex path is indeed disappearing.
    It is not only label but also rate or adding IPTC in the description field. The moment metadata is saved to this jpeg file and reopened the earlier present work path of a more complex path is gone.
    Despite the fact that to my opinion a jpeg is not the most suitable file format for saving a work path this should not happen. If a work path is saved to a jpeg then it should be kept saved after just altering metadata in Bridge.
    It still is the same behavior in Bridge CC because that is what I use. Don't know when it started but it still needs to be repaired
    Here is the link for filing a problem or bug:
    http://feedback.photoshop.com/photoshop_family/

  • SSRS 2012, SQL Server 2012. Problem with changing database

    Hi all!
    I have a problem with changing database for SSRS.
    I have a SSRS 2012 and SQL Server 2012. These programs is on WIndows Server 2012.
    I need to link SSRS to the new database instance. For this I run SSRS Configeration Manager, open tab Database, click Change Database. Then I choose option "Choose an existing report server database", click Next, write the server name, test
    connection (it's successed) and push Next again. Then I see this error message:
    Error
    The feature: "Using other editions of SQL Server for report data sources and/or the report server database" is not supported in this edition of Reporting Services.
    OK   
    I'm confused, cause I have compatible versions of programs and THIS error.
    Please, help me.
    Thanks.

    Hi Kirill,
    From the error message, we can know that the issue may be caused by incorrect editions of SQL Server for report data sources are used as the Report Server Database.
    When creating a report server database, please be aware that not all editions of SQL Server can be used to host the database. So we should make sure that we have used the correct database as the
    Report Server Database. For more details, please refer to the “Report Server Database Server Edition Requirements” section in the following document:
    http://technet.microsoft.com/en-us/library/cc645993.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Problem with sub-screen actions on Cancel button

    Hi all,
    I have a problem with sub-screen.
    I created a subscreen (screen sequence in MM01/MM02/MM03). When users leave this screen, I call POPUP_TO_CONFIRM to ask if they want to save the data.
    1) My goal is: when they choose Cancel, no actions are performed and users will see the current screen. However, I cannot use command: SET SCREEN 0 or LEAVE TO SCREEN 0 because the system gives an error message:
    *SET SCREEN not allowed in subscreens*.
    2) How can we determine when the user leaves the screen? which value of SY-UCOMM will be used to check this?
    Thanks in advance.

    for dis SET SCREEN is not required.
    Consider d code given below as n eg:
    CALL FUNCTION 'POPUP_TO_CONFIRM'
        EXPORTING
          titlebar              = 'SAVE'
          text_question         = 'SOME _QUS'
          text_button_1         = 'YES'
          text_button_2         = 'NO'
          default_button        = '2'
          display_cancel_button = ' '
        IMPORTING
          answer                = l_ans
        EXCEPTIONS
          text_not_found        = 1
          OTHERS                = 2.
      IF sy-subrc <> 0.
        MESSAGE e066.
      ENDIF.
    IF l_ans EQ '1'.    " when yes is pressed
       MODIFY db.
       commit work.
       leave program.
    ELSEIF l_ans EQ '2'.  "when no is pressed
        leave program.
    ELSE.     " when cancel is pressed
    ENDIF.
    In above module when Yes is pressed it saves data den leave prog.
    As no action is specified for cancel button it will remain on that screen only from which popup is called, in this way ur problem can be solved.
    Reward properly.

  • I have an IMac running the latest level of Lion.  Since installing Lion and also being forced to replace the hard drive I have a problem with the screen intermittently go all white.  Happens about 8 to 12 times a day.  I am using Wild Blue as my ISP.

    I am looking for anyone in the west Tennessee area using Wild Blue along with Apple IMac who is having a problem with their screen going complelely white every so often.  Have had the maching into the Apple store in Memphis.  They could not get it to fail.  Help

    TutorDaddy, if this Mac is still covered by the initial warranty or under AppleCare, take it in and have it looked at. As the old label used to say, there truly are "no user serviceable parts inside." Kernel panics very usually indicate failing hardware.
    I have an older iBook G4 that started developing kernel panics and like you, despite reinstalling the OS from a freshly formatted volume, they kept continuing. I looked at the crash log and saw that in each instance of panic, the last bit of code to be accessed had something to do with AirPort. Knowing that the AirPort software was at then current levels, I surmised the problem to be a bad AirPort networking card which, on that particular model of the iBook, was a very small module attached directly to the logic board. Since the computer was out of AppleCare, I broke the machine down myself (I didn't realize that there could be so many barely visible screws in one machine) and removed the offending piece of hardware. My iBook lives but without WiFi, it now sits as a more or less desktop machine needing an ethernet connection to stay connected to a network.
    I do not suggest you break into your iMac. First of all, I'm guessing one would need to be able to pull off the glass and have the necessary glue to reattach it, which is not really available to us consumers. If you're feeling adventurous enough to read the crash logs from each panic, you might be able to surmise the hardware component (or badly written application or library; it can happen) that's causing the panic. If it's a software issue, remove the offending software app and see if the panics return. If it's a hardware issue, it's best to let a competent service tech qualified on Apple hardware to handle it.
    [edited to add:]
    After browsing through related problems in the discussions, I saw this link to a third-party web site being handed out. Perhaps you'll find it useful: http://www.thexlab.com/faqs/kernelpanics.html
    Message was edited by: Stephen Adams

  • Macbook Pro late 2013 - problem with login screen resolution

    Hi,
    I've got problem with login screen resolution, after upgrade to Yosemite. I use the 4rd resolution (last one) on my Mac Pro (late 2013), and after restart login screen is always on optimum mode... But it's only about the login screen.
    Do you know how can I fix it? I would like to have the same resolution on every screen.
    thx in advance

    I  Reformatted the CF card  on the new computer   it works fine now on the new Mac Pro
    Interesting point about  the low power  of the usb ports   I had to deal with all devices ejecting them selves  when the mac pro  was idle or slept  Drobo needed a Firmware update and another drives  needed  me  to change the sleep setting  or the Mac Pro   to never and  i also  had to deploy a  script to write to each device  ever minute,   this  kind  of sold the problem  with external Hard drives.   I wonder if the lowering  power  to a CF card   can eject  it  in a manor  which would make the  computer  think it is corrupt.
    I have looked at  buying a power usb Hub    but seems only one or two  of the ports are powered. 
    Seems to be a bit problem with the mac pro especially  as everything has to be connected externally  
    Will assume the Firewire Connector does not work.

  • HT1918 problem with changing the payment information

    I've got a problem with changing the payment information !!
    when I change them and I followed the instruction , and when I click done
    it says " for assistance, contact iTunes support at " the link " . and nothing
    change , so what should I do ?

    Hi Bart,
       The description of the field VBKD-BSTKD will appear in sales order (VA01/02/03) Header  Order data tab.
    If you notice the text for below one it is PO Number where Number starts with upper-case N and it iis not the one which you changed.
    Also this is a hyperlink to sales header order data screen.
    You need to enhance the code via sales exit to fix this.

  • Toshiba sattelite pro ( SPM30 ) problem with black screen and white cursor

    I have a toshiba SPM30 from a friend and I couldn't succed to resolve the problem with black screen and white cursor.I can enter in bios using F2 and I can use F12 but is not booting, I have some CD and DVD with Win Xp but it seeams that is not booting.I've traied to change the order in boot order: first CD/DVD and after HDD but still is not working...I saw that a HDD I can see details about it but at CD/DVD I can't see...I think that the CD/DVD is not working( but I can see the light and hear the sounds when I put a bootable CD or DVD)...Please, if someoane can help me......( byt the way I've traied to remove the bios battery and still is not working...)

    Try f8 and try the repair your computer options
    This explains advanced start up options:
    http://windows.microsoft.com/en-us/windows/advanced-startup-options-including-safe-mode#1TC=windows-...
    This explains start up repair:
    http://windows.microsoft.com/en-us/windows/startup-repair-faq#1TC=windows-7
    A system disc can be used for these repair options also, in your case if the DVD drive is not working you can use an external dvd drive if you have one.
    S70-ABT2N22 Windows 7 Pro & 8.1Pro, C55-A5180 Windows 8.1****Click on White “Kudos” STAR to say thanks!****

  • Problem with Variable screen in WAD

    Hi ,
    I have a problem with variable screen in WAD , in the varable seen it is displaying only Key , it is not giving any description , but in BEX is is displaying both Key and Description , can any only have an idea why is this happening . this is occuring only for one variable , rest are working fine .
    Thanks,
    Abraham

    Hi Abraham,
    thsi could be a problem from the specisic setting of the infocube. Please check the BEx Settings from the infocube. You can find them by the following steps:
    - search for the infocube
    - doubleclick on the infocube
    - choose an specific infoobjekt
    - right mousebutton and click "specific dataprovider settings"
    - check if the right entries are set
    Hope this will help.
    André

  • Having problem with change of name in the datagrid Coding

    I am having problem with changing the name of the datagrid header text name for one of the data either in the flash file or the php file.
    The thing is i want to change the Course_Name to Course Name that has no underscore so that it will look nicer in the datagrid but if I change it in the php file like SELECT Course_Name as 'Course Name' ....., it will not turn out in the datagrid when I CTRL ENTER the flash file but the others like Price,description and display is shown.
    There is no problem with my php code but I do not know how to change the Course_Name into Course Name so please help me resolve this error that I am having.
    This is my flash code
      function goCourse(e : MouseEvent):void
      gotoAndStop(5);
      refreshResponder = new Responder (refreshSuccess, onFault);
      connection = new NetConnection ();
      connection.connect (gateway);
      dataDG.addEventListener (Event.CHANGE, gridItemSelected);
      refreshData (true);
      function gridItemSelected (e: Event): void {
      ID = e.target.selectedItem.ID;
      courseTxt.text = e.target.selectedItem.Course_Name;
      priceTxt.text = e.target.selectedItem.Price;
      descTxt.text = e.target.selectedItem.Description;
      private function getParams () {
      var param: Object = new Object ();
      param.ID = ID;
      param.Course_Name = courseTxt.text;
      param.Price = priceTxt.text;
      param.Description = descTxt.text;
      return param;
      private function refreshData (refresh: Boolean): void {
      if (refresh)
      connection.call ("Course.viewCourse", refreshResponder);
      private function refreshSuccess (result: Object): void {
      dataDG.dataProvider = RecordSetDP.toDataProvider (result);
         dataDG.columns = ["Course_Name","Price","Description","Display"];
      private function onFault (fault: Object): void {
      trace (String (fault.description));
    This is my php file code.
      function viewCourse()
      $this->connect();
      $sql = "SELECT Course_Name,Price,Description,Display
      FROM coursetb";
      return mysql_query($sql,$this->_connection);

    i don't see where you're calling your php file in your code, but change 'Course Name' to 'Course_Name' (or vice-versa) there.

  • Problem with SAP Screen

    Not sure if this is the correct forum.
    Okies, a user of mine has a problem with her SAP screens. It seems that she can't view the full screen of CJ20N She has to drag the window bigger to be able to see the content. She uses this window in a split monitor view, i.e. some of the applications are displaying on the laptop window while other applications display on the monitor.
    Details of her SAPGUI:
    Release 640 Final
    File version: 6404.4.16.1015
    Build: 774474
    Patch Level : 16
    Do note that her primary monitor (notebook) is always set to 1280x800 and the secondary monitor is set to 1024x768. Anyone encounter this problem before?

    Hi,
    This is problem with windows screen resolution. Better to use, maximum supported window size and make sure to use same size for both the screens.
    Regards,
    Ganesh

  • Problem with matrix/screen in Qosmio F55-Q502

    Hello
    For a few weeks I have strange problem with matrix/screen in my laptop.
    The matrix flickers very often - no matter if power cable is plugged or not.
    The screen is full bright and suddenly it starts to blink - it is getting darker, than lighter, usually for few/dozen seconds. It does it when nobody touches it or when I work on it.
    It very annoying and making eyes tired - it does it very quickly and there are few levels of screen brightness.
    Moreover sometimes the screen turns off - You can see what is on desktop but the screen is very very dark (but not blank or completely switched off). It happens without any reason - sometimes just in the middle of working, sometime for example when I touch (not pull) the power cable between laptop and power supply.
    Then, the only way to get back to normal brightness of screen id to close the lid just for half a second and open it
    - matrix lights then normally, but can "turns off" moment later and I must do it once again - sometimes even few times..
    After "action" with lid screens seems like nothing ever happen..
    Does anyone have idea what is the cause of such behaviour or how to diagnose it in details?
    Or maybe solve this problem?
    Best regards
    300m

    Sounds like the Backlight or Inverter is failing or there is a loose connection.
    Is the unit under warranty? Send it to an ASP for repair.
    You should avoid repairing it yourself, the backlight is very high voltage!

  • X220:Graphics problem with full screen videos

    I have got my X220 laptop last month. I am facing problem while playing youtube videos full sceen.
     videos can be seen best with smaller window but there is major graphics problem with full screen.
    Can someone help on this?
    I am using Windows 7 Enterprise edition.
    Thanks

    what do you mean by major graphics problem, please elaborate.
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

Maybe you are looking for

  • IPod not recognized by Windows Xp.. Out of ideas

    I've had my iPod for about a year now.. I've never been able to operate it off of my computer, yet it works fine on any other computer I've used it on.. I can charge it off of my computer.. My iTunes- I can download music/movies fine.. Listen to them

  • NullPointerException while running the page from jdeveloper

    Hi , I am getting following Exception while Running the OAF page in Jdeveloper after downloading from the server which is working correctly (in the instance). Can you please help to resolve this exception. Error Page Exception Details. oracle.apps.fn

  • Confusion in FILTER and SORT operations in the execution plan

    Hi I have been working on tuning of a sql query: SELECT SUM(DECODE(CR_FLG, 'C', NVL(TOT_AMT, 0), 0)),        SUM(DECODE(CR_FLG, 'C', 1, 0)),        SUM(DECODE(CR_FLG, 'R', NVL(TOT_AMT, 0), 0)),        SUM(DECODE(CR_FLG, 'R', 1, 0)),        SUM(DECODE

  • Adobe Updater

    Hello, We currently have a big problem regarding Adobe Updater that comes with Adobe Acrobat 9.1, which relates to our network connection. When the adobe updater program runs on a computer with admin privileges, it tries to connect to akamai.mel.paci

  • My iMac getting old?

    Hi, I have sensed that my iMac is suffering a number of fatiques that maybe related to being old.  But I had higher hopes for apple product, so it disappoints me. 1. my wireless connection:  It is intermittently hanging.  After some time of use, it w