Avoid menu MENUITEM_SYSTEM duplicate entries

I worked on adding a user option to my application where the user can choose to include an item in the system menu to launch the application.  However, a question which is embarrassing me is how I would ensure that I do not add another element to the menu when you're already in existence.  Looking through the API of the RIM, I can't seem to find a way where can I check if my item already exists in the system menu.

I guess I could keep track of adding the item via the persistent application settings, however, it looks more clean and less prone to problems if I could actually check the repository menu item for the real existence of the item of menu instead.  Is there an API that will allow me to do what I'm missing?

Thanks in advance,

Russ.

you're right, there are no such methods.

I use two different approaches to solve this problem:
- either register the menu items in an autostart entry point
- or use the runtimestore to store the saved item. You can check if the store is empty to see if the article is already registered, and you can retrieve the item for unsubscribe there as well.

Tags: BlackBerry Developers

Similar Questions

  • Table of contents presentation - ok to duplicate entries?

    Hello

    How did you handle a table of contents where the duplicate entries seemed to be useful? This project of Webhelp includes many reports in several projects as shown below.

    Thanks for your thoughts.

    TABLE OF CONTENTS

    Types of reports (book) (this list reports is required by our company()

    Bird (book) project reports

    • Report 1 (page)
    • Report 2 (page)

    Fish (book) project reports

    • Report 1 (page)
    • Report 2 (page)
    • Report (page)

    Reports of project tree (book)

    • Report 1 (page)
    • Report 2 (page)

    ()further down the table of contents()

    Projects of the bird (book)

    • Find birds (page)
    • Take Notes (page)
    • Project reports Bird (book) (you can see that it would be useful in these sections of the project to duplicate report lists)
      • Report 1 (page)
      • Report 2 (page)

    Projects of the fish (book)

    etc.

    I used two techniques, as required:

    • Create snippets with all the content and use it on different subjects. This is useful in situations where topic title and name of the theme file must be different, but the content is the same. I use this for pages in different modules with different names but with the same functions.
    • Create a new table of contents and which merge in several places in the main table of contents. I use this to repeat several books with pages in several places. This allows me to use the menu once. I also use it to divide the appreciable chuncks main menu.

    Kind regards

    Willam

  • MySQL - blocking duplicate entries

    Hello

    The attached code works very well. However, it allows the addition of lines that are duplicated in the MySQL database. How can I reject duplicate rows? (I also want to print an error message if an already existing entry is entered in the HTML form.)

    Thanks in advance,

    John

    "ArizonaJohn" wrote in message
    News:go02ai$CJK$1@forums. Macromedia.com...
    >
    > The attached code works very well. However, it does allow the duplicate lines
    > in the
    > MySQL database. How can I block the duplicate lines? (I join
    > to print
    > an error if an existing entry is entered in the
    (> HTML form).

    To avoid duplicate rows in a MySQL database, add a UNIQUE index
    the column you want to not allow entries double. You can
    Add a UNIQUE index using phpMyAdmin. Make sure first that you have
    removed all the duplicate entries. If you do not use phpMyAdmin, you can
    Run the following SQL query to add a UNIQUE index to the site column
    a tractors named table:

    ALTER TABLE ADD UNIQUE tractors (site)

    If someone tries to insert a value in a column with a duplicated
    A UNIQUE index, MySQL returns the error number 1062, then change the last line
    your code like this:

    $result = mysql_query ("INSERT INTO 'tractors' VALUES
    ('$site', 1, 'vote') ») ;
    If (! $result & mysql_errrno() == 1062) {}
    echo "sorry, $site is already registered."
    }

    --
    David powers
    Adobe, Dreamweaver community expert
    http://foundationphp.com

  • Application server: duplicate entries for the same machine in the screen "select a Mac".

    The application Sever on one of my computers has several duplicate entries in the initial screen "choose a Mac" that appears just after the launch of the application server where you choose the particular Mac which you want to connect.

    My server is in the local IP 10.0.0.5, but there are two entries for it in the list for a reason any, as you can see here:

    I can choose is entered to connect without a problem. They seem to be legitimate duplicates. So I would like to remove one of them.

    Does anyone know where these entries are stored in the file system, or how to remove one of them in the list?

    You can manually edit the plist, or simply remove to rebuild the entire list:

    ~/Library/preferences/com. Apple.Server.v4.plist

  • How to avoid make records duplicate when you save a series?

    How to avoid make records duplicate when you save a series?

    When you schedule a recording for a TV series, Media Center automatically records episodes based on the options you set here.

    1. click the Start button, click all programsand then click Windows Media Center.

    2. on the Media Center start screen, navigate to tasks, click settings, click TV, click recorderand then click default record.

    3 scroll to the series as the default record section.

    4. do one of the following:

    ·         Under Show type, click the plus sign (+) or minus (-) button to record only new episodes, reruns or direct episodes.

    ·         Under channels, click the plus (+) or minus (-) record button present in this series on any channel, or on a specific channel.

    ·         According airtime, click the plus sign (+) or minus (-) button record shows in this series at any time, or only at a specific time.

    ·         Under the keep up to, choose how many records in this series to keep before older episodes are automatically deleted.

    5. click on Save.

  • SMART virtual TabletPC shows the duplicate entries in the Device Manager on Windows 7

    I realize, this is an old thread, but I hope someone is still reading.  We have the same problems since everyone upgrade to Windows 7.  However, when we disable or uninstall SMART virtual TabletPC and restart the computer, the device returns.  Not only she comes back, she keeps just multiplying so there are many listed devices. Is there a way to make it go away forever?

    Hello, Jane HCS122,.

    I suggest you start using safe and remove all duplicate entries here.
    Then stop and restart the computer in normal mode.

    You still see items duplicated now in Device Manager?

    If so, I suggest that you contact Support at SMART help why this is happening.
    http://www.smarttech.com/home%20page/support/regional%20Contact

    Please answer back with an update on your status.

    Sincerely,

    Marilyn

  • Need to remove the duplicate entries 'toolkit', that I imported

    I have a third party than presets Lightroom that I imported and with them came the so-called "toolkit", I managed to import more than once. For this reason, when I go to develop and open the Toolbox that I imported, each option appears more than once.

    I use Lightroom CC, it is far from today and 10 Windows (updated as of today ' hui).

    What is the best way to remove these duplicate entries?

    Here is a screenshot of what I see when I open the line toolkit in Lightroom.

    Thank you!

    A method-Right click a preset unwanted, select [Remove]

    or

    Open preferences / presets 'Show Lightroom Presets Folder' tab, expand the folder 'Lightroom '. Expand the folder "Develop Presets", expand the "Toolkit" folder, delete the unwanted presets, start Lightroom to reset the list of presets.

  • Report of guarantee with several duplicate entries

    I seem to have a problem with the warranty on my Dell OME installation status.  Previously, I was running version 1.2.0 and I started noticing multiple entries for servers with less than 90 days of warranty remaining.  Initially there was a writing by contract of service by the server, so I'm used to seeing 2 inputs for each server.  However, the problem gradually snowballed to the point where now I see a report of 90 day warranty list entries in 1345, when OME only communicates with 94 servers, with only 9 servers who have reached the 90-day expiry period.

    I performed the 1.2.1 update this morning, but the duplicate entries always appear in the report of the guarantee.  Using the troubleshooting tool, I am able to query the correct information of the API of warranty Dell, which leads me to believe that there may be some database entries that are not be cleaned.

    Any ideas on how to clean these duplicates?  Is there something I can try the web console of OpenManage Essentials?

    If this topic has been covered in another thread, can someone point me in the right direction?

    If you are uncomfortable with performing queries on your database directly (AFTER making a backup), you can use SQL Server Manager (free) and delete the entries in the table of coverage. The table is re-filled when the report is run. Use the following SQL to clean the table.

    Remove from dbo.warranty

    If you are not comfortable doing so, you can instead open a ticket and have the support guys review (800-945-3355).

    PPrabhu

  • MAYDAY tab and mouse duplicates entries how to disable it?

    Hello, I have problems with the PDF form entries. I'm a basic user, so please bear with me. I have to fill out an application which is a PDF form. When I fill in a field and then tab or a mouse to the next line down, it duplicates entries in all lines below. When I try to delete these dupes, it deletes all of them. I can't get into topics separated on any of these lines. This is the section where I have to enter the different schools I've attended. I don't know that I've lost you now. In addition, when you enter an X in a Yes / No box, if I choose 'Yes' on the one hand, it automatically inserts a X in the following boxes 'yes '. I'm tearing my hair out trying to figure out how to disable this feature. I have a pc windows 8.1 at home and windows 7 at work. This form is the same on both machines. Is it just me? I stayed near the top all night trying to solve this problem, because I have to have this midnight tonight... I tried to install an older version on the pc of wndows 7, which did not help. The only thing I can think to do to meet my deadline here is to convert a word doc... Please HELP, I scoured the help topics, and all it does is waste my time here at work. Thank you very much.

    I think that based on the b you provide, is that all these fields were of the same name by the form creator. If I'm right, there is nothing you can do except ask the author to correct his mistake.

  • in the tables on Pages duplicate entries

    I have a Pages ' 09 with a table document. It contains hundreds of entries. There seems to be a lot of duplicates. Instead of using all of them manually find and delete, is there another way to do this? Also, how can I stick to the top of the table and remove empty lines after deleting of entries?

    Frank

    There are no controls in Pages ' 09, or Numbers ' 09 to remove duplicates of the tables. There is a checkbox in Excel to remove duplicates. There is also a checkbox in LibreOffice Calc under data: filter: Advanced Filter: Options for removing duplicates. Copy / paste your table of Pages in one of these applications and once that duplicates are eliminated, paste the content in a table of Pages.

  • WMP library has duplicate entries

    When I view the contents of my WMP11 library most of the entries on each album are in duplicate.  Can someone tell me please how to fix this single entry for each record.  Thank you.

    This is may be caused by a corrupted media library. To reset the library, follow the instructions for WMP 11 on XP at http://zachd.com/pss/pss.html#medialibrary . Note the reset of the library will make you lose all the counts to play and possibly ratings too. Tim Baets
    http://www.BM-productions.TK

  • Duplicate entries HD catalog

    LR CC on Windows 10

    I have all my files in a 1 TB harddrive in (saved in other hd) network with the exception of those that currently, I am working on my C drive.

    My file on the hard disk structure is - Buffalo\share\Pictures\Family\subfolders.

    I have a LR separate catalog for my family photos.

    Somehow in the past I have done with two entries in the LR catalog. One is Buffalo\share\Family and the other is Buffalo\SHARE\Family.

    Most of my files is in the second, and all the current entries are transferred in there.

    So I have problems trying to bring together the following folders:

    1. some of the Buffalo\share\Family files are the same as those of Buffalo\SHARE\Family, but with different content. Some of the files are in Buffalo\share\Family only. Files cannot drag from one to the other as "they already exist. Check 'Show in Explorer' confirms that they are all in the same folder on the hard disk.

    2 not all files on the hard drive to show in the catalogue.  I have synced. I tried to import these files but that they "already exists."

    I have attached a screenshot.  It is an old catalog. I got LR since its inception and as you can see the catalog is family-2-2-2.

    There are obviously corrupted

    Can someone give my opinion on the hoe to fix without losing all my files to develop.

    Thank you.

    Ian

    Screenshot (3).png

    After much experimenting, I found the answer that turned out be quite simple.  By selecting the highest level of the folder that I had, I chose "Show Parent folder" in the menu drop-down. " This done then every drive hard entered see Photos/family and photos /Friends.  Then, in one of them I selected delete catalog.  The second hard drive, then disappeared and I have them in one place.

  • ESXi 3.5.0 build-123629 - duplicate entries of VM data store

    Why are the entries of the duplicate VM data store created? For example, I created a virtual machine called "vm-Win2003Svr-Base_20GB" and when I copied (cloned) a different VM, suddenly, there is another called VM and VM 'vm-Win2003Svr-Base_20GB_1' directory I don't know why.

    I can delete this created dynamically fooled and run the 'vm-Win2003Svr-Base_20GB' original without problem. Can someone tell me source the dupe?

    Thank you!!

    see this KB, it may be useful

    http://KB.VMware.com/kb/1007862

  • Do not select the in drop-down fields, JS pls duplicate entries. ?

    Hello

    I have 3 fall to the low fields in my_sub_form, say, my_country_1, my_country_2 and my_country_3. All the field list drop-down boxes are filled with 10 names of countries, say, United States, Canada, Spain, Germany, France...

    Say user selected U.S. my_country_1 drop down field, new user TRYING to select same entry of the United States in the field of the my_country_2 = > here at this point, as soon as the user has selected United States in my_country_2 droppped to the bottom of the Inbox list = > immediately, I need to start the warning message to the user and make the my_country_2 as "" VACUUM.

    Basically, my form does not allow the user to select the duplicate in these 3 fields drop-down entries, all 3 should be SEPARATE.

    If I write JS in the event of my_sub_form, his works well, but not easy to use, this kind of delay.

    So we want to have an INSTANT user alert as SOON AS the user selects an entry duplicated in any field drop-down list

    I tried to put some JS in case of CHANGE of my_country_1 and my_country_2, but does not

    Pls provide me with a few JS and the name of the event, the name of the object

    Thank you

    you could put in the output of the list of my_country_1 event:

    If (this.rawValue == my_country_2.rawValue | this.rawValue == my_country_3.rawValue)

    {

    xfa.host.messageBox ("you can't choose the same country");

    this.rawValue = «»

    }

    then put the same thing in the other menus but change the names.

  • Alert to be fired only for the first record, when there are duplicate entries

    Hello

    This is related to the fact of Oracle 10 g.
    I have a block record multi in which I entered and save some codes, something like below

    Code Description
    =====================
    AAAAAAAAAAAA ABCD
    BBBBBBBBBBBBB PQRS
    GENEVIEVE DAVIS
    ABCD DHGFKSDHKSHG
    PQRS DFJHHGS
    EEEE SDT85604ET
    =====================

    Now I need to post a warning/msg to go when-validate-the field Code. So now if I'm on the first record, the alert/msg will appear for code ABCD which is Ok. Now, on the next album, I get a different code PQRS as indicated above, the new alert appears which is Ok. If I enter a code that has been previously entered into the record block multi and alert/msg had been exposed to the only first alert/msg need is not displayed now know if I enter ABCD again the fourth record, the alert should not be displayed.
    Note that this must be done at the time of data entry itself. I guess that maybe it can be done by using groups Records / table plsql.

    Help with a way to solve this matter will be highly appreciated...

    Thank you and best regards...

    As you have already guessed, you must be able to keep track of how many times a value has been entered. If you know what all the possible values of 'CODE' at design time, you can create a counter for each value variable, but it would be a total pain. A better solution would be to permanently keep a total dynamics you can quickly check against. For this I recommend you use a group of registration of forms. Take a look at the demo of Forms - record group treatment (duplicate values check) I wrote. Using the packet of forms Rec_Group condition in this demo, you can easily change the process listed in the working document in your scenario. Follow all the steps in the demo. For your situation, you must change the when-validate-Item trigger so that instead of checking the dupicates and omitting the form if a duplicate is found, you check the number of entries to a value in the record group and display a message if the number is 0 or not to display a message if the number is greater than 0. Your modified WVI trigger might look like this:

    DECLARE
       ignore     NUMBER := 0;
       bignore   BOOLEAN := FALSE;
    BEGIN
       IF ( :YOUR_BLOCK.CODE IS NOT NULL ) THEN
          ignore := Rec_Group.Get_Number(Rec_Group.rg_name, :YOUR_BLOCK.CODE);
          IF ( ignore = 0 ) THEN
              -- Display your message
          ELSE
              -- Don't display any message
          END IF;
          /* add the code to the record group */
          bIgnore := Rec_Group.Add_Value(rec_group.rg_name, :YOUR_BLOCK.CODE, :system.trigger_record);
       END IF;
    END;
    

    Hope this helps,
    Craig B-)

    If someone useful or appropriate, please mark accordingly.

    Published by: Silvere March 30, 2011 15:07

Maybe you are looking for

  • The airPort Extreme is not working after Firmware update

    Hello At our office, we have several AirPort Extreme or TimeCapsules and one of them (AirPort Extreme) stop working properly after the update 7.7.7 The update itself is supposed to be ok and we have updated all our stations but it only seems to not w

  • Hp HP 2542: 2542 will scan only one letter

    Hello I have a HP 2542, it's for my dad, he wants to use it only as a standalone Copier, no pc attached, just lift the lid put the papoer to press on print, then get a copy at the other end. How simple is that? BUT the scanner will scan only of lette

  • iOS touchscreen 9.2 / scrolling

    After installing iOS (iPad air) of 9.2 scrolling in Safari and Firefox is very slow and not smooth at all. Is this a bug? What should do?

  • Cannot print in color from Mac to HP 8620

    I just bought a new printer 8620, and it allows to print only in black and white. I looked for ways to pass color printing, but I can't find. The color ink is in good shape, if this isn't the issue. Carl

  • Can not put software 4402 WLC

    Hi guys,. I am trying to upgrade the software for my WLC 4402, but it keeps saying "Failure" while storing Flash, the only way to upgrade this box is using TFTP, so I changed to a new tftp server (tftpd32 it can handle files larger than 32 MB), the n