How to 'persist' State of the screen?

Hello

Sorry if this question has been asked before, but I have not found all the relevant information.

Here's my problem. I have a WebWorks app built with BBUI.js. On the first screen, there are search features, after the search, the list of issues is presented to the user. Once the user clicks on an element, new screens open with additional information. Pretty simple IMO approach. However, when I press the back button, the screen below (first screen) is in its initial State - no search results, even no search word in the search field.

Is - this how WebWorks/BBUI is supposed to work or I do something wrong? How can I "persist" the State of the screen, so that when the user clicks the back button they can see the results of the research?

Thank you!

Hello

I do not think that you are doing something wrong here, it is the way in which bbUI.js was built. To do this, States not currently cache/persist/etc screen when you switch between tabs.

The best way I can think off the top of my head would be for you to cache manually the current view (localStorage is always fast and easy to use), then screen that hides the view when the user clicks on the new tab.

Tags: BlackBerry Developers

Similar Questions

  • How can enlarge everything on the screen to 125% or even 150% as you can do in Google?

    How can enlarge everything on the screen to 125% or even 150% as you can do in Google?

    CTRL + will enlarge the page.

    You can set also permanently this by installing the NoSquint add-on.

  • How can I see on the screen, if the caps lock key is in upper or lower case when you complete passwords?

    Original title: Confirmation screen.

    How can I see on the screen, if the caps lock key is in upper or lower case when you complete passwords?

    Hi WalterAshton,

    You are welcome.

    If you want to provide feedback to the development team of Windows, visit the Microsoft Web site below:

    http://www.Microsoft.com/en-us/Windows/compatibility/en-us/CompatCenter/feedback

  • How can I turn off the screen on W4 - 820 without putting it to sleep?

    Whenever I press the power button, the Tablet goes to sleep. I know what is happening because, in the power options > power settings button > sleep is selected to "on battery" and "on".

    The question is how can I just disable the screen without leaving the tablet to go into a deep sleep? Its a big problem and really frustrating that it stops all make... even a break torrentz copy of data and breaks.

    Also I went into the settings advanced under power options and tried to change the settings "turn off the display of", but whatever number I put here, the same is my settings "sleep after".

    I don't know how to solve this problem. Can someone please? Thanks in advance!


  • How can I get to the screen to insert the DNS settings? Printer continues to fall from the network

    Windows 7

    Photosmart 6520

    How can I get to the screen to insert the DNS settings? Wireless network printer continues to fall.

    The screen to manually set the DNS and IP parameters is in the SAP, or shipped to the printer Web server.  To access this page, it will take the IP address of the printer.  This information is found by pressing the icon on the front of the Photosmart 6520 wireless.

    Once again, we have the IP address, and then they could type this information in the address bar of their favorite browser.

    On another thread, you have mentioned the difficulties getting to the Web integrated printer server.  It is possible that the printer has a valid IP address, but still has no "communication" with the router.  Have you tried to enter the menu of the 6520 wireless and default network selection.  After having done that, then we can re - run the Wireless Setup Wizard in the wireless menu to reconnect the printer to the network.

    With this new valid IP address, you can access SAP of the printer?  In addition, make sure that the printer and the PC are connected to the same network access point.  Let me know how it goes.

  • How can I print just the screen that I'm looking?

    • How can I print just the screen that I'm looking? CTRL + P doesn't (I have WIndows Vista)

    auntjilly wrote:

    * How can I print just the screen watching you? CTRL + P doesn't (I have WIndows Vista)

    Two ways:

    (1) by design, as it has always been with all versions of Windows, press copy the entire screen, including the wallpaper desktop, in the Clipboard (iow, in RAM).  By pressing + of only copies the active window to the Clipboard.  To view the screenshot, open a graphics program, such as MS Paint and press + V.  This will paste the contents of the Clipboard (your screenshot) in the file open and allows you to view or save it as a file for later use.

    How to capture screenshots in Windows by using the print screen key
    http://support.Microsoft.com/default.aspx?scid=kb; us; 173884

    (2) as long as you have a newer version of Vista as the Home Basic edition, you can use the Snipping Tool.  (Start > all programs > Accessories).

    Bruce Chambers

    Help us help you:
    http://www.CatB.org/~ESR/FAQs/smart-questions.html

    http://support.Microsoft.com/default.aspx/KB/555375

    They who can give up liberty to obtain a little temporary safety deserve neither liberty nor safety. ~ Benjamin Franklin

    A lot of people could die rather that thinking; in fact, most do. ~ Bertrand Russell

    The philosopher never killed the priests, while the priest killed a large number of philosophers.
    ~ Denis Diderot

  • How can I turn off the screen of welcome in PS CC 2015

    How can I turn off the screen of welcome in PS CC 2015?

    Edit > Preferences > General: check "don't show welcome screen on launch.

  • How to display data on the screen and save the data in a file at the same time?

    The code can display acceleration on the screen of the playbook.

    But, when fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ") runs, debug displays no source available.

    ??

    Does anyone know how to solve the problem, which writes data to a file?

    The code is below.

    /*
    * Copyright (c) 2011 Research In Motion Limited.
    *
    Licensed under the Apache License, Version 2.0 (the "license");
    * You may not use this file except in compliance with the license.
    * You can get a copy of the license at
    *
    www.Apache.org/licenses/license-2.0
    *
    * Unless required by the applicable law or agreement written, software
    * distributed under the license is distributed on an "AS IS" BASIS.
    * WITHOUT WARRANTIES OR CONDITIONS of ANY KIND, express or implied.
    * See the license for the specific language governing permissions and
    * limitations under the license.
    */

    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include
    #include

    /**
    The milliseconds between the accelerometer readings. It's the same thing
    * rate in which the accelerometer data will be updated
    * material. The update of material rate is below to help
    * accelerometer_set_update_frequency (FREQ_40_HZ).
    */
    public static const int ACCELEROMETER_MAX_POLL_INTERVAL = 25;

    public static screen_context_t screen_ctx;
    public static screen_window_t screen_win;
    dialog_instance_t main_dialog = 0;

    paused int = 0;

    The forces of the accelerometer
    float force_x, force_y, force_z;

    file elements
    int _logcounter = 0;
    FullName Char [256];
    FILE * f;

    /**
    * Use the PID to set the id of Group window.
    */
    public static char
    get_window_group_id()
    {
    public static char s_window_group_id [16] = "";
    If (s_window_group_id [0] == '\0') {}
    snprintf (s_window_group_id, sizeof (s_window_group_id), "%d", getpid());
    }
    Return s_window_group_id;
    }

    /**
    * Set up a basic screen, so that the browser will be
    * Send window state events when the State of the window changes.
    *
    * @return @c EXIT_SUCCESS or EXIT_FAILURE @c
    */
    public static int
    setup_screen()
    {
    If (screen_create_context (& screen_ctx, SCREEN_APPLICATION_CONTEXT)! = 0) {}
    Return EXIT_FAILURE;
    }
    If (screen_create_window (& screen_win, screen_ctx)! = 0) {}
    screen_destroy_context (screen_ctx);
    Return EXIT_FAILURE;
    }
    use of int = SCREEN_USAGE_NATIVE;
    If (screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_USAGE, & use)! = 0) goto fail;
    If (screen_create_window_buffers (screen_win, 1)! = 0) goto fail;
    If (screen_create_window_group (screen_win, get_window_group_id())! = 0) goto fail;
    buff screen_buffer_t;
    If (screen_get_window_property_pv (screen_win, SCREEN_PROPERTY_RENDER_BUFFERS, (void *) & buff)! = 0) goto fail;
    buffer_size int [2];
    If (screen_get_buffer_property_iv (buff, SCREEN_PROPERTY_BUFFER_SIZE, buffer_size)! = 0) goto fail;
    int attributes [1] = {SCREEN_BLIT_END};
    If (screen_fill (screen_ctx, chamois, attributes)! = 0) goto fail;
    int dirty_rects [4] = {0, 0, buffer_size [0], buffer_size [1]};
    If (screen_post_window (screen_win, buff, 1, (const int *) dirty_rects, 0)! = 0) goto fail;
    Return EXIT_SUCCESS;
    in case of failure:
    screen_destroy_window (screen_win);
    screen_destroy_context (screen_ctx);
    Return EXIT_FAILURE;
    }

    /**
    * Rotates the screen at the specified angle.
    *
    @param angle angle to rotate the screen.  Must be 0, 90, 180 or 270.
    *
    * @return @c EXIT_SUCCESS on success, to another @c EXIT_FAILURE
    */
    public static int
    rotate_screen (int angle)
    {
    If ((angle! = 0) & (angle! = 90) & (angle! = 180) & (angle! = 270)) {}
    fprintf (stderr, "Invalid Angle\n");
    Return EXIT_FAILURE;
    }
    int rc;
    int rotation;
    RC = screen_get_window_property_iv (screen_win, SCREEN_PROPERTY_ROTATION, & rotation);
    If (rc! = 0) {}
    fprintf (stderr, "error getting the window of the screen rotation: %d\n", rc);
    Return EXIT_FAILURE;
    }
    int size [2];
    RC = screen_get_window_property_iv (screen_win, SCREEN_PROPERTY_BUFFER_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error getting size memory buffer window screen: %d\n", rc);
    Return EXIT_FAILURE;
    }
    int temp;
    switch (angle - rotation) {}
    case - 270:
    case - 90:
    decision 90:
    case 270:
    Temp = size [0];
    size [0] = size [1];
    size [1] = temp;
    break;
    by default:
    break;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_ROTATION, &angle);)
    If (rc! = 0) {}
    fprintf (stderr, "screen rotation window for parameter error: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window screen size: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_SOURCE_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window screen size: %d\n", rc);
    Return EXIT_FAILURE;
    }
    RC = screen_set_window_property_iv (screen_win, SCREEN_PROPERTY_BUFFER_SIZE, size);
    If (rc! = 0) {}
    fprintf (stderr, "error creating window buffer size of the screen: %d\n", rc);
    Return EXIT_FAILURE;
    }
    Return EXIT_SUCCESS;
    }

    /**
    To manage an event of navigator.
    *
    * @return @c the value true if the application should shut down, another fake.
    */
    public static bool
    handle_navigator_event(bps_event_t *Event)
    {
    bool should_exit = false;
    switch (bps_event_get_code (event)) {}
    case NAVIGATOR_EXIT:
    should_exit = true;
    break;
    case NAVIGATOR_ORIENTATION_CHECK:
    navigator_orientation_check_response (event, true);
    break;
    case NAVIGATOR_ORIENTATION:
    {
    int angle = navigator_event_get_orientation_angle (event);
    If (rotate_screen (angle) == EXIT_FAILURE) {}
    should_exit = true;
    }
    navigator_done_orientation (Event);
    break;
    }
    }
    Return should_exit;
    }
    /**
    * Display an alert dialog box that contains the location data.
    */
    public static void
    show_main_dialog()
    {
    If {(main_dialog)
    return;
    }
    dialog_create_alert(&main_dialog);
    dialog_set_alert_message_text (main_dialog, "Acceleration to first fix");
    dialog_set_size (main_dialog, DIALOG_SIZE_FULL);
    dialog_set_group_id (main_dialog, get_window_group_id());
    dialog_set_cancel_required (main_dialog, true);
    dialog_show (main_dialog);
    }

    /**
    * Displays geolocation data in the main dialog box.
    */
    public static void
    display_acceleration_data (float force_x, float force_y, float force_z) {}
    char buf [1024];
    snprintf (buf, sizeof buf,
    "\tX: m\n % 7.3.f.
    "\tY: m\n % 7.3.f.
    "\tZ: m\n % 7.3.f."
    force_x, force_y, force_z);
    dialog_set_alert_message_text (main_dialog, buf);
    dialog_update (main_dialog);
    }

    void createafile() {}
    sprintf (fullname, "shared/documents/Raw-%d.txt",_logcounter);
    {if(f==null)}
    file does not exist
    f = fopen (fullname, "r");
    {while(f!=null)}
    file exists
    fclose (f);
    ++ _logcounter;
    sprintf (fullname, "shared/documents/Raw-%d.txt",_logcounter);
    f = fopen (fullname, "r");
    }
    }
    }

    write data to the file
    void writedataintofile() {}
    f = fopen (fullname, "w");
    fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ");
    fprintf (f, "" 7% 7% .3f, .3f, %7.3f\n ', force_x, force_y, force_z ");
    fclose (f);
    }

    /**
    * A sample application shows the native APIs of BlackBerry for accelerometer.
    * The example initializes and reads the accelerometer periodically until one
    * NAVIGATOR_EXIT event is received.
    Enforcement also tuned to changes status window in the browser so that
    * It can stop reading the accelerometer when the application is no longer visible.
    */
    int main (int argc, char * argv {})
    bool exit_application = false;
    /*
    * Until we can listen for events from the BlackBerry Tablet OS platform
    * services, we need to initialize the BPS infrastructure
    */
    bps_initialize();
    /*
    * Once the BPS infrastructure has been initialized, we can save to
    * events of different services of BlackBerry Tablet OS platform. The
    * Browser service manages and provides the life cycle of application and
    * events of visibility.
    For the example, we ask browser events so that we can follow when
    * the system ends the application (NAVIGATOR_EXIT event). This allows to
    * us to clean up resources in the application.
    */
    navigator_request_events (0);
    dialog_request_events (0);
    /*
    * Initialize the screen so that the Windows Id is correctly set, to allow
    * dialogs to display.
    */
    If (setup_screen()! = EXIT_SUCCESS) {}
    fprintf (stderr, "Failed to initialize the screen.");
    Exit (-1);
    }
    /*
    * Once the BPS infrastructure has been initialized, we can save to
    * events of different services of BlackBerry Tablet OS platform. The
    * Browser service manages and provides the life cycle of application and
    * events of visibility.
    *
    For the example, we ask browser events so that we can follow when
    * the system ends the application (NAVIGATOR_EXIT event).
    *
    * We ask events of dialogue so that we can be notified when the service of dialogue
    * answers to our queries/requests.
    */
    If (BPS_SUCCESS! = navigator_request_events (0)) {}
    fprintf (stderr, "error asking navigator events: %s", strerror(errno) (errno));
    Exit (-1);
    }
    If (BPS_SUCCESS! = dialog_request_events (0)) {}
    fprintf (stderr, "error asking dialog events: %s", strerror(errno) (errno));
    Exit (-1);
    }
    /*
    * Create and display the dialog box that displays the data from the accelerometer.
    */
    show_main_dialog();
    /*
    Prior to initialize the accelerometer function, we must ensure the unit
    * takes in charge
    */
    If (sensor_is_supported (SENSOR_TYPE_ACCELEROMETER)) {}
    /*
    * If the device does not support the accelerometer so warn the user,.
    * clean in and out
    */
    public static const int SENSOR_RATE = 40;
    sensor_set_rate (SENSOR_TYPE_ACCELEROMETER, SENSOR_RATE);
    sensor_request_events (SENSOR_TYPE_ACCELEROMETER);

    }
    /*
    * Initialize the accelerometer setting the rate at which the
    * accelerometer values will be updated material
    */
    accelerometer_set_update_frequency (FREQ_40_HZ);

    /*
    Treat browser events and take the accelerometer readings periodically
    * until we receive a NAVIGATOR_EXIT event.
    */
    createafile();
    f = fopen (fullname, "w");

    While (! exit_application) {}
    /*
    * By setting the timeout to bps_get_event to ACCELEROMETER_MAX_POLL_INTERVAL,
    * We assign the maximum duration (in millis) who will wait before
    * release so that we can take a reading of the accelerometer.
    */
    bps_event_t * event = NULL;
    bps_get_event (& event, ACCELEROMETER_MAX_POLL_INTERVAL);

    If {(event)
    If (bps_event_get_domain (event) is {sensor_get_domain()})
    /*
    * We woke up. See if we are in the paused state. If not,
    take a reading of the accelerometer
    */
    If (! pause) {}
    sensor_event_get_xyz (event, & force_x, & force_y, & force_z);
    display_acceleration_data (force_x, force_y, force_z);
    fprintf (f, "X (m/s2), Accel Accel Y (m/s2), Accel Z (m/s2) \n" ");
    fprintf (f, "" 7% 7% .3f, .3f, %7.3f\n ', force_x, force_y, force_z ");
    } //paused
    }
    / * If this is an event of the dialog box, determine the response code and handle
    * the event accordingly.
    */
    {ElseIf (bps_event_get_domain (event) == dialog_get_domain() {)}
    ;
    }
    /*
    * If it's a NAVIGATOR_EXIT event and then set the exit_application
    * indicator so that the application stops processing events, clean and
    * output.
    */
    {ElseIf (bps_event_get_domain (event) == navigator_get_domain() {)}
    exit_application = handle_navigator_event (event);
    }
    } //if event
    } //while
    /*
    * Destroy the dialog box, if it exists.
    */
    If {(main_dialog)
    dialog_destroy (main_dialog);
    }

    fclose (f);

    /*
    * Clean the infrastructure bps and output
    */
    sensor_stop_events (SENSOR_TYPE_ACCELEROMETER);
    bps_shutdown();
    screen_destroy_window (screen_win);
    screen_destroy_context (screen_ctx);
    return 0;
    } //main

    Hello

    As I said on your other thread:

    In order to write in the shared directory/documents, your application should request action "access_shared" and it must be granted by the user. Make sure you have

    access_shared

    in your bar - descriptor.xml.

    Also note that the shared documents folder may not be the best place to write the application log data. There is one connects / in the sandbox to this effect, or the application directory data / directory if the information should be persisted. The documents/shared/folder is designed for documents that the user creates or interacts with.

    HTH,

    Christian

  • Is there a way to control how information is loaded at the screen to stop the scrolling of screen and slow display response?

    I have two monitors (ATI Radeon bi-ecrans graphics card). The two monitors are identical Dell FS monitors. #2 load monitor views slowly and scrolls to the bottom of the screen. Monitor 1 loads quickly and does not scroll to the bottom of the screen. How can I get the slow one (#2) to behave like that fast (#1). Is there a setting in FireFox that controls how the information is uploaded to the adjustable monitor?

    Hi, sorry for this rant Doctordarryl independent.

    I don't think that Firefox is aware of your monitors in a way that would result in the page automatically scroll (or load faster or slower).

    Some users have identified problems on computers with switchable graphics (i.e., the computer can automatically switch between the graphics card Intel and ATI graphics card) which are solved by turning off the power so that Windows always uses the dedicated graphics card. You have this option?

  • How to disable Notifications for the screen?

    On my computer windows 8, I just get TOO MANY notifications of Skype to the screen, which ruined my gameplay. And that whenever "Ding" someone messages from the group. How can I disable the notification of the screen to slide on my screen?

    To change the settings for notifications:

    Drag from the right edge of the screen, and then tap Settings.
    (If you use a mouse, point to the lower right of the screen, move the mouse to the top, and then click settings.) Press or click Change PC settings, tap or click search and applications and notifications.

    See the notifications of these applications, set the app you want to turn on or off.

  • How can I turn off the screen saver in Windows Vista?

    How, under Vista, disable my screensaver?  I'm trying to update my tomtom gps device and the screen saver must be disabled for me to receive a long download!    How can I disable the screensaver on Vista?

    Hello

    Please contact the Microsoft Community.

    I wish that refer you to this article-

    http://Windows.Microsoft.com/en-us/Windows/turn-screen-saver-on-off#1TC=Windows-Vista

    Let us know if you have problems with Windows in the future.

  • How to add an on the screen "choose program to open with?"

    I have a user who is trying to edit an image with adobe illustrator 4 but it is not filling in the list.  They have this program on the pc, but it does not show in the drop down menu.  I thought that there was a way that you can "add a program" on the screen "choose a program to open with", I just can't remember how, or maybe I'm just out of it.  Am I right or wrong?

    Hello

    If you don't see the program you want to associate the file, you can click on browse, it will take you to program files. From there, you can scroll down to the appropriate program and associate.

    For more information, see this link:
    http://Windows.Microsoft.com/en-us/Windows-Vista/change-which-programs-Windows-uses-by-default

    It will be useful.

  • How to put icons on the screen clickable muliple

    Hello

    I need to put several clickable icons on the screen and at the bottom of the icons I have to put the text

    describe the function of the icon...

    for this I think field Bitmap, but I can't seem to understand how to display text (describe the function of the icon) at the bottom of the icon...

    Hello

    You can try that too
    http://supportforums.BlackBerry.com/T5/Java-development/transparent-ToolTip-like-default-on-button-f...

    Kind regards
    pp

  • BlackBerry smartphone how to remove notification of the screen?

    I have the BB Bold 9000, with the last update of facebook and os 5

    The problem is that I get notifications for facebook on the screen, but when I go to see the 'read' it not there no. I re - check the latest notifications and it cannot delete either.

    How can I make it go?

    OK, there was no notification no read in real, request of Inbox or a friend at all.

    To be more clear on the steps of the application.
    Go to the Facebook icon (mine was in the home folder to start)
    Click the BB
    Select move to folder
    Select Applications (built into the Applications folder and the only one that seemed relevant to the situation)
    Navigate to the Applications folder in the Home menu and select
    Open Facebook here
    Close Facebook with arrow to the left
    Point on Facebook
    BB-press
    Select move to folder
    Select Home
    Find Facebook and move into the House as you want; inaccurate unreads should be gone

  • How can I get around the screen of the user account?

    Original title: bypass the restore to the starting point

    Hello, recently, I chose to use the system restore and everything seems fine, except at the beginning: W7 boot computer and be ready to go.

    Now, computer displays a screen showing as the only user and I must press the space bar to get to W7
    How can I fix to bypass the screen of the user?
    (I'm talking the same screen you get when your computer was asleep and you open the lid to wake up).
    Thank you.
    Jmont_rose

    Hi Jmont_rose,

    Welcome to the Microsoft community. According to the description you want to bypass the login screen of the user.

    ·         You want to bypass the login screen and go directly to the desktop?

    If so, I suggest you follow these steps:

    (a) press Windows Key + R.

    (b) type control userpasswords2 in execution prompt and press enter.

    (c) uncheck users must enter a user name and password to use this computer.

    (d) click on apply.

    (e) enter your user name and password. Click OK two times.

    I hope this helps. Let us know if you need help with Windows related issues. We will be happy to help you.

Maybe you are looking for