Retractable selector do

Hey guys,.

I need to use "Pipette" in my application, but I'm having an annoying problem. After having developed the selector when I choose an element, the selector is not afraid. I need to touch outside the selector to shrink. However, when I use the drop down menu, it works as I want. When I choose an element, it shrinks automatically. But I need to put the elements using the XML file. That's why I need to use the selector (if not, there is a way to fill list box of values in the XML file).

I tried some stuff like using 'onSelectedValueChanged' method to set the extended value of the selector as false. But in this case when scrolling in the selector, as soon as that selector stops it automatically selects this value, where the selector is shrinking quickly.

My question is, is there a way to reduce the switch when I 'touch' to the selected value of the selector as drop-down list component?

Your help is greatly appreciated because it is the last problem I had before the launch of my application.

Thank you in advance!

But what happens if you have more than one item in the selector? You would have to reopen the selector to change this value as well.

Since your problem is loading the XML file in the drop-down list, this is how I did once and so far it works great

import bb.cascades 1.0
import bb.data 1.0

DropDown {
    id: dateFormat
    title: "Date format"
    topMargin: 30

    onSelectedValueChanged: {
        app.saveValueFor("dateFormat", selectedValue);
    }
    attachedObjects: [

        ComponentDefinition {
            id: optionComp
            Option {
            }
        },

        GroupDataModel {
            id: dataModel
        },
        DataSource {
            id: dataSource
            source: "XML/dateformat.xml"
            onDataLoaded: {
                //clear just in case
                dateFormat.removeAll();

                for (var i = 0; i < data.object.length; i ++) {
                    var opt = optionComp.createObject();
                    opt.text = data.object[i].text; // Needs to be an 'Option' before the DropDown will accept it
                    opt.value = data.object[i].value;
                    opt.description = data.object[i].value
                    opt.selected = app.getValueFor("dateFormat", "dd/MM/yyyy") == data.object[i].value;
                    dateFormat.add(opt);
                }
            }
            onError: {
                console.log("JSON Load Error: [" + errorType + "]: " + errorMessage);
            }
        }
    ]
    onCreationCompleted: {
        dataSource.load();
    }
}

I don't know if it's the right way to do it, but it works.

Tags: BlackBerry Developers

Similar Questions

  • What is the CSS selector for the popup bubble when flat on a URL?

    I don't speak of popup is described here:
    https://support.Mozilla.org/en-us/KB/what-happened-status-bar?ESAB=a & As = AAQ

    I have a dark theme for Firefox, but it remains white. I would use custom CSS to turn it is black with white text (Chrome which comes, I migrated to ala), but I can't find the correct selector for it.

    Thanks in advance!

    I use this code:

    @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    
    statuspanel {max-width:90%!important}
    .statuspanel-label {background:#FF9!important;color:black!important;font-family:"DejaVu Sans Mono"}

    Add code to the file userChrome.css below default @namespace.

  • So congratulations. Your last update (19) beat Jquery selectors of dates on Web sites all over the world

    Millions of Web sites that do not call Jquery datepickers in fields of seizure with an attribute date no solitary work today for users who are viewing these sites with 19 FF. First jumps of Chrome date from the municipality and now Firefox. I guess that the rest of the browser will not want to be left for some great idea on the horizon which is the root cause of all this, but it's serious. MILLIONS of Web sites no longer work, and webmasters are scrambling to find solutions. All that was expected by all that you people of browser for entry with a date attribute fields, won't happen because you have forced people to call the dates by any other method selectors. This means that entry with a date attribute fields will disappear.

    Thanks a lot guys!

    For me at least, the question is now irrelevant. Apparently the built-in popup date picker that any serious web developers will not want, is here to stay.

    The only option now is to remove the type = "date" attribute of input fields where you want to call a date picker custom. Instead, you must define the field type = "text" and call the datePicker custom for fields with a specific class name.

  • Highlight the glitch in Firefox or Sidebar Bookmark Selector 2.3

    I have Firefox 12 with the app Sidebar Bookmark Selector 2.3. They ran together for at least a few years now. From last week when I opened my favorites I'll get points out, going through everything I ran over with the mouse in a way upward. If I get 10 Favorites, there will be ten points out. If I come back down through them, they are all clear. What the hell is happening? A search google with the words 'Firefox' and 'highlight' will bring you only answered to go to tools, options, colors and unchecking the underscore. This is not it. This is driving me crazy! Any suggestions? I don't even know at this point if she has nothing to do with either of them at this stage.

    For the love of God f ' ing... I fixed it, lol! I don't even try to fix it, I just fixed my XP appearance settings, trying to make things a little bigger. And whaddya know, as soon as I changed the settings to make it a little more daring, he ceased from the stress. Ridiculous! Thanks for the help man!

  • What are the CSS selectors for the main Menu of FireFox 4?

    What are the CSS selectors for the main Menu of FireFox 4?
    http://img228.imageshack.us/img228/5512/ff4menubar.gif

    Always the same as in Firefox 3.5 and 3.6 versions:

    #main-menubar
    #file-menu
    #edit-menu
    #view-menu
    #history-menu
    #bookmarksMenu
    #tools-menu
    #helpMenu
    
  • Impossible to uninstall Canon IJ Network Scanner selector

    Hello

    Involuntarily, I installed a program on my Mac while trying to set up my printer.

    Now I have an icon in the upper right corner of my screen that I can't uninstall.

    He said Canon IJ Network Scanner selector.

    Any help is appreciated.

    Thank you.

    Have you tried to follow the instructions of Canon to uninstall?

    https://support.USA.Canon.com/kb/index?page=content & ID = ART137457

  • In the United States, I can use selector locale quick to get U.S. locale of Russia but in Russia, it does not work to go the other way or any other premises than elsewhere. After selecting a new language and restarting firefox, it remains on the Russian

    In the United States, I can use selector locale quick to get us to the locale of Russia (ru - RU), but in Russia, it does not work to go the other way or any other premises than elsewhere. After you have selected the local new and restart firefox, it remains on the Russian locale. Y at - it a fix for this problem?

    This has happened

    Each time Firefox opened

    == Looks like it started with a newer version of firefox, but this may have been coicidental

    You have other language packs languages installed?
    Tools > Modules > languages

    There is no module language en-US, to achieve that you must install the version of Firefox en-US and install other languages in the version.
    http://releases.Mozilla.org/pub/mozilla.org/Firefox/releases/3.6.6/Win32/XPI/

    See also http://kb.mozillazine.org/Language_packs

  • TestStand 2014 Version selector "Program Error"

    I upgraded to TestStand 2014 from 2013. I suspect that I deleted TestStand 2013 by using the uninstall program NOR but had not chosen 2014 TestStand using the version selector.

    When I try and run the selector version as an administrator, I get an error "unable to determine the current Version of TestStand. The Version selector then begins with the "Version Active current = n/a" and launch sequence buttons are grayed out.

    The select Version section all seem OK with 32 and 64 bit paths showing correctly and the projection of "2014 (14.0)" in the Teststand installed drop-down. When I click on 'Get active', I get a dialog box error which is entitled 'Attention' and says "program error".

    Is there a way to fix this? I installed 2014-64 bit and then reinstalled the 2014-32 bit version but still the same.

    I am on Win 8.0 and Avast antivirus and firewall (which I checked and logs do not show that it is not blocking anything related to this).

    I could just try and install the 2013-32 bit version and see if I can make some versions then and uninstall 2013 thereafter. This sounds like a good idea?

    Thank you very much: David

    I did a deactivation of 1 hour of Avast and used the repair option. This made me the Teststand service installed and everything is working again now.

    Thanks much for the tips

  • fixed point like solution value deal selector?

    Hey all so I am very new to LabVIEW and I'm doing a simple program.

    Right now I have a digital control that control my analog voltage on my board sbRIO 9636 (from the assessment package). According to the tension, I want to display a message on the LCD. I know you cannot use values FXP as case selector values. Is there a way to get around this? I thought to be converted to a string, but I want to have a case where no voltage between 0-1 displays a message, then 1-2 displays another message and so on and so on until 10.

    The flare in the case selector is integrated and cannot be changed by the programmer.  You will need to make the external logic and create whole selectors you need.  One way to do this is to create an array of constant values where you want cases. Then make a comparison of the value of the variable. Research in the resulting for the first table of Boolean true. Form to come and Index the search goes to the switch case.

    Lynn

  • Version of selector mass compilation VI

    I was using Version TestStand selector to switch between the two latest versions of TestStand I have installed on my computer.  I noticed that when you switch between TestStand versions he reinstalles the TestStand addon in the LabVIEW directory.  This causes a small question, where I got a rubdown compiles this directory every time so I don't have to re-record my VI using the monitor for the termination and other VI in this library.

    Before that I post this as a request to the exchange of idea (to do a compilation of mass), does anyone know if this already exists (except manual)?

    Thank you

    Hi paulmw,

    One option is to write a VI to change the compilation version and the mass of TestStand directory automatically.  You can call the Version TestStand selector from the command line.  The arguments for this are displayed using TestStand.

    There is also an example VI here that shows how a directory compile mass.  This, combined with a system Exec function to call the picker version and you wouldn't have mass compile manually.

    Kind regards

    Brandon v.

    Engineering applications

    National Instruments

    www.NI.com/support

  • How to connect the table 1 d to Structure box as a selector of case

    Hi all

    I'm able analog DAQmx Coordinated, I got component (Y) waveform and this component is of data type table 1 d (double-64-bit real) wire, according to my program I have to use the structure of the case, the selector must be values Y but labview said "you cannot connect this type of wire to the case selector (you have connected two terminals of different types).

    Related question work as below:

    Should I continue to move the engine while the analog values (values of Y) is lower than the preset value (for example, "10")

    Greetings from the Turkey!

    Best regards.

    either insert a "Index Board" to address one of the points (first, last, etc.) or take the average, max , or min of the table to make a decision, according to the needs.

  • How the switch "selector selection" cut

    Hello

    I would like to ask if anyone knows how to disable the tip in the case selector or a sequence of structures.

    The tip window always appears and hides the parts under him. I don't have the trick with no specific information. (see photo)

    Greetings

    Hardy

    Try to add the line ShowTipStringsOnDiagram = False in the LabVIEW.ini file and restarting LV according to me, it is not anywhere in the dialog box options and it should work in 2012 (sure it worked in 7.0 too).

  • DAQ Assistant as a selector of case

    Hello

    I'm reading an entry to my daq assistant digital camera, and then to hold for x number of seconds, up to that time. The entrance to the wizard matter not after the first entry.

    So, I used a switch case and started trying with a virtual switch. Everything worked fine... until I begin to try with the daq assistant. The output of a data acquisition assistant is a table 1 d of boolean. The entry for the case selector is a Boolean value.

    It is possible to select the cases according to the output of the daq assistant? If it is true, how can I do this?

    Greetz Margaret

    I added a table of index to your code that modifies the array to a single digit. Remember that this only gives you the first digital input. If you switch to a different channel, you'll have at this table to a different number of the index.

    Second time isn't a very good way to measure time so I changes the way vi a measure of time.

    Thirdly, the outside while loop is not necessary. The two loops will be run until you press the stop button. I think about the use of an event to capture the stop function so that you don't need to a stop button.

  • error-17500 when you use the version selector and the toolboxinstaller.exe file not found since the deployment of ts3.5

    Whenever I run the version selector to switch between ts4.2 and 3.5, it displays the error message above and gives also advice how to fix for a version of visual studio, I do not have (I am using 2003). As well as this when I start the deployment of TS3.5 engine I get error message with toolboxinstaller.exe system.io.filenotfound. I know that they are then tried to repair/reinstall nothing works, any help would be greatly appreciated thanks

    Hi Elizabeth,.

    The message below is similar to the message that you receive (note that this message relates to Visual Studio 2005, you could relate to Visual Studio 2003):

    This is a known issue with Version TestStand selector and was reported to R & D (#171620). The picker Version TestStand assumes that when Visual Studio is installed on the machine, that Visual C++ has also been installed. It tries to write in Visual C++ specific files that do not exist if Visual C++ is not installed.

    This error does not mean that something is not necessarily, it is more a message that the file cannot be written in successfully. You should be able to continue to launch TestStand successfully without problem.

    On the deployment utility, I suppose that the two issues are related, however, it would be much easier to say for certain that the error you receive won't cause problems if you post a screenshot of the error. You can do it.

    Thank you!

  • Structure of the case: selector values are not unique

    Get the error: case Structure: selector values are not unique...

    With the help of producer-consumer architecture w / SW-events and comms of queue.  DevSuite - LV2014

    My loop of consumers use a typedef for case selection control.  The typedef is an enum and the names of text for each value.  All my files are in quotes and there are no duplicates in the typedef or structure of the case.

    Help

    JF

    Jeff.F wrote:

    Get the error: case Structure: selector values are not unique...

    With the help of producer-consumer architecture w / SW-events and comms of queue.  DevSuite - LV2014

    My loop of consumers use a typedef for case selection control.  The typedef is an enum and the names of text for each value.  All my files are in quotes and there are no duplicates in the typedef or structure of the case.

    Help

    JF

    I don't know what you're doing exactly what I think. Do not write text in quotes for values box. Wire the enum in the switch case, right-click on the structure of the case and select "add a case for each value.

    It might be a little different because I'm teliing memory.

    Ben64

Maybe you are looking for

  • Satellite C850D - LAN is very slow

    I have a laptop C850D 12 months that I connect to a BT / Hub cable Cat 5 ethernet.My download speed has always been slow, but I recently moved to BT infinite thinking that it the network speed was not the laptop. Using their own laptop and my etherne

  • Unable to sync Outlook Contacts and calendar for pre

    I spent 8 hours or more trying to move my contacts to the front.  More than 2 hours with a Palm technician who sounded like he was asleep, knew very little about what he talked and eventually disconnected the call when everything he has tried has not

  • HP Envy: Forgotten password Bios, HP Envy

    I have a HP Envy which is asking to specify a password to enter BIOS setup. I apparently lost the password. How can I reset the password? After entering an incorrect code for 3 times I was given this number "59047936". Please any help will be highly

  • How to simulate a DAQ hardware and use it to test applications without hardware?

                           How can I simulate a DAQ in MAX material and use it to test applications without hardware? If my application requires input from external hardware to do how can I simulate a DAQ hardware in LabVEIW? I need to simulate several d

  • Return to the default (factory) setting for a zip (compressed) file

    Involuntarily, I changed the setting to opening a compressed folder (zip), and now all of my compressed folders display the logo of the program windows Word. I'm trying to undo that and not any program used to open a compressed file. I want to have a