Nav bar buttons navigating to last viewed page with in app ssction

I have a nav bar at the bottom of the app that is the same on all pages.
Each button is for a different section of the app.

How do I set it so that when you click a button on the nav bar it takes you to the last viewed page within that section?
1 person has
this question
+1
This topic is no longer open for comments or replies.
  • Hello Joe,

    Sorry I'm not sure I understand you correctly, could you please clarify what do you mean with "section of the app" and "last viewed page within that section"?
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • Hi Evgene,

    I'll explain in more detail.

    The navbar is visible on every page at the bottom has 5 buttons.
    These 5 buttons correspond to a 5 main sections.

    For example Twitters app has a navbar at the bottom with buttons that navigate to Timeline, Notifications, Messages and Me. These are what I previously referred to as 'sections'. When on the Timeline section if you click on a tweet it navigates to another page about that tweet, then on that page if the click the name of the person who has wrote that tweet it takes you to their profile. Now after doing that you use the nav bar to navigate to the Messages section of the app. Then if you use the nav bar to navigate back to the Timeline section the app navigates to 'the last viewed page within that section'. So in the example above you would navigate to the profile page that you had just been on, as that was the last page you were on within the timeline section.

    On my app I have 5 sections that can be navigated to using the nav bar. One of the buttons called 'Products' navigates to a page that contains a list component that is mapped to a database service, when a list item is clicked the app navigates to a information page about that list item (similar to clicking a tweet on twitter timeline). Now if i use the navbar to navigate away from the 'Products' section, and then later return back to the 'Products' section, the app navigates to the page with the list component. Instead I want it to navigate to the information page about the list item I had clicked before.

    This is needed so that if a user finds a product from the list and navigates to the information about that product, they can use other sections of the app and then when they return to the 'Products' section they won't need to search the list for the product again.

    does this make sense?

    Regards,
    Joe
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • Hi Joe,

    You can store current page for each section in separate LSV and then restore certain page.

    Here is an example workflow:

    1 When user navigate to "Notification" section in "notificationPage" lsv you store "notificList"(current page).

    2 When user choose one item from list - "notificItem" page will be loaded and "notificItem" stored in LSV.

    3 User navigates to other section.

    4 User navigates back to "Notification" section. App receive "notificationPage" lsv value and navigates to appropriate page.

    Regards.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated

  • Hi Yurii,

    Thank you, this helped a lot.

    For anyone else using this thread to accomplish the same - I had problems using the inbuilt 'back button'. It is a good idea to add your own button on the notifiItem page that navigates to the notificList page.
  • (some HTML allowed)
    How does this make you feel?
    Add Image
    I'm

    e.g. kidding, amused, unsure, silly indifferent, undecided, unconcerned happy, confident, thankful, excited sad, anxious, confused, frustrated