Referencing the navigationPane parent for push()

Hello

I have a NavigationPane with a QML external page as an attachedObject that I push on the screen after clicking on a button.  In the new page, I like to push an another QML external page (it's an attachedObject) on the navigationPane.  How can I reference the second page pushed NavigationPane?  Using the id does not work.  Here is a code:

NavigationPane:

NavigationPane {
    id: navigationPane
    Page {
        Container {
            Label {
                text: "First page"
            }
        }
    }    attachedObjects: [
        SecondPage {
            id: secondPage
        }

    ]
    // This gets called on a button click
    function pushSeconPage() {
        navigationPane.push(secondPage);
    }
}

SecondPage.qml

Page {
    Container {
        Label {
            text: "Second page"
        }
    }
    attachedObjects: [
        ThirdPage {
            id: thirdPage
        }
    ]
    function pushThirdPage() {
        // How can I reference the original navigationPane to push the
        // third page? This doesn't work...
        navigationPane.push(thirdPage)
    }
}

I tried to add ThirdPage as an attachedObject in the original navigationPane (rather than have defined it as an attachedObject in secondPage), but it doesn't work anymore.

Hello

Assign an id to SecondPage and it's parent will be the NavigationPane:

secondPageId.parent.push (thirdPage)

Tags: BlackBerry Developers

Similar Questions

  • Cannot save a bookmark to NEW folder - FF wants me to rename the EXISTING parent folder

    I can't save a bookmark in a new folder. This is the way that I take from the main menu:
    Bookmarks | Bookmark this Page
    Click on the drop down arrow to the right of the folder
    Select Choose
    Navigate to the folder parent in which I would like a new subfolder
    Click new folder
    Then, rather than create a new folder, as it has always done in the past, it will highlight the folder parent for editing. If I type a new folder name, the parent folder is replaced by the new name. A new subfolder is created with the name of the new folder.

    Things, I already tried that does * not * solve the problem:
    -Remove and then restore bookmarks from a file backup saved favorites.
    -Execution of the add-on "housekeeping."
    -Rebuild the database of "places".

    I have not yet reset Firefox or created a new profile but may try it if you gurus think it would help.

    I use FF 32.0.2 on Win XP SP3.
    I have hundreds and hundreds of bookmarks, but what I've read, there is no maximum size limit.

    Thank you in advance!
    Carol

    I thought about it! I kept scratching my head... whenever I tried to update, move or save a new bookmark, it moved very, very slowly. Sometimes, if I waited long enough, he would perform the action I wanted. But if I tried to push it along, it would have hard work (as described in my first post above). While it does take so long to manipulate and save the bookmarks file? It dawned on me... I recently set up sync with my mobile phone. So whenever I was saving a bookmark, Favorites file was also updated in Google sync account. Work with bookmarks has slowed down for an analysis! And it has destroyed my bookmarks file. No thanks, I can do without it. I disconnected Sync and immediately, my bookmarks and bookmark behavior are back to normal! Yay!

    Of course, I don't have my synchronized Favorites in Firefox on my cell phone, no more, but I can live without this until the process is improved.

  • What is the best way for this situation?

    Hi I have a xml file in my application. over a period of time, I have to add some nodes to the existing xml file.

    In my business logic when a particular condition is met I have to add a child node to the existing parent for an existing xml file node.

    What is the best way to do it? which api is best for this?

    Myriam wrote:
    DOM parser, we can parse the xml file but can write us in XML file?

    Sure. This is the opposite operation of analysis, and it is called "Serialization".

    The usual to serialize a DOM to a file is to create a transformer and to apply the transformation of identity for the DOM. However there are also third party XML serializers that do not take this approach.

  • Cannot show a TabbedPane pushing the NavigationPane

    I made a simple sample of TabbedPane. But it is strange that the TabbedPane screen could not shown after the NavigationPane shoot, while the TabbedPane screen showed the newspaper when onCreationCompleted successfully.

    Is anybody know what is wrong with my code? Thank you very much.

    hand. QML

    NavigationPane {    id: nav    Page {        Container {              ...              onTriggered: {
                       var page = tabbedPage.createObject();
                      nav.push(page);
                  }              ...
    
    attachedObjects: [        ComponentDefinition {            id: tabbedPage            source: "tabbedPage.qml"        }]
    

    tabbedPage.qml

    // Tabbed Pane project template
    import bb.cascades 1.0
    
    TabbedPane {
        showTabsOnActionBar: true
        Tab {
            title: qsTr("ABC")
            Page {
                id: tab1
                Container {
                    Label {
                        text: "Text ABC"
                    }
                }
            }
        }
        Tab {
            title: qsTr("123")
            Page {
                id: tab2
                Container {
                    Label {
                        text: "Text 123"
                    }
                }
            }
        }
        onCreationCompleted: {
            // this slot is called when declarative scene is created
            // write post creation initialization here
            console.log("TabbedPane - onCreationCompleted()")
        }
    }
    

    It is not possible to put a tabbedpane in a navigationpane. Go the other way. Have the TabbedPane as root your element

  • Action Script to add a node value parent for the top node

    I need to add a new value of the node parent to a hierarchy to the top node.  The script parameters to add a node is "Add | Version | Hierarchy | Node | Parent Node. Property sheet. "  I am at a loss on what to do for the top node because there is no node Parent above this level, but the settings ask him.  I have reviewed the manual and the manual of admin, but did not help.  Can someone help me?

    Thank you!

    You have the answer with you, do not be confused between the Parent node and the top node context, when adding a new node, the node of your Top will become your Parent node.

    ' Add | Version | Hierarchy | Node | Parent Node. Property of the worksheet.

    If you're still confused, just do the following.

    1. right click on the node of your top and add a new worksheet or node branch manually

    2. Once added, go back to the homepage-> Script

    3. Select the Type of Source in the paper transactions, and then select the newly added node and load

    4. in the lower part select Script-> download-> Download Action Script.

    5. open in a Notepad and use to create your new script.

  • Wink of the absent parent to redial VM?

    I have a Horizon view 6.1 auto, specialized clone pool related that I use to try a demo of AppVolumes. As part of the COP, I wanted to see what looks like the prompt on the VM parent update and pushing to the clones. To build the pool, I created a new virtual machine, took a snap and assigned this virtual machine as a parent, with the snap-snap- like image for the pool. Then I ran updates on the client and took a second glance. When trying to recompose the whole pool, or assigned machine (connected to) individual pool, the dialog box recompose gives only the snap of the image optionally. There is no error, but the new snap-in is not available as a nod to recompose to.

    Am I missing something fundamental in the way this process works / is my pool misconfigured to use redial this way?

    I don't see anything that stands out in my setup if you follow the bp clone related Documentation Centre for Horizon 6 version 6.1

    Any help appreciated, thanks in advance to take a peek!

    Looks like the parent for your pool is AppVolViewGold10.  Looks like you are trying to reconstruct the pool based on the VM AppVolViewGold10 the snapshot in the screenshot is also for AppVolPro10, a different virtual machine.  If you want to use the snapshot on AppVolPro10, you will need to select this VM as a parent.

  • is there a way to tell firefox allow and remember the java plugin for all users via the command line or a script?

    Hello

    I have about 200 computers I want to push the next to parameter

    allow and remember the java plugin for firefox for all users
    

    is it possible to do this via a script or configuration file?

    You must create two files in the Firefox program folder.

    • local - settings.js file in the defaults\pref folder where you will find the channel - prefs.js
    • mozilla.cfg in the main folder of the Firefox program
  • The best mod for NB550D/02F news feed

    Hey fans of Mini Toshy,.

    There is no solid FULL only post on the net about how far you can push actully this material from end to end.
    In this post and other assignments YOU... I have a thread of a single window for geeks on this unit.

    The 32 bit Windows 7 OS [family, professional, ultimate] is the best support for chipset AMD grafix and various other drivers of ure choice, this is the best information that I have gathered... Please correct me if Im wrong?
    Also if changes 64bits como thrus thanks for posting in this thread :D
    What we geeks need to know is so information for the SATA controller on the card for the Toshiba NB550D/02F PLL5FA 02F02C, other newer models

    I have some fragmentary information, it could be SATA3 that will support an upgrade of a controller 6GBs SSD and some saying it is done SATA2 part of support 3GBs Committee but the S3 connection will still work saturate the speed of connection of the S2.
    This allows to get ALL the best mod for this sorting device information here and now!

    Post more... and thx 8 >)

    Yes, I noticed that some users here in the forum have had problems using the modules of RAM from Crucial, but Kingston modules seem to run ok.

    But you can extend the RAM to 2 GB only when a location is available as shown here:
    http://www.MyToshiba.co.nz/products/computers/nbseries/NB550D/pll5fa-02f02c/specifications#details

  • I lost the code for the option menu 'limitations' of the iPhone 4, how can you do then? so I can come and factory reset, it is a 4 digit code, so I can be able toexample factory reset the phone, don't know if this is the right forum for my question but

    I lost the code for the option menu 'limitations' of the iPhone 4, how can you do then? so I can come and factory reset, it is a 4 digit code, so I can be able toexample factory reset the phone, don't know if this is the right forum for my question but

    Sorry, but the restriction password cannot be reset, it is part of the backup and restore a backup that was taken after the restrictions were activated, restore this code again.

    You will have to start without the help of the data backup, configure the phone to factory settings and start over. Follow the steps mentioned in this article:

    Use iTunes to restore your device to factory settings - Support Apple iOS

    If you lose or forget your password restriction, you must erase your device and then put it up as a new device to remove the restriction password. Restore the device by using a backup does not delete the access code.

    copied from: Sur les Restrictions (parental control) on iPhone, iPad and iPod touch - Apple Support

  • How can I change the filter settings for the e-mail account of my child?

    How can I change the filter settings for the e-mail account of my child?

    Hi Schaefle,

    May I know if you refer to web filtering? If Yes please visit this link to learn how to change the filter settings.

    Note: for to work in web filtering settings, you must install and configure the filter of family security on each computer your child uses.

    For more information on parental controls, please visit http://windows.microsoft.com/en-US/windows-live/essentials-help-center

    Thank you!

  • Ask your parent for permission to view this page...? Please send reply

    Ask your parent for permission to view this page

    The answer is: ask your parents to unlock.

  • Is it possible to configure the same user for 500 systems that run under XP & Win7?

    Hello

    About 500 systems are run under Windows XP & Windows7, is it possible to use the same user for all 500 systems?

    Hi SupportRI,

    Windows Live family safety is no longer manages the accounts of children using Windows Live ID Windows Live ID on behalf of the child is essentially used for the feature of managing contacts (restrictions on the use of Hotmail and Messenger). Currently, parental control can manage Windows users; However, if you have already configured a Windows Live ID account before the update, it will be always available. You can see the thread below for more information.

    Where is the function of the safety Contact family management?

    If you intend to use Windows Live Family Safety for all users of 500 to restrict the Internet connection, please note that parental control does not restrict the Internet and Web sites. You also have the option in the list of content filtering Web to apply the rules to all users under the Family Safety.

    For more information on how you can install Windows Live Family Safety, please visit the link below.

    Protect your kids with parental controls

    Thank you!

  • apply the group policy for the screen saver without copying the screen saver on all computers

    Hello
    I have applied the group policy for server screen saver 2008 but do run
    I copied the file on each computer .scr.
    is there a way to push file of screen directly from the server without copying it to each computer on the network?
    or is there a software that can automatically run the screensaver on the network?

    Hello

    The business support, you can find forums on TechNet, see the following links:

    http://social.technet.Microsoft.com/forums/en/category/WindowsServer/

    http://social.technet.Microsoft.com/forums/en/category/w7itpro/

  • Should I spend the $280.00 for the cannon to solve my problem of autofocus 70 d?

    Should I spend the $280.00 for the cannon to solve my problem of autofocus 70 d? Or just go back to my rebels much trust?

    MelekalsCanon wrote:

    Very much appreciate your taking the time to send a response. As a new user, I was not sure if anyone worth. Let me add a bit more to my first post. I go into this niche between amateur and a person with clients. For more than 10 years, I have covered the events for a non-profit organization, capturing the look and feel of 20 + events per year and received permission to buy some cameras this year. My decision from the beginning was to use the Canon Rebel. The images are on site and once I had a problem with one of them (after the filming of the external events in time 105 degree for 3 days).

    So when I retired a year ago, it was for me a selection fairly simple to get a gun for me - especially since at this time there the 70 d was on the cover of magazines and has been very very touted. I also did a lot of publication computer assisted and helped me to realize that I want the best sensor, resolution and sharpness, lens that I could afford - the 70 d of photo editing. My post was actually a result of reading many replies online, including your very informative responses on 70 d focus problems. My biggest concern is I'll spend hundreds of dollars and maybe, just maybe get a camera that captures images better targeted, but still not as strong as the bottom end rebel I used. I had hoped to buy my first goal of 'L' and really get excited - not try to repair the unit more expensive that I bought that day.

    Thank you once again and before he gets noted by someone... Yes, I should have pushed this issue earlier and then at least the guarantee would have covered the cost. A lesson in expensivve. But I must add that at least an authorized Canon dealer repair told me they had several people the impression that I did - he was the photographer / me as a new user having the problem and not the camera. Now, I know it's my camera.

    Let me clarify that I do not own a 70 d, so what I say about it is to look at what others have said, especially in this forum. But it is disconcerting to see so much complaint about a camera that is supposed to have an innovative system of development. One is strongly tempted to suspect they went overboard in trying to put the camera to the service still photographers and videographers.

    That said, I'm not a big fan of the rebel line, because they do not have af microadjustment, and I at least have a Canon lens excellent also which would be useless without it. (The 70 d there AFMA, a point in his favor.)

    What about spending the $280 for the repair, I understand why it is difficult to call. If I were in your shoes and were convinced that Canon includes the question and he'll fix it properly and permanently, I guess I'd go for it. If you do not do, they fell that you need something a notch above the rebels, is perhaps a good time to buy a 7 d remains or rehabilitated. Even though I now have a 3 out of 5, I always use my 7 d a good amount and have been very happy with them. And the 2 7 got such a favorable reception it was practically forced to put at the disposal of the most 7 d at a decent price.

  • My Web browser displays the currency as for example. J10.99 instead of £10.99. Why is this happening?

    Original title: my browser to the United Kingdom shows currency like for example J10.99 instead of £10, 99 - what is the cause for this - all the answers it please?

    My Web browser displays the currency as for example. J10.99 instead of £10, 99 - why this is happening please?

    Hi DavidWilliamsXF,

    1. have you made any hardware changes or software on the computer before this problem?

    2. what browser do you use?

    3. in which website are you facing this problem?

    If you use Internet Explorer, you can follow this link & check if the problem persists.

    How to reset Internet Explorer settings?


    Note:
    the feature reset the Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings.

    Hope the helps of information.
    Please post back and we do know.

Maybe you are looking for