NavigationPane Query

Hello

I use a NavigationPane in my application. My main screen consists of headers and labels and labels have onTouch {} events that will grow to a specific page in the stack.

As each page a WebView, I was wondering if it is possible to create a dynamic WebView? (so the actionBar is identical every time) and I don't have to create a new WebView on each page, and I'm a little confused by the WebStorage; I tried to give a key that caches all WebViews then a button to clear the cache.

Furthermore, I leaned to create a button to increase/decrease the police size; I created this in JavaScript and named the file TextResize.js

function resizeText(multiplier) {
    if (document.body.style.fontSize == "") {
        document.body.style.fontSize == "1.0em";
    }
    document.body.style.fontSize = parseFloat(document.body.style.fontSize) + (multiplier * 0.2) + "em";
}

I then imported in one of my pages QML

import "TextResize.js" as TextResize

actions: [
ActionItem {
            title: "Increase Font Size"
            ActionBar.placement: ActionBarPlacement.InOverflow

            onTriggered: {
                TextResize.resizeText(1)
            }
        },
        ActionItem {
            title: "Decrease Font Size"
            ActionBar.placement: ActionBarPlacement.InOverflow

            onTriggered: {
                TextResize.resizeText(-1)
            }
        }
]

Yet the buttons do not seem to do anything when the increase or decrease of the police in a WebView, so I was wondering if there is another way to increase or decrease the police in a WebView using ActionItems?

Also, I use a MapView - with visibility set to false - and then, when the user clicks on "View map" (in the menu "more"), the plan would become visible. is it possible somehow that create dynamically - so that the card is always the same, except that it will be a different long and lat on each page or I create the MapView on each of my pages QML?

Finally, I'm looking to create a page of settings - options for a clear/dark theme selector (coupled with a dialog box: to inform the user that they will have to restart the app) but I don't know where to start on this one here.

Thanks in advance

LOL, in fact there are four questions here are not here can you create 4 threads separated, thank you.

Tags: BlackBerry Developers

Similar Questions

  • SQLite query on error in Navigation pane

    I have a Navigation pane with the first page displays a list of items to a SQLite database and pushes the item_id and nom_element on the second page.

    NavigationPane {
        id: navig
        backButtonsVisible: false  
    
    Page {
        Container {
    ListView {
            id: myListView
            dataModel: dataModel
    
            listItemComponents: [
                ListItemComponent {
                    type: "item"
    
                   StandardListItem {
                        title: ListItemData.item_name
                    }
                }
                ]
            onTriggered: {
                var itemSelected = dataModel.data(indexPath)
                var secondpage = secondPage.createObject();
                secondpage.itemId = itemSelected.item_id
                secondpage.itemName = itemSelected.item_name
                navig.push(secondpage)
            }
        } // end of ListView
    
        attachedObjects: [
            GroupDataModel {
                id: dataModel
                grouping: ItemGrouping.None
            },
            DataSource {
                id: dataSource
    
                source: "sql/items.db"
                query: "select * from item order by item_id desc"
    
                onDataLoaded: {
                    dataModel.insertList(data);
                }
            } end of DataSource
    
            ]
    
            onCreationCompleted: {
                dataSource.load();
            }
    }
        attachedObjects: [
            ComponentDefinition {
                id: secondPage
                source: "secondPage.qml"
            }
        ]
    }
        onPopTransitionEnded: {
             page.destroy();
        }
    }
    

    The second page is similar to the first page, but it shows a list of subitems from another table in the same database using the item_id. The item_id and nom_element are called in the second page here:

    property int itemId
    property string itemName
    

    and inside the data source, I have the following query:

    DataSource {
                        id: contentSource
                        source: "sql/items.db"
                        query: "select * from subItems where item_id = "+itemId
                        onDataLoaded: {
                            contentList.insertList(data);
                        }
                    }
    

    But the query does not return any value.

    But it returns the correct output for:

    query: "select * from subItems"
    
    query: "select * from items"
    

    I am also able to output the itemId value with:

    label {
          text: itemId
    }
    

    I tried to remove the data source query and adding

    onItemIdChanged: {
      contentSource.query = "select * from subItems where item_id = "+itemId
      contentSource.load();
    
    }
    

    at the end of the page. It does not work.

    onItemIdChanged: {
      contentSource.query = "select * from subItems where item_id = "+itemId
      contentSource.load();
    
    }
    

    This method works. Don't know why I don't understand well when I tried the first time

  • Why should I uncheck responder OCSP query servers to confirm the current validity of certificates to access the site Web of Yahoo?

    If I check the servers of responder ocsp query I get the error message sec_error_ocsp_old_response. If I uncheck that box yahoo charge very well

    Hello, can check you that your system clock is set to correct date, time, and time zone? -> time.is

  • When you type a query in the bar always double the third letter, for example, research, if I want to write a 'youtube' written "youutube" what to do, help

    When you type a query in the bar always double the third letter, for example, research, if I want to write a 'youtube' written "youutube" what to do, help

    Hello chilli.willi, try Firefox Safe Mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • How can I get a query in the search field to open in a new tab or a new window, and the current window?

    How can I get a query in the search field to open in a new tab or a new window, and the current window?

    If you are looking through the search bar in the Navigation toolbar, this preference can be changed to research it open in a tab.

    Type of topic: config in the address bar and press ENTER. Then answer "I'll be careful." Type this pref in the search at the top.

    Browser.Search.openintab = double click to switch to true

  • When, on my home page, I click on the link "transparent popup" in the query "did you mean: transparent popup", NO RESULTS appear in this new tab; How to solve?

    I had trouble due, apparently, to a file named popuptransparent [dot] xul, which I have 3 cases on my computer (Win XP/Firefox last v.). Using my window of AVG home page, I get "popuptransparent" (try to fix) and the results appear OK. But then when I click to a new tab, on the "transparent popup" link in the query "did you mean: transparent popup", NO RESULTS appear in this new tab. In addition, when I reload then the Panel of AVG which sought to 'popuptransparent' in the first place, it, too, shows now no results. Or a panel shows Google now no results. They show the quantity of results, but just white screens for the results themselves.

    Links https://support.mozilla.org/en-US/questions/948804?esab=a & as = aaq and https://support.mozilla.org/en-US/questions/952141?esab=a & as = aaq brings me. I re-installed Firefox v. 20.0.1 nothing works. How to fix?

    Should I remove it from my computer all 3 of these instances of xul [dot]?

    Regarding the problem of searching, you can check the extension "Disconnect"? I think it could affect the Google sites and third parties who use Google. You can disable or try its button Options here:

    Firefox orange (or the Tools menu) button > addons > Extensions category

    While you're there, you can disable all extensions essential and unrecognized. When in doubt, turn off.

    After restarting Firefox, did you notice a difference?

    Could you explain in more detail the next part?

    Should I remove it from my computer all 3 of these instances of xul [dot]?

    Is this something that came in a security sweep? What question do you think they are originally? They are located in a folder extensions?

  • I need to stop a download of the query, I thought a stand-alone application but turns require a higher level (FCPX) as a 'parent' and I do not who have, or want to buy.

    I need to stop a download of the query, that I thought a stand-alone application but turns require a higher level (FCPX) as a 'parent' and I do not have that, or I want to buy it.

    Motion IS a stand-alone application. It is mainly designed to make effects for Final Cut Pro X, but it is not necessary to have with FCPX nor is it necessary to have FCPX to create projects for other purposes. When you open the query, simply select project of work outside the FCPX motion. You can save regular projects of Motion anywhere on your system.

  • How to activate the query suggestions

    How the query suggestions can be enabled in the Firefox address bar?

    You're welcome... good to know you got it working.

  • Satellite A30: Can not find the COM ports when trying to query the modem

    Hello.
    I have satellite A30 and I reinstall windows xp at home, but I can't find any com port whenever I try to query the modem the display hardware confilct, but in Device Manager no sign of error/confilct, I did everything what I can.
    Add the port,
    Add more then 1 port
    disable the printer port
    change the printer port
    Reinstall derver modem,
    In short, I've done everything I can. its always show (! yellow) mark.if I add the port and if I remove the port and there is no sign of error.
    If someone help me to solve this problem a little,
    regared.
    MGK.

    Post edited by: mghouskhan

    The modem uses a virtual com port. It s not a real port.
    I wonder why it usually happens after the installation of the new operating system, you must install drivers Toshiba together in the right order
    Installing the chipset utility is important

    The modem driver should do the work and you n t need to activate com ports
    Please choose the right side of the page of the Toshiba driver modem driver after installing the OS correctly. I think that's the key

  • find on a query page breaks

    When you search on a page by using the function FIND of Firefox, it ignores the query on the results page if it is in a link. Example: using Google, Yahoo, Bing, etc, I search for "airplane" (without the quotes). On the results page, I am looking for aircraft. The Firefox FIND function ignores the word "aircraft" if it's in a link. He finds it if it is plain text. I used the safe mode, deleted the cache - not good. Updated 3 addons in need. Check the list of embarrassing addons - none of my friends are on it. I have reset to the default values - no good. Then I copied localstore.rdf and prefs.js to a different location and renamed those in the profile. When I restarted Firefox the problem disappeared, but then where my addons (that's all I noticed;) I've always had my favorites). Then I changed the 2 files their original name. My favorites were back but was the problem. With the help of 3.6.17

    No problem here as long as I can see the text to highlight all find them also all occurrences.

    Make sure that sensitive has not activated (Ctrl + F or Edition > Search)

  • Bezier Motion 5.0.7 masks appear in the timeline panel, but in the column of layers only. This started happening yesterday. The query projects previously do not have this problem. I can't change if masks appear in the timeline panel.

    Motion 5.0.7 memory 8 GB, processor 2.93 GHz intel Core i7, ATI Radeon HD 5750 1024 MB graphics

    Bezier masks do not appear in the timeline, preventing me from editing. The masks appear in the column of layers only. The problem just started yesterday. The query projects previously do not seem to be performed.

    In the upper right corner of the canvas, there is a view menu. Check if the 'lines' are checked in the section view overlays.

  • My safari has locked up with a request for verification of the property query.  What can be done to fix this?

    My safari has locked up with a request for verification of the property query.  What can be done to fix this?

    This is the shit that came.

    Force Quit Safari (cmd-option-esc) then restart Safari by holding down the SHIFT key.

    Sorry, wrong forum... question thought it was an OS X. In any case don't give them any info.

  • 383 receving error while querying the data search

    Hello

    We have a script (vbs) that runs in Diadem and asks a Datafinder (Server edition). After the addition of a code of error handling, we encountered the following error:

    Error description: an error occurred while searching. The query can contain at least one invalid property.        Number: 383 Source: false.*

    * Now, according to the message above, we can extract that there is a property or a value of the property (of the application) makes / hurt, but see the next line from this message please.

    Once we took the trap for this error, we connect and save queries (in files TDQ) which were used at the present time that the error occurred. When load us the files of this query, no error is caused. We currently have to solve this problem, but we don't find the root cause yet. No guidance, the tip or help will be greatly appreciated.

    Hi manny,.

    This looks like a problem of type of property data for me.  In rare cases save a condition of tiara in a *.tdq file can cause this condition to change the data type of the property.  You can try to reduce the number of assignments to one and determine what state is the culprit?  Then ask yourself which operator you use in this condition - if it is "=" or "<>" then it supports any type of data.  If it's any other condition, then he could run against a string data type.  In addition, you may have a datetime property that is not optimized in the DataFinder, who could be considered an invalid property.

    Brad Turpin

    Tiara Product Support Engineer

    National Instruments

  • "Estincomplet" DataFinder Advanced Query result is equal to true after 200 files

    I have a VBS that runs a query that has been used for a while, but has reached its limits this week.  Limit is reached is to 200 files, after the "estincomplet" flag is set and do not know how to increase the setting of the maximum value.  I tried the "MaxNoSearchResults" setting, but not had any luck.  I have attached the VBS a subset, I've been using, any input would be appreciated.

    Thank you

    Potentially

    Navigator.Display.CurrDataFinder.ResultsList.Settings.MaxCount = 1000

    is what you are looking for.

  • How to query a Subvi dynamically loaded to its input terminals names?

    Hello

    I have an application where I use dynamically load the Subvi and I need a way to query the Subvi for its names of input terminals.  I'll use several different Subvi now and in the future and will not experience the terminals.

    Any help would be greatly appreciated.

    Thank you in advance!

Maybe you are looking for