Based on the same Page of each tab and don't delete. Need help!

[UPDATED BELOW WITH THE SOLUTION]

The best way I can describe what I'm trying to achieve is the native music BB10 application navigation structure.

Once you click on a track, you have to push the "Now Playing" view, and then that you go back to the navigation of your library, you can return to this view via a thumbnail image in the title bar. Of course, the view is not destroyed, that the page is running the music. But as you will see, this miniature in the title bar can be found in all the tabs and push the view "Now Playing" no matter what tab, you're in.

I find it impossible to reproduce. I have a NavigationPane in each of my tabs, and maintain a single instance of the "Now Playing" view in the variant of nowPlayingView property. All seen below in my main.qml file:

import bb.cascades 1.0

TabbedPane {
    property variant nowPlayingView: nowPlayingComponent.createObject()
    Tab {
        id: tab1
        NavigationPane {
            id: navPane1
            FirstView {
            }
        }
    }
    Tab {
        id: tab2
        NavigationPane {
            id: navPane2
            SecondView {
            }
        }
    }
    Tab {
        tab3
        NavigationPane {
            id: navPane3
            ThirdView{
            }
        }
    }
    Tab {
        tab4
        NavigationPane {
            id: navPane4
            FourthView{
            }
        }
    }
    attachedObjects: [
        ComponentDefinition {
            id: nowPlayingComponent
            source: "NowPlaying.qml"
        }
    ]
}

Then, all pages, it is easy to access the nowPlayingView and push it through the respective navPane. The code below is from FirstView.qml which is in tab 1.

navPane1.push(nowPlayingView);

The problem is that I can successfully push this nowPlayingView one of the tabs, as long as it's the first time. So if I push everything first using navigationPane of Tab1, I am unable to shoot from all others, but it can grow as many times I want again on Tab1. The same applies if I pushed first view of the Tab2.

How can I push this view of one of the tabs, while not to delete the page each time it is released. Please, please, any help would be appreciated. Just check out the music app native bb10 to understand the flow of navigation that I try to imitate. And as I understand it, it is not possible to use a single navigationpane for all tabs.

Thank you!

[CODE WORK] thanks to Zmey!

QML, before pushing the view I must remove its previous parent by calling on C++.

app.removePageParent(mediaView);
navPane.push(mediaView);

Using this helper function from C++ to remove the parent of the page

void ApplicationUI::removePageParent(QObject *o) {
    //qDebug() << "removing page parent";
    o->setParent(NULL);
}

It will be for some reason doing two "back" button when you press the view again (bug sdk). To resolve this issue, manually set the back button.

paneProperties: NavigationPaneProperties {
        backButton: ActionItem {
            onTriggered: {
                mediaView.parent.pop()
            }
            title: "Back"
        }
    }

I hope this helps someone! All creds to Zmey!

Hello

push() method description mentions that the parent of the page must be null or NavigationPane to which the page is pushed in.

Try setting page.parent to null before pushing the page (this also can be done in NavigationPane onPopTransitionEnded).

UPD: it did not work because the parent is readonly in QML. We had to make a C++ helper function and use setParent().

Tags: BlackBerry Developers

Similar Questions

  • After IR search filter, see the same page

    Oracle Apex IR 5.0

    After filtering has been done to the desired result, if I click on the button REFRESH then normal page should look similar to the first image

    1.png

    2.png

    Hi Pranav.shah,

    Make the work of the "Redirect Page in this Application" button.

    Give the same page number.

    And in the section to clear the Cache, type "IRC".

    I hope this helps!

    Kind regards

    Kiran

  • Let me know if there is an option to differentiate is with the color of the tab or return background color tab. I use to open differrent pages on the same site in different tab or window, in order to identify each i

    Let me know if there is an option to differentiate is with the color of the tab or return background color tab. I use to open differrent pages on the same site in different tab or window, in order to identify each...

    Try:

  • How to set preferences so that open new tabs to the same page that activates when the command-T has been affected?

    By opening a new tab, the default tab opens to thumbnails based on recent history. The Safari, I want the new tab to open * to the same page, as was active when command-T was hit *. What are the specific actions, to set the default value (preference), new pages to open 'same page '? ('Same page' is check in Safari preferences box).

    Note, I've sailed available Support of Mozilla and using about: config have reset browser.newtab.url so that the new tab appears empty (stop followed recent history for this purpose).

    Note, most importantly, I found this article of Support Forum, which, although written challenge, gave me a temporary solution:

      * https://support.mozilla.org/en-US/questions/891635
    

    (The temporary solution for the Mac OS is to command-click the icon 'Reload current page' in the url/address box in the browser toolbar, which opens a new tab in the same window).

    However, I would like to define this as a preference permanent and would ask someone give me a solution. Cheers, teacher

    LeProf_7272 wrote:

    if I can possibly just create a new config line
    

    You can't, that's why I suggested the modules above. There is no option in the user interface or preferably hidden in Firefox that can duplicate a tab whenever you open a new tab browser.newtab.url can only be set to a fixed address, what address is to be opened in the current tab.

    Are the only two built-in methods to duplicate a tab:

    1. Hold down the Option key and drag the tab to a new position on the tab bar.
    2. Hold down the command key and click the reload of the address bar.

    You can make feature requests by filing development bug reports or by opening the Help menu by clicking on your comments.

  • Two tabs of the same page

    Hello
    I have spent all morning trying to find a solution to this problem, but have not found by myself or the analysis of forum posts.

    I am building an application with a level tab two for navigation.
    It's all right as long as the pages referenced by the tabs contain a different number.

    My problem is that I use the same page dynamic (say 40) to be used via two different tabs.
    for example Parent tab is labeled "Parent".
    Two other tabs are created related to parent tab 'Parent' and those labeled "Action1" and Action2.
    By selecting "Action1" will result in return of the 40 with a parameter page (say page_type) is set to 1.
    By selecting "Action2" will result in rendering the * same * page 40 with a parameter (say page_type) has a value of 2.

    For the parent tab 'Parent' say that the default is to select "Action1".

    Is there a solution to implement this kind of behavior?
    I tried to create redirect pages (empty page and one branch) to achieve, but I always get stuck trying to have page 40 display the appropriate tabs and tab parent.
    Thanks in advance for any help.
    Daniel

    Hi Daniel,.

    First of all, don't worry about your English - it's better that my French (in fact I didn't even know you were not English until I checked your profile!)

    Second, there may be a way to manage the definition of value. As long as your instructions of doSubmit() problem tabs, which sets a REQUEST , then it can be captured - see: Re: trying to find my tabs in my browser sql tree as a result, you should be able to put any value you like. I did have the chance to set up an example of this, but I hope, that should give you an idea of what can be done.

    You will always have the issue of not being able to click on each tab, once you have clicked on one of them - but I guess that the user is not likely to do it anyway?

    Andy

  • How to set up the 'new window' tab to open the new window as the same page

    How to configure the tab 'new window' to open the new window on the same page?

    Clone of extension of the window - will also Clone a tab:

    http://www.Pikey.me.UK/Mozilla/?addon=CW

    Clones the current tab's address and history into a new window when the New Window command is used (and optionally into a new tab when the New Tab command is used).
    

    Compatible with Firefox 9.0. *

  • Why are on the first web page are buttons and following pages Don t-shaped? All Pages are based on the same Masterpage.

    Hello

    I ve a problem with Muse.

    Why are on the first web page are buttons and following pages Don t-shaped? All Pages are based on the same Masterpage.

    Any ideas?

    Stefan

    Hello Stefan,

    Could you please share your with us .muse file to study? Please send it to [email protected]. If your file is larger than 20 MB, you can use something like Adobe SendNow SendThisFile or Dropbox. Don't forget to mention the link to this forum thread in your email so that we can identify the file.

  • Same page, two regions based on the same conflicts taskflow

    I have a page and I understand two regions based on the same workflow, at the start of region renderes ok, but then they don't are never refreshed, it seems like a conflict.

    I hope you can help me, thanks and sorry for my English...

    Published by: Jocelyn on 2012-ene-18 09:13

    Hello

    Well, I don't understand the question "no refresh" you mention. However, you did it that the workflow is isolated and does not share its DataControl? If you share the DataControl then region 1 and 2 show the same data and are just one and same.

    Frank

  • Several resources working on the same page ADF / same application

    Hello

    Sorry this is perhaps a fundamental question for some of you. But I really need experts.

    First question is:

    I'm working on JDEV 11.1.1.3.0 developing ADF UI. In one of my page, I have 12 tabs and around 6 pop-up windows. This is a page that some complex. So we can distribute the same application and the same page different resources and allocation of development different tabs? If Yes, then how we can merge?

    Second question is:
    I'm really curious to know how the major projects of the ADF are developed?

    Thank you
    MC

    A way to divide the work is to use fragments of the page inside the taskflows for each tab.
    Then, each developer can work on her page fragment, and in the end you just add these taskflows as a region to your homepage.
    Of course, you want to also use a central Subversion (or other SCM system) repository to synchronize the work on your project-level files.

  • Navigate from two different master on the same page of detail pages

    Hello. IM using JDev 11.1.1.1.0 JDEVADF_11.1.1.1.0_GENERIC_090615.0017.5407. Fusion Web application.

    I have two ViewObjects based on an entity unique entity1 and each VO has another value where clause. First, I create a master VO1-based view and a page of details based on the same VO1. Navigation works very well using a link in the pharmacokinetics of the selected line and using setCurrentRowWithKey.

    Then I created a view of second master page based on VO2 and to enable navigation to the page of detail based on VO1. I thought that the key is the same (entity has a PK a column and the same VO1 and VO2) but when I tried browsing with setCurrentRowWithKey or setCurrentRowWithKeyValue does not work.


    Can anyone provide steps to achieve this? Is it possible to do?

    Thank you.

    Hello

    You might be using the method setCurrentRowWithKey of VO2, if so, try to use the method setCurrentRowWithKey VO1 (on which detail page is based)

    Jean Lou

  • 4.3 pages: how to print files of different text on the same page at the same time?

    This concerns 4.3 Pages, I prefer.

    I have written two different books, both with notes - one with a lot of notes.

    I would like to print them both, at the same time, on a single page legal-size, 8 x 14. I can get.

    I did this time in divvying up toward the top of the page itself and by running the paper into the printer twice - once for the top the half and, again, once for the lower half. It worked very well... but my printer is becoming tired! (former HP).

    Recently, I tried to print the most complex book on top, with all the heavy notes, in a 'box' above. I managed to get this set only to discover that you are unable to print notes in a text box! Curses.

    Unfortunately, through the raggedy of the time evolution, these books are more than a length. However, I know that I can squeeze and tweezers to them by giving them different sizes and depths of the page. Certainly, foreign and unknown.

    Why the question is: is it possible to print simultaneously two different files (texts not only) on the same sheet of paper? Each of these texts has notes.

    Hi aws.

    4.3 pages. It will work for you?

    A single page with two columns

    Insert a column break between the two versions. Notes appear on the same page.

    Kind regards

    Ian.

  • Cannot open in a page Web, on the page of the Bank opens a new tab and indicates that the site has moved here, but when you click on the button here it still does nothing

    When I go to internet banking as a clydesdale, it opens a new page to connect, but a few days ago it stopped working with the new update. Now when I click on connect, it says "FOUND the document pushed here." and clicking here opens another page of connection, but after being entered the details the page doesn't load. the same thing happens on other sites, on the other, when I click to read the messages page does nothing, and if I click to open in a new tab the same page is displayed instead.

    GundamGirl said

    Theres been other people having this problem too...

    Yes, for example, that this person- https://support.mozilla.org/questions/1078226 -, but they did not post cost around if any suggestion made a difference, I appreciate your following upward.

    Here are two other things to check:

    (1) connection settings - have they been customized?

    "3-bar" menu button (or tools) > Options > advanced

    Click the mini network, and then click the settings button

    The default value of 'Use system proxy settings' should follow your 'LAN' setting, as well as IE, but you can also try 'No proxy' to see if that makes a difference.

    (2) extensions - test Firefox to turn off Safe Mode

    Firefox Safe mode is a standard diagnostic tool to disable some advanced features of Firefox and extensions. More info: questions to troubleshoot Firefox in Safe Mode.

    Does not work if Firefox: Hold down the SHIFT key when you start Firefox.

    If Firefox is running: You can restart Firefox in Mode safe mode using either:

    • button "3-bar" menu > "?" button > restart with disabled modules
    • Help menu > restart with disabled modules

    and OK reboot.

    Two scenarios: A small dialog box should appear. Click on 'Start mode safe' (not update).

    Any improvement?

  • How can I open now two copies of the same page

    As a shortcut to business I cut and paste a copy of one web page to another copy. The new feature does not allow two copies of the same page. Is there a way to force the two copies?

    • Press the SHIFT key while an entry in the drop-down list is highlighted to disable 'Switch to the tab' and see the URL.
    • Use the right arrow to select an element marked as switch to tab in the menu drop-down and copy the URL in the address bar.
    • Open the URL in a new tab using Alt + Enter on the highlighted entry.
    • Open the URL in the current tab by using shift + enter on the highlighted entry.
  • I don't see pictures to the owner/documents without opening each file individually. I just see the same image of a mountain and the Lake for each file.

    I don't see pictures (jpeg images) to the owner/documents without opening each file individually.  I just see the same image of a mountain and the Lake for each file.  When I look in windows XP, the JPEGs under 'my computer' and select 'film' or the 'miniature' I can see the image.  Why can I not see the image using Vista?

    I don't see pictures (jpeg images) to the owner/documents without opening each file individually.  I just see the same image of a mountain and the Lake for each file.  When I look in windows XP, the JPEGs under 'my computer' and select 'film' or the 'miniature' I can see the image.  Why can I not see the image using Vista?

    Start button > in the search box, type options records > press the Enter key > click on view tab > uncheck " always show icons, never thumbnails " > click OK for the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.

  • Is there a way to create a button etc to get different views of the same page?

    I have a page full of product images and wants to give the viewer an option to choose the size of the images on the page. So far, I just had two different pages with the same images and created a hyperlink button to switch between views. The reason why I want to get the two points of view on the same page, is I want to use the same name for each page. Muse won't let me create two pages with the same name, so now I have a parent page "Products" (with large images) and its child page "products 2" (with the small images) with a hyperlink linking them. "» This also creates a problem in the menus, since the 'product 2' does not have the active menu bar.

    I have the same problem with the creation of the site in different languages. I would like to make a simple drop-down list with options "Suomi" and "English". What I have to create two different sites in two different languages and have just the hyperlink connect for example home pages?

    Thanks for the tips!

    You can use any number of widgets to create online pop-overs / hover pods / galleries. Lightbox to the ToolTip, anything is possible. The language issue to indeed create individual sites and crosslink them.

    Mylenium

Maybe you are looking for