Selection of savings between ObjectChoiceField and Hashtable

I managed to save a text using EditField

{if (profile1Hashtable.ContainsKey ("LastName"))}

lastName.setText ((String) profile1Hashtable.get ("LastName"));

}

So I thought that to save a value (sex selector) would be

{if (profile1Hashtable.ContainsKey ("Sex"))}

sexChoiceField.setSelectedIndex ((Integer) profile1Hashtable.get ("Sex"));

}

 

But what is the code that I put in the save()?

Its because I failed at the bis code 'new '.  Here's a corrected line:

profile1Hashtable.put ("Sex", New Integer (sexChoiceField.getSelectedIndex ()));

Tags: BlackBerry Developers

Similar Questions

  • What is the Differnce between HashMap and HashTable?

    Hi all

    What is the Differnce between HashMap and HashTable?

    I'm confuse. !!


    Thanks to advnce.

    This question is answered in the Javadoc here http://download.oracle.com/javase/6/docs/api/java/util/HashMap.html and here http://download.oracle.com/javase/6/docs/api/java/util/Hashtable.html. The thread to block.

    Published by: EJP on 12/07/2010 13:27

  • Simply select the values between min and max of a value accumulated during the day

    Hello Forum,

    a value is accumulated more a day and over a period of time. The next day, the value is reset and starts to build up again:
    with sampledata as (select to_date('09.09.2012 00:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 01:03:08', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 02:54:11', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 03:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 04:04:19', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 05:04:20', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 06:12:02', 'dd.mm.yyyy hh24:mi:ss') ts, 23 val from dual union all
                       select to_date('09.09.2012 07:12:03', 'dd.mm.yyyy hh24:mi:ss') ts, 29 val from dual union all
                       select to_date('09.09.2012 08:12:04', 'dd.mm.yyyy hh24:mi:ss') ts, 30 val from dual union all
                       select to_date('09.09.2012 09:12:11', 'dd.mm.yyyy hh24:mi:ss') ts, 45 val from dual union all
                       select to_date('09.09.2012 10:12:12', 'dd.mm.yyyy hh24:mi:ss') ts, 60 val from dual union all
                       select to_date('09.09.2012 11:12:13', 'dd.mm.yyyy hh24:mi:ss') ts, 75 val from dual union all
                       select to_date('09.09.2012 12:21:24', 'dd.mm.yyyy hh24:mi:ss') ts, 95 val from dual union all
                       select to_date('09.09.2012 13:21:26', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('09.09.2012 14:21:27', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 15:21:30', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 16:21:32', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 17:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 21:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('09.09.2012 23:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 00:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 01:03:08', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 02:54:11', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 03:04:08', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 04:04:19', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 05:04:20', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 06:12:02', 'dd.mm.yyyy hh24:mi:ss') ts, 14 val from dual union all
                       select to_date('10.09.2012 07:12:03', 'dd.mm.yyyy hh24:mi:ss') ts, 34 val from dual union all
                       select to_date('10.09.2012 08:12:04', 'dd.mm.yyyy hh24:mi:ss') ts, 58 val from dual union all
                       select to_date('10.09.2012 09:12:11', 'dd.mm.yyyy hh24:mi:ss') ts, 70 val from dual union all
                       select to_date('10.09.2012 10:12:12', 'dd.mm.yyyy hh24:mi:ss') ts, 120 val from dual union all
                       select to_date('10.09.2012 11:12:13', 'dd.mm.yyyy hh24:mi:ss') ts, 142 val from dual union all
                       select to_date('10.09.2012 12:21:24', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 13:21:26', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 14:21:27', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 15:21:30', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 16:21:32', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual union all
                       select to_date('10.09.2012 21:21:33', 'dd.mm.yyyy hh24:mi:ss') ts, 153 val from dual)
    select   ts, val
    from     sampledata
    order by ts asc;
    How should I change the select statement to ignore all data sets before the first minimum and duplicates after the maximum of a day to get such a result:
    TS     VAL
    09.09.12 06:12     23
    09.09.12 07:12     29
    09.09.12 08:12     30
    09.09.12 09:12     45
    09.09.12 10:12     60
    09.09.12 11:12     75
    09.09.12 12:21     95
    09.09.12 13:21     120
    09.09.12 14:21     142
    10.09.12 06:12     14
    10.09.12 07:12     34
    10.09.12 08:12     58
    10.09.12 09:12     70
    10.09.12 10:12     120
    10.09.12 11:12     142
    10.09.12 12:21     153
    Thank you

    Hello

    msinn wrote:
    Hello Forum,

    a value is accumulated more a day and over a period of time. The next day, the value is reset and starts to build up again:

    Thanks for posting the sample data and results. Be sure to explain how you get these results from these data. For example "for each day, I just want to show the lines after the daily low was reached. For example, on September 9, the lowest val was 23, which occurred at 6:12, so I don't want to show all lines earier to 06:12 September 9. In addition, when a val is the same as or more than the previous same day val (in order by ts), then I don't want to display the line later. For example, on 9 September, there are several consecutive lines, starting at 14:21 which all have the same val, 142. I want to only display the ealiest of this group, the line of 14:21. »

    Here's a way to do it, using analytical functions:

    WITH   got_analytics     AS
    (
         SELECT  ts, val
         ,     MIN  (val) OVER ( PARTITION BY  TRUNC (ts)
                                  ORDER BY       ts  DESC
                        )      AS min_val_after
         ,     CASE
                  WHEN  val = MIN (val) OVER (PARTITION BY  TRUNC (ts))
                  THEN  -1    -- Impossibly low val.  See note below
                  ELSE  LAG  (val) OVER ( PARTITION BY  TRUNC (ts)
                                              ORDER BY         ts
                               )
              END      AS prev_val
         FROM    sampledata
    )
    SELECT       ts
    ,       val
    FROM       got_analytics
    WHERE       val     <= min_val_after
    AND       val     >  prev_val
    ORDER BY  ts
    ;
    

    This requires that val > = 0. If you don't know a lower bound for val, and then the same basic approach still works, but it's a bit messier.

  • Is there a way to select a large number of photos in a LR file by clicking on a picture of start and end frame, and then ask to LR select everything in between?

    Don't know how else to Word that.

    Let's say there are 500 images in a folder and I want to choose 150-250 images. Is there an easier way to select only those that individually clicking each image?

    You can select images by pressing the shift (Windows) and command (MAC) in Lightroom.

    Minor correction: you use SHIFT on Windows and Mac to select all photos between.  To add individual photos to the selection or remove already selected photos, use Ctrl (Windows) or Cmd (Mac).

  • my color (palette and eye dropper) selecter do work, they show only a shade between black and white!

    my color (palette and eye dropper) selecter do work, they show only a shade between black and white!

    Help, please!

    work with photoshop elements 13

    Windows 7 64 bit

    Thank you

    yyrox wrote:

    my color (palette and eye dropper) selecter do work, they show only a shade between black and white!

    Help, please!

    work with photoshop elements 13

    Windows 7 64 bit

    Thank you

    In the editor, Expert tab, go to Image > Mode and select RGB color

    If that fixed it, go in Edition > Preferences > General and reset preferences, then launch program again.

  • Select decimal between numbers and replace with comma - style Grep

    H,

    Could someone please help with some Grep expressions.

    I have a big document (s) I need to locate all decimals between numbers and replace them with commas. I have a little grep expression that can locate the numbers and a decimal number, but I need to follow the numbers once again, as I am also find figures at the end of a sentence:

    To find:

    22.356

    so far:

    \d+(?=\.)

    replace:

    \d+(?=\,)

    Lister

    This should work for you

    To find

    (\d+)\. (\d+)

    Replace

    $1, $2

    That there are numbers with a period between them. The expression of replacement will replace your numbers by themselves and the period with a comma. Because the search expression is looking for numbers on both sides of your period, it will leave the ends of sentences only.

  • Display satellite C50-A546 cards how to switch between NVIDIA and INTEL?

    Hello

    How can I switch between NVIDIA and INTEL graphics cards?

    PS
    I have already installed all the drivers, but I can see that INTEL the card used chart!

    * OS: Windows 8.1 x 64
    * NVIDIA driver: 340, 52-portable
    * DirectX: 11

    Hello

    The Intel graphics chip, which is part of the central unit should be used for low performance applications, because it allows you to save energy and reduce the internal temperature.

    For best performance while game, it s advisable to use the external GPU (nVidia or AMD)
    This setting can be changed in the nVidia control panel s

    Here, you should choose manage them 3D settings (can be found on the left in the nVidia control panel)

    Now in the main window, you will find two global settings and program parameters tabs
    In the program settings tab, select the (game) program that needs to use the nVIdia GPU

    If it is not listed, click the Add button
    Then choose the graphic processor preferred for this program (generally must be nVidia processor high performance)

    Last but no less, in this program-specific settings, you can assign additional features to improve performance.

  • How to lock my iPhone 6's screen so it does not move between portrait and landscape?

    How to lock my iPhone 6's screen so it does not move between portrait and landscape?

    Select portrait orientation lock.

    Swipe the top of your home screen to access the control center and select the icon with a lock and an arc around him.

  • Pass parameter value between c# and TestStand

    Hello

    I'm currently futured, customize the User Interface complete

    I Test.seq master who has all the tests and I need to run only the selected test user in the user interface.

    so I thought to transmit the selected user code c# UserInterface test form to master Test.seq.

    How can I pass the value of the parameter or is there another way I can share data between USerINterce and seq file?

    Thanks in advance

    IVI


  • Switch time delay between 3 and back!

    Hello

    I'm trying to figure out how can I switch between three cases in a case structure for a while between each switch.

    For example: I have three cases in a structure of case (case) {0,1,2} where zero is the default case.

    What I want to do is to start in the case of the value by default 0 wait 1 s switch for case 1, wait 1 second switch case 2, wait 1 second back switch for case 1, wait 1 second back to the 0.  Then repeat the order.

    I used the timer elapsed value of the ramp function Tim from a selection function between true and false, but with the additional case I don't think that this approach works.

    Any ideas?

    Search for the term "State Machine". That's what you're trying to invent (nice work) so feel free to 'Cheat' and look for the wheel as it exists today.

    Ben

  • (Vista) Is there a PRACTICE way to switch between speakers and analog headset?

    (Vista) Is there a PRACTICE way to switch between speakers and analog headset? Must I ALWAYS return the default setting, depending on which audio output device I want to use?

    We have recently installed Music Maker 16.  Before that, we never had a need for headphones and a microphone.  Now, in trying to use the headphone and microphone - and THEN switch back to speakers - we discover a problem.  Apparently, the only way to do it is to change the audio output device by default EVERY time.

    The dispute with this cannot be more of this.  My son records a beat and singing (with headphone and microphone), and then, play through speakers (so we can all hear), we need to change the default settings.  And back...  There must be a better way!

    Any help would be greatly appreciated.  Please talk layman jargon; I'm not a COMPUTER guru.  Thank you!!!

    Hi AnnieElle,

    You will need to switch between the speakers and the analog device and special value to use as the default device. There is no way to set the device to be used at the same time. You can follow the steps below to switch between the speaker and analog device.

    1. right click on the speaker icon in the taskbar.

    2. click on the playback device.

    3. Select speakers or analog device.

    4. right-click on it and click on set as default device.

    Hope the above information helps.

    Thank you and best regards,

     

    Srinivas R

    Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Difference between (minidump) and (memory.dmp)?

    Separated from this thread.

    is there a difference between (minidump) and (memory.dmp) I use windows 10

    The main difference is size. Memory dumps are larger and contain a bit more information.

    In most situations, it is best to configure the computer to produce a dump of memory the kernel in case of system failure. A complete memory dump is a very large file to manage so it is more convenient to work with kernel images of memory when you try to resolve the blue screen errors.

    I suggest that you change your dump file settings to produce an image kernel memory. Select the hotkey Win + X , Control Panel, system, advanced system settings, Advanced tab, and click the button settings to start recovery. Under system failure, select the checkboxes before to write an event to the system log and restart automatically. Change the option Write debugging information by using the scroll to the right for image kernel memory. Click OK , and in the next window, click apply and OK. Restart your computer to apply the changes.

  • What is the difference between upgrade and custom installation options?

    * Original title: windows 7

    What is the difference between upgrade and custom installation options?

    Hello

    How to do a clean install:

    http://www.SevenForums.com/tutorials/1649-clean-install-Windows-7-a.html

    Sometimes the only way to upgrade is to do a clean install,

    " Upgrade Windows XP to Windows 7 "

    http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-XP-to-Windows-7#T1=tab01

    To upgrade your Windows XP computer to Windows 7, you will need to select custom during installation of Windows 7. A custom installation keeps your programs, files or settings. It is sometimes called a 'clean' for this reason installation.

    "Upgrading from Windows Vista to Windows 7"

    http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-Vista-to-Windows-7#T1=tab01

    You then have the repair facility, which is an In = Place Upgrade.

    "How to do a repair installation to repair Windows 7"

    http://www.SevenForums.com/tutorials/3413-repair-install.html

    See you soon.

  • MWI delayed power on and off between 5 and 40 minutes

    Unity 4.0.2 unified exchange 2000 tsp 7.02 call Manager 3.3 single does site no cluster

    Hi, I have incorporated the above but got 1 problem of stuborn. the mwi on and off voltage indication are delayed by between 5 and 40 minutes, this problem is related to all users. the problem is internal and external calls. I had this problem of troubleshooting for several days. tests indicate that the message does not appear in the unityMTA but takes about 1 minute to appear in the outlook-box users, when I do a refresh on the light lamps work properly. There is no error on the area of the unit or the gc/dc boxes or e2k clients, but several positions designed, it may be DNS. I tried to add files hosts with no joy. basically is there any way that I can retry the record to know what is happening, or is it possible to force a lamp after so many seconds as a work-around. Thank you. Jim.

    I wonder if the Exchange is slow to tell us...

    In the directory \CommServer\TechTools there is a tool called MBXSuite.exe. Once you open MBXSuite.exe select the mailbox you want to monitor. Choose the account that runs the AvMsgStoreMonitorSvr as for RunAs. Click Notifications, and then click mailbox to logon.

    Once it's done leave a new message to the Subscriber. How long does it take to see you

    Notification received

    TABLE_ROW_MODIFIED

    ?

    Thank you

    Keith

  • Exchange of parameters between MCI and IP IVR

    Hello

    How can I get or post parameters between MCI and IP IVR. These parameters can be used for advanced control of calls, but at the moment I don't have not managed to make these components between them 'talk' with variables.

    Thank you.

    Hello

    You can use for this purpouse the 'Business Get call Info' (data of the IDC to the IP IVR) and 'Business Set call-Info' nodes (IP IVR to CIM data) to SIR script Editor.

    Select from one of the nodes properties and on the 'Général' tab you can get/set the values of the MCI devices Variables (click on the 'Add' button and in the new window you can access these variables in the "Name" drop-down list).

    You can change the "expanded call Variables" in these nodes in the tab ' Variables to call expanded.

    Hope this helps,

    Juan Luis

Maybe you are looking for

  • "error recovery main area".

    Hello I can not access my old video files of my 6 16 GB iPhone, I'm using iOS 10.  When I try to open the videos that I always meet the message 'area main-fetching error' I can't specify when this problem started, but I'm sure it was good when I was

  • Download Firefox contaminated by Artemis Trojan horse! B512E6316312CA8

    McKafee don't let me download Firefox from the official site because of this Trojan horse. As part of the download, I also had an analysis of registry (that I didn't ask for) and a program other than the name which I forgot. is this load of shit down

  • Satellite X 200 - 25i - slow start on

    Hello This cute portable X 200 - 25i and everything you've just bought a few weeks ago works great. But I just realised, it this slow start. It will take about 3 minutes to load all the software, and I did install something special... everything is f

  • Emoticon help

    I use Skype at work. I moved from one computer to another computer and transfer all my converstations to the new computer. While all the files have been moved to the new comp. something happened to my emoticons - no matter what I do, I can't use or d

  • Satellite M50-182: control computer hardware - can't see CPU temp

    Hello I have the Satellite M50-182. I installed the computer Hardware Control 1.10 Beta 02. I can't see my CPU Temp. Can someone help me. Thank you