Navigation in Blackberry 10

Hi all

I have following Qml Code for navigation. It has three Pages and and works fine... but here's one

small problem. that is to say;  I have defined all three pages in a single file called unique Qml 'main. QML. I want to write a separate Qml file for each page and attach them to 'hand. QML. Here is my code...

// Default empty project template
import bb.cascades 1.0
// To access Timer in QML, we need to import the CustomTimer library.
//import CustomTimer 1.0

NavigationPane {
    id: navigationPane
    Page {
        // The initial page
        id: tradeListPage

        Container {
            ListView {
                id: tradeList
                objectName: "tradeList"
                layout: StackListLayout {

                }
                dataModel: GroupDataModel {
                    grouping: ItemGrouping.None
                }

                listItemComponents: [
                    ListItemComponent {
                        type: "header"
                        Header {
                            title: {
                                ListItemData
                            }
                        }
                    },
                    // The tradeList Item
                    ListItemComponent {
                        type: "item"
                        Container {
                            id: listItems
                            layout: AbsoluteLayout {

                            }
                            Label {
                                id: symbol
                                text: ListItemData.Symbol

                                // Text Style and size etc
                                textStyle.base: SystemDefaults.TextStyles.SmallText
                                layoutProperties: AbsoluteLayoutProperties {
                                    positionX: 10.0
                                }

                                textStyle.fontSizeValue: 30.0
                            }
                            Label {
                                id: bidprice
                                text: ListItemData.BidPrice
                                textStyle.base: SystemDefaults.TextStyles.SmallText
                                layoutProperties: AbsoluteLayoutProperties {
                                    positionX: 100.0
                                }
                                textStyle.fontSizeValue: 30.0

                            }
                            Label {
                                id: open
                                text: ListItemData.Open
                                textStyle.base: SystemDefaults.TextStyles.SmallText
                                layoutProperties: AbsoluteLayoutProperties {
                                    positionX: 300.0
                                }
                                textStyle.fontSizeValue: 30.0
                            }
                            Label {
                                id: askprice
                                text: ListItemData.AskPrice
                                textStyle.base: SystemDefaults.TextStyles.SmallText
                                layoutProperties: AbsoluteLayoutProperties {
                                    positionX: 450.0
                                }
                                textStyle.fontSizeValue: 30.0
                            }
                            Label {
                                id: close
                                text: ListItemData.Close
                                textStyle.base: SystemDefaults.TextStyles.SmallText
                                layoutProperties: AbsoluteLayoutProperties {
                                    positionX: 600.0
                                }
                                textStyle.fontSizeValue: 30.0
                            }
                        }
                    }
                ]

            }
            Button {
                id: charts
                text: "Charts"
                verticalAlignment: VerticalAlignment.Bottom
                onClicked: {
                    navigationPane.push(chartsPage)
                }
            }
            Button {
                id: qiuckview
                text: "Quickview"
                verticalAlignment: VerticalAlignment.Bottom
                onClicked: {
                    navigationPane.push(quickViewPage)
                }
            }
        }
    } //End of The initial page

    attachedObjects: [
        Page {
            id: chartsPage
            Container {
                WebView {
                    id: chartview
                    url: "local:///assets/candlechart/bar.html"
                    // url: "http://www.google.co.in/"
                    settings.zoomToFitEnabled: true
                    settings.activeTextEnabled: true
                    objectName: "webview"
                }
            }
        }, // end of the chartsPage
        Page {
            id: quickViewPage
            Container {
                layout: StackLayout {

                }
                Label {
                    text: "Prev Close :" + propertyMap.Close
                    textStyle.base: SystemDefaults.TextStyles.SmallText
                    textStyle.fontSizeValue: 30.0
                }
                Label {
                    text: "Bid :" + propertyMap.BidPrice
                    textStyle.base: SystemDefaults.TextStyles.SmallText
                    textStyle.fontSizeValue: 30.0
                }
                Label {
                    text: "Ask :" + propertyMap.AskPrice
                    textStyle.base: SystemDefaults.TextStyles.SmallText
                    textStyle.fontSizeValue: 30.0
                }
                Label {
                    text: "Open :" + propertyMap.Open
                    textStyle.base: SystemDefaults.TextStyles.SmallText
                    textStyle.fontSizeValue: 30.0
                }
                Label {
                    text: "Days of Range :" + propertyMap.AskPrice
                    textStyle.base: SystemDefaults.TextStyles.SmallText
                    textStyle.fontSizeValue: 30.0
                }
            }
        } // end of the quickViewPage
    ] // end of the attachedObject
}

now, I want to create a Qml file, sepere as 'charts. QML"like below...

Page {
            id: chartsPage
            Container {
                WebView {
                    id: chartview
                    url: "local:///assets/candlechart/bar.html"
                    // url: "http://www.google.co.in/"
                    settings.zoomToFitEnabled: true
                    settings.activeTextEnabled: true
                    objectName: "webview"
                }
            }
        }

and "Quickview. QML"as...

 Page {
            id: quickViewPage
            Container {
                layout: StackLayout {

                }
                Label {
                    text: "Prev Close :" + propertyMap.Close
                    textStyle.base: SystemDefaults.TextStyles.SmallText
                    textStyle.fontSizeValue: 30.0
                }
                Label {
                    text: "Bid :" + propertyMap.BidPrice
                    textStyle.base: SystemDefaults.TextStyles.SmallText
                    textStyle.fontSizeValue: 30.0
                }
                Label {
                    text: "Ask :" + propertyMap.AskPrice
                    textStyle.base: SystemDefaults.TextStyles.SmallText
                    textStyle.fontSizeValue: 30.0
                }
                Label {
                    text: "Open :" + propertyMap.Open
                    textStyle.base: SystemDefaults.TextStyles.SmallText
                    textStyle.fontSizeValue: 30.0
                }
                Label {
                    text: "Days of Range :" + propertyMap.AskPrice
                    textStyle.base: SystemDefaults.TextStyles.SmallText
                    textStyle.fontSizeValue: 30.0
                }
            }
        } // end of the quickViewPage

How to call these in pane (main.qml) navigation. Thanks in advance

This will load in fact all pages at once. It is best to use a ComponentDefinition which allows to create objects at run and save some memory.

ComponentDefinition {
    id: myPage
    source: "MyPage.qml"
}

You can place these in the attachedObjects table. To create it just do:

var page = myPage.createObject();

Some additional information can be found in this lesson.

Tags: BlackBerry Developers

Similar Questions

  • Smartphone data plan (BBM, navigation and Blackberry Protect) blackBerry stops working on Blackberry 9930

    Hi I was using my Blackberry 9930 for a little over a year now, with the same data plan.

    A few days ago my laptop could not start, so I reinstalled my OS. However after successful relocation, I met a problem to access the surveys BBM, browser and Blackberry Protect.

    Wifi, browser and Appworld are fine (BBM and Blackberry Protect not fine).

    However, when I turn off my wifi, I get this.

    Check the service book, I noticed many missing articles...

    Please note that these are ALL the elements, nothing more to scroll down for.

    I noticed there is an additional element in Options > device > advanced system settings: i.e. the enterprise activation

    Click to open the Enterprise Activation (I also get this window when I open the mail setup), I come to the page of connection probably BES.

    Other messages, I understand that this could be the it policy. I've done many factory reset, via DM directly, via the command prompt using the loader/nojvm command and /resettofactory

    Things I did without success:

    -Full Wipe and reinstall operating system (7.1.0.580, 7.1.0.755 and 7.1.0.991)

    -Remove the policy with the above methods

    -Record of Routing Table, locally on the host's phone and asking the carrier to do so.

    -Access my site of carrier (telkomsel.blackberry.com) of the pc and return Service directories.

    Things to note:

    -Emails are working properly, can send and receive without wifi

    -Browser and Appworld are fine, only when the wifi is enabled

    -Change SIM on another blackberry, my data plan works perfectly

    -If I add a contact (phone B) through BBM surveys, phone B receives the request. However when a phone B accepts, nothing happens.

    -L' opposite is not true. Phone B please, my phone receives no notification.

    My career was told that my PIN code may be suspended/compromised, is it possible? and how should I proceed if it is true?

    Please advice and much appreciated.

    Thanks for the clarification.

    Linsner wrote:

    My carrier checked on my code PIN and IMEI on the Blackberry Administration Site and showed me a report saying that my phone has been blocked or suspended.

    The carrier States that I have to bring this matter to Blackberry since:

    1. I did not buy the handset of them (carrier)

    2. they have proved that my data plan works when the SIM card is transferred to another handset.

    Assuming that the suspension of the SPINDLE is true, nobody knows how should I proceed?

    Indeed, the situation is delicate. The support service is always the responsibility of the carrier, because they are the entity that provides services. But subsidies related to the device falls to the original place of purchase, or an entity to which they have assigned to your supported devices. When the unit was purchased elsewhere, the service provider can refuse support for issues related to the device. And it seems that your service provider is to determine it's a question related to the device rather than a question related to the service. I don't know if this conclusion is correct or not... I tend to interpret your situation as related to the service, rather focus on the device, but I have not seen the 'rules' that they must follow to do this.

    As such, your next step would be to contact the Manager of your support related to the device. Maybe it's your place of origin of the purchase, a service centre or other entity... it varies depending on the region, and I have no idea of what the device-support model is made for you. If you are unsure, contact your original purchase for orientation.

    If all goes well, they will be ready to take your case and it degrades to the BlackBerry without cost to you. I can't say whether they will be or will not be. Sometimes, when issues come and the two types of support (device and service) are not provided by the same entity, there may be a tendency for each to blame others, unfortunately, leaving the end user without recourse, but to continue to try to climb with both entities until you reach someone who will be willing to take responsibility and provide the necessary climbing.

    There is something called incident support, but it costs to just ask the original question, since you are not through support contracts that are in place. If you want to study, you can check it out here:

    There is also this link, but I can't vouch for its usefulness because I've never needed to use it and reports in our community here indicate mixed results. But you can try:

    Good luck!

  • Problem with text navigation on blackBerry Smartphones

    When you browse my torch pages Web will bring only links photos/videos, no text, its statred just this, any ideas? long live the people

    Hello

    I think you can try two things: the soft reboot, and if it does not, the hard reboot. Don't worry, you can not lose data with these two reboots.

    Soft reboot:
    1) struck the following three keys at the same time:
    -Alt
    -Right shift
    -Remove
    (2) wait 2 minutes for the Blackberry to wake up.

    Hard reboot:
    (1) your BlackBerry smart phone is on
    (2) remove the battery and wait a minute
    (3) replace the battery
    (4) wait 5 minutes for the device to wake up.

    Please tell us if it works for you.

  • Problems with Gokivo Navigator 9000 blackBerry Smartphones

    As the new owner (5 dayswith AT & T), I downloaded the browser in the App World since the review was much better than AT & T navigator.  The program is installed, but it has been charging for more than 24 hours.  Is this normal?  How to remove something that charge?  Nothing in the Help menu.  I would just delete App World & start again?  May I ask the navigator program a second time?

    Hi and welcome to the Forums!

    Another user has found a solution to this problem and displayed in these forums... it's to clear the application cache:

    1. open the App World

    2. go to my world

    3. for the BB keyboard-oriented - hold down the ALT key and press "RST."

    3. for the storm - hold the num-lock ('! 123 ") button so that it hangs and then click on '(34).

    3A. If your BB locks after issuing clear cache, do a battery pull reboot

    I hope it'll work for you! Good luck and let us know!

  • Problem during recovery latitude and longitude

    Hello

    I'm trying to get the latitude and longitude using LocationListener, but every time I try to seek always returns 0.0. I've implemented the locationUpdated method, but there it always returns 0.0 for i.e. latitude and longitude. After when I started with Blackberry Maps and start the GPS Navigation in Blackberry Maps menu, so I start receiving the latitude and longitude after awhile.

    Can someone tell what I am doing wrong? Am I missing something?

    import javax.microedition.location.LocationListener;
    import javax.microedition.location.Location;
    import javax.microedition.location.LocationProvider;
    import javax.microedition.location.LocationException;
    import javax.microedition.location.Coordinates;
    import javax.microedition.location.Criteria;
    
    public class GPSLocationListener
    {
        Location location = null;
        LocationProvider locationProvider = null;
        //Coordinates cords = null;
        //Criteria criteria = null;
        int interval = 90; //seconds - this is the period of position query
        int timeout = 90; //seconds - this is the timeout period.
    
        static double _lat = 0.0000;
        static double _lon = 0.0000;
    
        public GPSLocationListener()
        {
            try
            {
                locationProvider = LocationProvider.getInstance(null);
    
                if(locationProvider != null)
                {
                    locationProvider.setLocationListener(new LocationListenerImpl(), interval, timeout, -1);
                }
            }
            catch(LocationException le)
            {
                System.out.println("Location Exception : ");
            }
        }
    
        private static void setLat(double lat)
        {
            _lat = lat;
        }
    
        public static double getLat()
        {
            return _lat;
        }
    
        private static void setLon(double lon)
        {
            _lon = lon;
        }
    
        public static double getLon()
        {
            return _lon;
        }
    
        /**
         * Implementation of the LocationListener interface
         */
        private class LocationListenerImpl implements LocationListener
        {
            public void providerStateChanged(LocationProvider provider, int newState)
            {
                //no operation needs to be performed for this method.
            }
    
            public void locationUpdated(LocationProvider provider, Location location)
            {
                if(location.isValid())
                {
                    double latitude = location.getQualifiedCoordinates().getLatitude();
                    double longitude = location.getQualifiedCoordinates().getLongitude();
    
                    //set the latitude and longitude values fetched here.
                    setLat(latitude);
                    setLon(longitude);
                }
            }
        }
    }
    

    I pasted the source code for the extraction of latitude and longitude. Please let me know if there is a problem.

    Hello

    I have solved the problem.

    I was not any operation in the providerStateChanged method and I think of what he would always return 0.0 always. I modified the code today and as shown as below:

    class LocationListenerImpl implements LocationListener
    {
        public void providerStateChanged(LocationProvider provider, int newState)
        {
            if(newState == LocationProvider.TEMPORARILY_UNAVAILABLE)
            {
                locationProvider.reset();
                locationProvider.setLocationListener(null, interval, timeout, -1);
    
                //Make the thread to sleep for some time.
                try
                {
                    Thread.sleep(2000);
                }
                catch(Exception e)
                {
                    System.out.println("Exception while making the thread to sleep");
                }
    
                startGpsNavigation();
            }
        }
    
        public void locationUpdated(LocationProvider provider, Location location)
        {
            if(location.isValid())
            {
                double latitude = location.getQualifiedCoordinates().getLatitude();
                double longitude = location.getQualifiedCoordinates().getLongitude();
    
                //set the latitude and longitude values fetched here.
                setLat(latitude);
                setLon(longitude);
            }
        }
    
        private void startGpsNavigation()
        {
            try
            {
                locationProvider = LocationProvider.getInstance(null);
    
                if(locationProvider != null)
                {
                    locationProvider.setLocationListener(new LocationListenerImpl(), interval, timeout, -1);
                }
            }
            catch(LocationException le)
            {
                System.out.println("Location Exception : ");
            }
        }
    }
    

    Once the LocationProvider is temporary unavailable I am reintializing it in startGpsNavigation.

    I hope this is the right approach because it solved my problem. Now, I'm getting latitude and longitude without having to start Blackberry Maps.

    Hope it would help someone else too.

  • BlackBerry Q10 Q10 ceases to send messages, e-mails, sms to my car navigation system

    Recently last two weeks I am receiving email is no longer my IMAP e-mail accounts or SMS messages on my in my Lexus navigation system.  The messages in the Navigation System tab faded not selectable.

    The parameter are not changed in Lexus.

    Version of the 10.3.2.556 software

    If something has changed on the BB.  How to set bluetooth to send emails and sms setting on the blackberry.

    Comments?

    Thank you


  • BlackBerry Z30 don't switch call to the speaker using the navigation. Screen went black accept after phone call.

    I have this problem no need of me.

    While driving and use any software of navigation, such as:

    1. built in maps

    2 Waze

    3 NavFree

    If someone calls me, I can take the call. But immediately, the screen went black.

    I can't switch the call to the speakerphone. After random seconds, to switch screen might look for a second glance, and then the entire screen turned black.

    Although it is black screen, I can't do anything, including trying to drag up to close current app/call.

    Maybe it's something to do with the Navigation periodly software disables screen timeout?

    Hello, Yes,.

    Is this the same problem as described here:

    http://supportforums.BlackBerry.com/T5/BlackBerry-Z30/Z30-keeping-the-dial-pad-quot-lit-quot-when-in...

    Discussion on how the screen turns black during a regular call, it is impossible, for example, to listen to a call and to have the keypad remains lit, so you can press the right numbers while dealing with an automated reception, was doing phone banking, or using any other system that relies on automated messages.

    The problem came down to how some people take their phone (especially when trying to listen to the guests and press the right button at the same time).  The solution has been to hold the phone differently.  So my question would be whether the phone is blacking out because of the very special combination of things happening in your scenario, or is it blacking out because you're online and proximity sensor of the phone thinks you're holding it to your ear (and think that when you do this, you want to have blackened keypad).

  • Passport BlackBerry navigation pane colors + dialog system

    Passport for blackberry, my theme is promising for my application...

    the navigation pane, not come out black gray/white...

    and systemdialog the blue title bar does not appear...

    Why change both in designs? and how do I make black colors (tabbedpane same question, the bar is white/grya not black)...

    Mamadou wrote:
    Yes, but I have developed my app for bright theme.
    If I move to dark theme, unfortunately all * bleep * s upwards.

    the black color for the navigation pane bar below, was also bright theme.

    You cannot change the color scheme ActionBar 10.3

    Cascades is the best to support you and convert all icons at bright onnew ActionBar work.

    If you use the icons do not follow the user interface design Guide then conversion can fail and you will need to rework

    For the title bar: If you want the blue must be created a FreeStyle title bar

    ---

    So I would really recommend to rework your app looks good on 10.3 light theme

    Overall, the bright theme (from my POV) now looks a lot better:

    before that you had: Blue TitleBar, bright ActionBar content and dark

    now, all the adjustments better together: bar title, content, ActionBar... There is no rupture 'color '.

    and if you use the SignatureAction and a custom brand color I am sure that your application will look

    For me 10.3 is something like the real 1.0 ;-)

    BTW: I wrote a series of blog articles to help get 10.3 and supporting the Passport.

  • Intelligent with sophisticated navigation turn-by-turn 10 blackBerry phone

    Hello

    BB is considered to be a real smartphone company, and it is exactlly what our compony seeks. Since our employees need for software sophisticated turn-by-turn navigation such as TomTom or Navigon on a daily basis, we are somewhat disappointed that these applications have not yet been ported to BB10 (correct me if I'm wrong). Y at - there anychance that this happen some point in the near future? It is a higher requirement for us a "business smartphone' must meet to be considered a true alternative to the currently used apple and Android.

    concerning

    Simon

    P.S.: Blackberry Maps is no no real turn-by-turn navigation software (AFAIK).

    BlackBerry browser

    The browser BlackBerry app features are:

    Navigation & traffic

    In time real turn-by-turn directions spoken to destination
    Turn in the case automatic rerouting is not respected.
    Get an overview of the stages of the route and turns to come.
    Summary of travel and overview map with the whole trip highlighted.
    3D map view simulates the user must wait to see coming.
    Spoken directions include maneuvers and the pronunciations of the actual street name so that users can focus on the road and not on the screen for a safer driving experience.

    should be available soon.

  • BlackBerry Smartphones Im having navigation start trouble on BB Maps

    When I open the application for the card and when I want to launch navigation he seeks the satellites and back then "connect to blackberry 8520 failed."
    I don't know how to tackle this problem and I need help.

    Would like to see no answer to my question.
    Thanx.

    Tanx tazenui it worked!

  • I don't want VZ Navigator blackBerry smart phones

    I just bought the new blackberry tour, and when I was testing out I think I downloaded the application "VZ Navigator" by accident. I don't want to pay for the monthly service. How can ensure me that I don't get charged? Thank you

    Hello!

    You must remove the application... Follow these instructions:

    • KB10392 How to remove a BlackBerry smartphone app

    And then also contact the Association because they are in control of your service contract with them.

    If this does not work, then please come back on these forums (http://supportforums.blackberry.com/rim/) and create an account so that we can provide direct assistance.

    See you soon!

  • Navigation GPS Smartphones blackBerry not on the phone

    Hi, I have not found a similar position then...

    I used to have an 8900 and he had the 'Compass' for navigation logo but my new 9300 bb is not. I've done the ' options, advanced options to update gps... "but there is no way to enter gps application because it is not on my phone?

    anyone with the same problem?

    Thank you!

    Some service providers such as AT & T block the BlackBerry Maps application.

    You can always use Google Maps for free.

    You can install BlackBerry Maps directly from your BlackBerry browser using this link:

    www.BlackBerry.com/maps

  • BlackBerry Smartphones Blackberry Bold 9780 issues navigation

    Hello

    I just bought Blackberry Bold 9780 unlocked from the SHARAF DG dealer in U.A.E. and I use it with my network provider.

    My camera is capable of 3G, but I'm not able to browse the internet. When I try the below msg appears.
    "It is not included under the current regime of navigation via the cellular network service. To browse the web, you should use the Wi - Fi or contact your service provider to change your plan.
    I have not registered to the BIS because I want to browse the net more 3 G data packages because it is tailored to my needs.
    Internet works fine with a Wi - Fi connection, but when I use Blackberry App World or Opera browser I get the same msg mentioned above (even with a connected Wi - Fi connection).

    Hey mohit1986,

    I suggest you contact your service provider to verify that you have the right BlackBerry Internet package that includes the Blackberry browser.

  • BlackBerry Smartphones ATT "free navigation?

    I've heard of some people that there "free navigation on the internet" for my Blackberry since I use AT & T. Is this true? I won't begin to go on the internet with her think that it's free and then receive a huge bill. If it's free, are there restrictions?

    Twizter,

    This issue is the best answer to your wireless provider. To support various functions, including browsing the internet, you will need some type of data plan on your device.

    Normally, this comes in two flavors BIS/Personal or Enterprise. Unless you are going to connect with exchange e-mail service, you can choose the least expensive option.

    Hope this helps,

  • Navigation pad classic blackBerry

    the navigation pad is no longer on the side and upwards and downwards (it still works if you press it), any ideas? THX, david

    I don't think its necessary when resetting helped. I would replace it if this problem would be a repeat.

Maybe you are looking for

  • Problems with pages.ect

    Hello everyone, I have a problem with the pages. After erasing my macbook air completely, I can't seem to get back them and it seems that I have to pay for it. What should I do to get back them. Thank you

  • Nighthawk meets the 42443 port 7000

    My nighthawk meets the connection to port 42443. I don't know what it is. When I tried in the future, the port has had effect 0. When I tried to BLOCK the port - router says I can't until it is used. What is this PORT? How can I disable it? Telnet XX

  • LabVIEW: Memory data structure or corrupted.

    Hi all I know, this is a very simple question, but I couldn't solve it. When I entered a text in hexadecimal control box. I would like this text to be converted to hexadecimal number. I use unflatten string function. If I get 8 characters, it does ca

  • Download game.

    I use Vista Basic Home edition. Download "Mahjong Titans"?

  • I regularlu get this message: you are low on virtual space, msn is expamding for you. Help?

    Original title: VIRTUAL SPACE I regularlu get the message: you are low on virtual space, msn is expamding for you.  If you need more information, see Help.  HA! Nothing in the search for help and receives nothing. Old running XP on hp 8-9 years.