ActionItem shown twice

Hi guys,.

I have a weird question. When you add an action item to the action bar, and if I use ActionBar.placementproperty, point of Action is displayed twice.

Please, see the image below

Code snippet I used:

 actions:ActionItem {
                title: "Show Next Page"
                ActionBar.placement: ActionBarPlacement.OnBar
            }

And if I remove ActionBar.placement every thing works fine.

Could you please suggest me what could be the possible solution?

Update:

Found, this problem is when adding

qml->setContextProperty("cppObject", this);

in my CPC file.

Thank you best regards &,.

SHA.

Hello

Save the properties before you create the root object to work around the problem. This thread has more information:

http://supportforums.BlackBerry.com/T5/Cascades-development/duplicate-ActionBar-buttons/m-p/2157969#...

Tags: BlackBerry Developers

Similar Questions

  • Why all the results are duplicated when searching in my bookmarks library?

    If I search for "Shell", for example, and then click on the 'name' column, most of the 'results' are duplicated. For example, "Perdido | On Shell"in the"shell"folder Parent is shown twice... same URL and al. I see that the or after the 01/02/2013 added bookmarks are NOT duplicated.

    In my case, the bookmarks ARE actually duplicated. I checked by exporting and by analyzing the HTML code.
    The whole "All bookmarks" hierarchy had somehow been copied into a random location of my favorite tree. This is why all bookmarks except most recent lie twice.
    It looked like this:

    - All Bookmarks
      + Bookmarks Toolbar
      + Bookmarks Menu
         + MY_FOLDER_A
         + MY_FOLDER_B
         - MY_FOLDER_C
           MY_NESTED_FOLDER_A
             - All Bookmarks
                .... older state fully duplicated!!!
    

    I deleted the nested copy of "All bookmarks" and it seems OK now.
    I made this copy by mistake (which I highly doubt) or a bug caused.

    Good to hear that you are not using Firefox Sync (I use it). It would have been a Prime Minister candidate for causing a problem like this. (My bad favorites have been replicated to all of the computers connected with synchronization).

    The copy of "All bookmarks" should have been made over the past months, but I couldn't determine exactly when. The copies have the same ADD_DATE and LAST_MODIFIED timestamp in the HTML file.

  • Blue error screen dead STOP 0 x 00000116

    When I turn on my laptop normally, I have this blue screen: STOP 0 x 00000116

    When I put it on safe mode it cannot load all files and gels
    the single screen, as in there is not a single screen, but it displays everything several times, for example, there are two mouse and text is shown twice and shown ontop of each other, making it difficult to read

    "It is not a true crash, in the sense that the blue screen was launched only because the combination of material and video driver video was to be insensitive and not because of any exception processing synchronous".

    Since Vista, the components of "Timeout detection and recovery" (TDR) of the subsystem video OS have been able to do some really impressive things to try to find issues that would have led to the earlier OS like XP to crash.

    As a last resort, the TDR subsystem sends a video driver command "Please restart you now!" and wait a few seconds.

    If there is no answer, the BONE concludes that the combo of driver/hardware video has really collapsed in a heap, and it fires at this stop 0 x 116 BSOD.

    If playing with video driver versions did not help, make sure that the box is not overheated.

    Try to remove a side panel and a fan of big sector directly to the motherboard and GPU.

    Run it like that for a few hours or days - long enough to check whether the cooler temperatures make a difference.

    If so, it could be as simple as dust accumulation and inadequate cooling afterwards.

    I download cpu - z and gpu - z (both free) and keep an eye on the video time

  • In WLM contacts

    To my surprise I suddenly find myself with a lot of Contacts being shown twice and sometimes three.
    These repetitions have increased my list of Contacts WLM from 263 to 404.
     

    I have made several attempts to remove the surplus of Contacts but all without success. They will not be deleted!

    Response from the support of Microsoft Office could not help that his reference to Clean Up Contacts produced 'impossible to find duplicates.

    They were indeed not to run, but very present when I go to Contacts.

    Could someone please advise how to remove these repetitive contacts?

    Beach 5032

    With Windows Live Mail in the contacts mode, select consider as > list. Right-click on the column headings to add, edit and delete columns until you see at least name, personal e-mail address and leave. Then click on a column header to sort by that field. You can remove contacts are those of AddressBook. Other sources - networks, or maybe none - can only be deleted in the source application. If you don't want to see them at all, you'll have to break the link between your account and the other network at http://profile.live.com, or perhaps simply sign out of Windows Live Mail.

  • Reduce memory Oracle settings?

    I have an Oracle database installed on a Windows Server 2003 with 16 GB of RAM. I need to copy this database to a Windows 2008 box that has only 4 GB of RAM. Here are the current init params, but I'm confused on the memory settings. 9 first params seem to be sga and pga components but I see sga_target and pga_aggregate_target shown twice.

    Not sure what params to reduce to get this database to work with only 4 GB. Thanks for any input.

    test.__db_cache_size = 956301312

    test.__java_pool_size = 33554432

    test.__large_pool_size = 16777216

    test.__oracle_base='d:\app\oracle'#ORACLE_BASE the value of the environment

    test.__pga_aggregate_target = 1879048192

    test.__sga_target = 3489660928

    test.__shared_io_pool_size = 285212672

    test.__shared_pool_size = 2147483648

    test.__streams_pool_size = 16777216

    * ._gby_hash_aggregation_enabled = FALSE

    * .aq_tm_processes = 0

    * .audit_file_dest = a: \APP\ORACLE\ADMIN\TEST\ADUMP'

    * .audit_sys_operations = FALSE

    * .audit_trail = "NONE".

    * full = '11.2.0.3'

    * .control_files ='D:\APP\ORACLE\ORADATA\TEST\CONTROL01. CTL',: \APP\ORACLE\ORADATA\TEST\CONTROL02. CTL',: \APP\ORACLE\ORADATA\TEST\CONTROL03. CTL'

    * .db_block_size = 8192

    * .db_domain = "

    * .db_name = 'TEST '.

    * .db_recovery_file_dest = "G:\Oracle\flash_recovery_area".

    * .db_recovery_file_dest_size = 21474836480

    * .db_securefile = "ALLOWED."

    * .diagnostic_dest = a: \APP\ORACLE'

    *. Dispatchers ='(Protocol=TCP) (SERVICE = TESTXDB)"

    * .enable_ddl_logging = FALSE

    * .event = "

    * .fixed_date = "NONE".

    * .global_names = TRUE

    * .java_pool_size = 0

    * .job_queue_processes = 1000

    * .license_max_users = 300

    * .log_archive_dest_1 = "LOCATION = G:\Oracle\flash_recovery_area\TEST\ARCHIVELOG'"

    * .memory_target = 5368709120

    * .nls_length_semantics = "BYTE".

    * .open_cursors = 300

    * .os_authent_prefix = '0'

    * .pga_aggregate_target = 209715200

    * runoff = 150

    * .recyclebin = "OFF".

    * .remote_login_passwordfile = "EXCLUSIVE."

    * .resource_limit = TRUE

    * .resource_manager_plan = "

    * .sec_case_sensitive_logon = TRUE

    * .sec_max_failed_login_attempts = 3

    * .sec_protocol_error_further_action = 'drop', '3'

    * .sga_target = 0

    * .shared_pool_size = 2147483648

    * .sql92_security = TRUE

    * .undo_retention = 900

    * .undo_tablespace = "UNDOTBS1.

    The key parameter for the allocation of memory in your case is memory_target.

    Try to reduce this say 3 GB (after backing up everything of course):

    ALTER SYSTEM SET memory_target = 3G SCOPE = both;

    Other settings related to the memory should adjust accordingly.

  • When we update an appearance of existing pdf files of the ' < < / Count "increases.

    We have a PDF with 20 pages and when we opened this file in editplus to see its contents, it displays "< < / Count 20.
    But when we add new page or insert another pdf file the "< < / Count" is shown twice with 20 values and the number of pages added, i.e. "< < / count 20", "< < / count 22" (if we added new pages to him). "
    Please confirm why this is happening?

    None of this is unusual or unexpected. Discover the object flow and incremental updates.

  • join two tables and results to display checkboxes checked... loop david powers please?

    Summary

    two tables:

    Table 1 categories

    Table 2A categories that someone has selected

    HTML form that updates the user's data:

    form should show all the options in the category dynamically in table 1

    and also to display the check box of the category as controlled dynamically if the person chose by table 2

    The nuts and bolts

    Attempt 1

    My sql:

    SELECT cat.id, cat.category, mcat.category as mcategory

    THE CAT of categories, members_categories mcat

    WHERE mcat.member_id = ' "." $_GET ['id']. »"

    ORDER BY category ASC

    (run on its own, all categories of table 1 are shown twice and the results of table 2 is a total cluster.)

    area of the form with checkboxes:

    <? PHP {? >}

    < input <? PHP if (!) ((strcmp($row_rsCategories['mcategory'],$row_rsCategories['id'])))) {echo ' checked =------'checked\' ' ;}?} > name = "category []" type = "checkbox" value = "<?" PHP echo $row_rsCategories ['id'];? ">" / > <? PHP echo $row_rsCategories ['category'];? > < br / >

    <? PHP} while ($row_rsCategories = mysql_fetch_assoc ($rsCategories));? >

    what I have here results:

    all categories displayed twice with selected categories of table 2 verified = by the results of sql when running alone

    Attempt 2

    My sql:

    SELECT cat.id, cat.category, mcat.category as mcategory

    CAT categories

    LEFT JOIN members_categories mcat WE mcat.category = cat.id

    WHERE mcat.member_id = ' "." $_GET ['id']. »"

    ORDER BY category ASC

    (run on its own, all categories of table 1 who have a match in the table 2 and none of the other in table 1 shows)

    area of the form with checkboxes:

    even the first attempt

    what I have here results:

    all categories selected in table 2 shows and checked, and no other choices of table 1 = by the results of sql when running alone

    Attempt 3

    My sql:

    SELECT cat.id, cat.category, mcat.category as mcategory

    THE CAT of categories, members_categories mcat

    WHERE mcat.member_id = ' "." $_GET ['id']. »"

    GROUP BY cat.id

    ORDER BY category ASC

    (running his own, all the choices in the category of table 1 are displayed, however, the mcategory column displays the lowest category numbered (same one) against all of these options rather then correspond to their.)

    area of the form with checkboxes:

    even the first attempt

    what I have here results:

    all choice of category in table 1 are displayed, however, only the first category in table 2 (which in this case is the lowest number) is marked as checked with the checkboxe, even if there is more then one category in table 2 = by the results of sql when running alone

    so, can anyone help?  I'm just banging my head against the wall here is something missing that should be obvious, because the sql is not giving me what I need to work with the form in a loop region.  Perhaps another approach should be taken and I have change the loop as well, but I think that this can be resolved with the sql.  Thanks in advance.

    Well, you can use two separate sql queries...

    one with the names of the categories

    and the second nested with the loop that references the id of category in table 1 to pair with table 2

  • Press back twice to rename files?

    On my MacBook Pro (mid 2015 running 10.11.4) I have to press the return key twice when a file or folder is selected in the Finder in order to be able to change its name. The first time I press return has absolutely no effect or action. I think it is a particular behavior, I've not met in any of my other machines and I don't know how to change it. Any ideas?

    Hello, SonathD.

    It seems that you are having problems with your Finder not allowing you to rename a file or folder by using the return key after choosing, he. You are right in your expectations of the process of change of name, as shown in this Knowledge Base article:

    OS X El Capitan: rename files, folders, and disks

    You can change the default name of most of the files, folders and disks, including the internal hard drive (named Macintosh HD). If you change the name of your hard drive, it always appears with its original on a network name.

    Rename an item

    1. Select the item in a window in the Finder or on the desktop, press return. Or force click on the name of the element.

    2. Enter a new name.

      You can use numbers and most of the symbols. You cannot include a colon (:)) or start the name with a dot (.).) Some applications may not allow you to use a slash (/) in a file name.

    3. Press return.

    For further troubleshooting, you can test this behavior to another user to determine if your problem is specific to the user or the system-wide. This article provides a great tutorial on how to do:

    How to test a question in another account on your Mac.

    Before you try a different user account

    If you see unexpected behavior on your Mac to first try the following steps:

    Try to search the base knowledge of Apple for the specific symptom or an alert message you see. There could be more simple measures that you can take to solve the problem.

    Try to boot your Mac in Mode safe. Restart your computer. Hold the SHIFT key when you hear the startup sound. Release the SHIFT key when you see the Apple logo appears. Your Mac starts up in Safe Mode. Safe mode performs a check of your startup disk directory and removes data from the cache. Once your finished Mac commissioning, restart the Mac normally (without hold the SHIFT key) and see if the problem is resolved.

    Make sure your software is up-to-date. The question that you see can be addressed by installing the available updates.

    Check to see where the problem occurs. If a problem arises until you see your desktop, it is less likely that it is related to a setting or a user account. If a problem occurs with a Web site, see if the pages of other websites correctly first load. There could be a problem with the site and not your Mac.

    How to test with another user account

    You can find out if unexpected behavior is related to the user file or a parameter in trying to reproduce the problem to a different user account. This process includes creating a new user account, connect to it and test for the issue.

    Create a test user account

    1. In the Apple menu, choose System Preferences.
    2. Click the users and groups in the System Preferences window.
    3. Click the lock icon and enter an administrator name and password.
    4. Click on the button Add (+) below the list of users.
    5. Choose a type of user in the new pop-up menu.
    6. Give the user a name and first name, account name, and password.
    7. Click OK.
    8. Close the System Preferences window.

    If there are documents from your user account that you want to test with original, place a copy of these items in the shared folder in the users folder. Press the Option key while dragging a file in this folder to create a copy.

    Connect to the test user account

    Log out of your current user account by choosing logout in the Apple menu, and then open a session the new account that you created. If you are prompted to login with your iCloud or Apple ID account when you log in, skip this step.

    Try to reproduce the problem

    Try the same steps that caused the unexpected behavior to appear. For example, if you are unable to print, try printing from this user account. If you were unable to connect to the Internet, try to navigate on a website of this user account.

    If you use specific test settings depends on (for example using a specific e-mail account or an account iCloud) implemented the same test user account. For email and other parameters, you can use the Internet accounts pane in system preferences to set up these types of accounts. If your home folder files are necessary for tests, copy them into the shared folder in the users folder (/ Users/Shared). After you connect as a user test, copy these items to the same location in the test user home folder to test with.

    If a problem occurs in account only one user

    Is using the same steps in a user account test does not cause the same unexpected behavior, most likely you don't need to reinstall applications or OS X.

    • If a problem occurs only in a single application, check the documentation or Web site for instructions on troubleshooting specific preferences or the definition of the application files.
    • If you need help with a problem or a specific alert message, search the Apple support Web site for the text of the alert message you see.

    If a problem occurs in more than one user account

    If the same unexpected behavior occurs in more than one user account on your Mac, try checking for software or hardware problems.

    Once you have finished

    When you are finished testing, disconnect from the test account by choosing logout in the Apple menu. Then, connect to your original user account.

    You can Remove the account to test user created when you are finished. Make sure you're completely finished stable, and you don't need the files or settings you have created or copied there until you delete it.

    Get help

    If you need assistance with a problem software or hardware, Please contact Apple technical support. If you are working with a consultant, engineering or service provider to resolve a problem, remember to mention all the steps you have already tried and the results. Also mention the alert messages that you saw in the context of the question. You can take a screenshot of all the messages that appear to refer to it later.

    Thank you for reaching out to the communities of Apple Support.

    Kind regards.

  • Satellite L500/00W - gray screen with lines appeared twice

    Hello

    2 weeks ago, I bought a laptop Toshiba Satellite L500/00W and today I was reading something online that this grey screen with lines to come...
    He did so twice already... I do worry...

    This could be the cause? How should I do? This happen to anyone else?

    Thank you
    Lily

    Hello

    I m not L500 owner so I can't tell you if that happened or not.
    I A200 and U400 for my company and I didn t have shown such symptoms in the past

    He signed strange s if the display changes the brightness and display vertical lines.
    It might be a problem of display or something with the graphics card.

    If you see this new symptom then I would recommend connecting the laptop for external monitor to check if the same would be visible on the screen 2.

    If the same would be seen on 2nd screen there is a big chance that and GPU would be affected.

  • Label visibility does not not with actionItem

    Hello

    I have a follow up on my page. I want to alternate the two labels of visibility on my page. So when I click on the action point first, I want the title to change the visibility of Label1 to disable and visibility of Label2 to switch on. And conversely, when I hit the actionitem twice.

    When I click on it the first time, changes in visibility (i.e. no visible = label1, label2 = visible and the title was changed to the action item).  However, it will not work the second time I click on the button - it remains fair to label2 = visible and the title for the action remains the same.

    Any ideas? Here is my code below:

    Page {
        id: pageID
        Container {
            id: rootContainer
            Label {
                visible: true
                id: label1
                text: "Label 1"
            }
            Label {
                visible: false
                id: label2
                text: "Label 2"
            }
        }
    
        actions: [
            ActionItem {
                id: actionitem
                title: "View Label 2"
                ActionBar.placement: ActionBarPlacement.OnBar
                onTriggered: {
                    if (label1.visible = true) {
                        label1.visible = false
                        label2.visible = true
                        actionitem.title = "View Label 1"
                    } else if (label2.visible = true) {
                        label2.visible = false;
                        label1.visible = true;
                        actionitem.title = "View Label 2"
                    }
                }
            }
        ]
    }
    

    Hello

    My friend ther are different between '=' and '== '.

    You must write "is" (label1.visible = true) in your code to check the status.
    .

    Statement of console.log("") User for debugging.

  • I have a macbook pro 2010 and already have updated twice.  Should I move a third time?  I was in the apple store some time ago and they told me not to upgrade a third time.  Can I update or not and why?

    I have a macbook pro 2010 and already have updated twice.  Should I move a third time?  I was in the apple store some time ago and I was told that I should not upgrade again.  Can I update or not and why?

    Upgrade what to what? We don't know what you're asking. Writing an effective communities of Apple Support question.

  • Request the password twice

    I upgraded my MacBook Pro (2015) to macOS Sierra today and immediately got into trouble. Its ask me password twice when I turn on the computer. First of all, I use iCloud word password and then as soon as I have to use my account password facility Sierra forced me to create.

    Who would say that you have enabled FileVault. The first connection must decrypt the drive. The second is to log on to an account.

    Yes, you must have a password for an administrator account. If you don't want a password on your account, create a new admin account and log in there. Then, remove the ability of the administration of your account, and remove the password (set it to empty).

    However, you will not be able to decrypt the drive with this account. He must have a password.

    Before changing Auditors autour, I would turn off FileVault. After that everything works, you can re-enable them if you wish.

  • We went to MacOS Sierra of El Capitan and now have to log in twice, when we start the computer.

    We have upgraded to Mac OS Sierra of El Capitan, and now we have to log in twice, when we start the computer.

    How fix us this?

    Thank you...

    All the best...

    God bless...

    If you have activated the preferences-> Security-> FileVault system, then you must enter your password initially so that device drivers can decrypt your encrypted drive.  Once the system is running, you must then log into your account.

    They are really 2 separate activities that happen just to use the same password.

  • Drive hard breaks down again replaced twice.

    My macbook 15 "always crashes after the hard drive replaced twice. Interestingly, the crash is identical to the type of collision before it was replaced. Everything should work fine then the screen goes black and a white screen with a small police saying the computer has encountered a problem and is set to zero. After all this recharges a window pop up titled "Problem report for OS X" saying my computer restarted because of a problem with a huge list of details of the details of the problem and the system configuration (I can stick below if someone can help me solve this problem). It should be noted that sometimes the fan will work abnormally hard sometimes. She sometimes coincides with the crash and sometimes not. There is no decipherable pattern in this area. My DVD player is also not working. I have run the disc several times utilities in all possible scenarios without result and are running out of ideas.

    Here is a list of possible scenarios, I thought, but would like feedback and help with new suggestions or assistance.

    (not in any intentional order of importance or probability)

    1. There is a virus.

    2. the DVD player is somehow originally the crashed hard drive.

    3. a previous operating system incompatible program is causing system to block (not likely because the accident happened until I upgraded the OS and has continued thereafter)

    3 Apple wants me to buy a new machine

    Information on Mac:

    El Capitan

    MacBook Pro mid-2010

    Processor: Intel Core i5 2.53 GHz to

    Memory: 6 GB 1067 MHz DDR3

    HD: a SATA 1 TB disk

    Thank you in advance for your help!

    You said "a huge list details of the details of the problem and the system configuration (I can stick below if someone can help me solve this problem)."

    Yes the poster.

    You can have this problem

    MacBook Pro (15-inch, mid 2010) intermittent black screen or the loss of video quality program is over - Apple Support

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum

  • Beachball of death / impossible to find movie files shown in disk utility

    Then, I started having the awesome beachball.  All the time.  I tried first aid utility disk, in addition to empty my cache dyld.  Seems to have worked.  Looking for a solution to this as well as when I ran disk utility, it shows that I have 380 + GB of movies.  And hoping the clearing space will decrease the appearance of the beachball if nothing else.

    I realized that I had a bunch of movies sitting in a folder I have is no longer necessary, so I deleted, emptied the Recycle Bin and rebooted.  Twice.  And disk utility still shows that I have who have lots of space consumed by the movies.  I did a search through the fichiers.mp4/.mov/.m4v/etc finder and come up with very little.

    Is there something else I can / does not?  I'm not really wanting to download third party software however.

    And it is solved after leaving it alone for a while.  Probably just needs some behind the scenes stuff to happen.

Maybe you are looking for

  • All the music removed from the iPhone

    I was listening to music on my phone today when he stopped playing. Looking at my library, all my music not downloaded from iTunes has been removed from my phone. I do not press anything and have no idea of what has past. Does anyone else have this p

  • The use of Contacts in El Capitan

    I find very little support on the Contacts and nothing on the notes section. Can I insert an image in the Note of Contacts section, say a business card? Thanks in advance!

  • How to install blur, once the phone is in use?

    I just bought my backflip last night. The seller got my husband phone works fine, but I can't get mine to sync any email or load applications. It seems that she got my blur account set up when he started first, and now I can't get anything to work on

  • is it safe to access the internet after April 8 if I bought independent security of AVG?

    I have a full day of security system, so probably protect my computer even if is no longer, I'll get Windows updates?

  • connect the bluetooth adapter

    I try to install Targus USB Bluetooth Adapter and will have questions. Defrost not recognized. I have xp pro sp3. Istalled Bluetooth enumerator BUS and updated driver. I installed the software and driver from Targus and it is not recognized when I cl