Can't get multiple selections of work ListView

The example code here seems very simple:

https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__multiselecthandler.html

I use the code example to use with ListView as my model:

            ListView {
                id: listView
                objectName: "listView"
                dataModel: photosModel.photoGridModel

                snapMode: SnapMode.LeadingEdge

                layout: GridListLayout {
                    id: gridListLayout
                    objectName: "gridListLayout"
                }

                onTriggered: {
                    var newPage = photosPageDefinition.createObject();
                    photosModel.setPage(newPage);
                    navigationPane.push(newPage);
                    navigationPane.peekEnabled = false;
                    photosModel.launchFullscreen(indexPath);
                }

                multiSelectAction: MultiSelectActionItem {}

                multiSelectHandler {
                    // These actions will be shown during multiple selection, while this
                    // multiSelectHandler is active
                    actions: [
                        ActionItem
                        {
                            title: "Tag"
                            imageSource: "asset:///images/tag.png"
                            onTriggered: {
                                // TODO
                            }
                        },
                        ActionItem
                        {
                            title: "Share"
                            imageSource: "asset:///images/share.png"
                            onTriggered: {
                                // TODO
                            }
                        },
                        ActionItem
                        {
                            title: "Move"
                            imageSource: "asset:///images/folder.png"
                            onTriggered: {
                                // TODO
                            }
                        },
                        DeleteActionItem
                        {
                        }
                    ]

                    status: "None selected"

                    onActiveChanged: {
                        if (active == true) {
                            console.log("Multiple selection is activated");
                        }
                        else {
                            console.log("Multiple selection is deactivated");
                        }
                    }

                    onCanceled: {
                        console.log("Multi selection canceled!");
                    }
                }
            }

When loading the application, I long press on an item in the GridView control and nothing happens.

Can you clarify what this means 'does not '?.

EDIT:

OK, now I see. To make it work, you must set an empty or nonempty ActionSet for each listitem.

StandardListItem {
    title: ListItemData.title
    contextActions: [
        ActionSet {
        }
    ]
}

Now, it will work.

Tags: BlackBerry Developers

Similar Questions

  • After a clean install of Windows 8, I can't get three monitors to work

    I did a clean install of Windows 8 pro.  I have a Dell T1500 with over-pants V4800 graphics.  This machine previously had Windows 7 installed and works with the ATI driver.  With Windows 7, the three monitors worked without problem.  Now, with Windows 8 installed I can't get two monitors to work.  I use the more updated driver for Windows 8 for the map on the website of AMD.  The third monitor can be seen on the page of the screen resolution, but I cannot "extend desktop...". "the third arch.  When I try to do so it gives me a message saying

    "The display settings could not be saved.  Please try another combination of display settings. »

    All three monitors are the same, Dell P2210.  I tried different resolutions. I tried the driver I was using on Windows 7, I uninstalled the driver and adapter repeatedly.  I installed all the drivers from AMD with the extras (hydravision, etc.).  I used just the default Windows drivers. I have change the placement of the monitors on the video card, but few matter where I plug them in, only two works.  All monitors are operational.  I even tried different monitors.  All this with no result.  I tried to use the Catalyst Control Center.  He sees the third monitor but just shows it as being disabled with no way to enable that I see from in the Catalyst Control Center.

    It is the last obstacle for me to fully use this machine to Windows 8.  I'm puzzled.  I have read many other forums.  I've heard of this problem with Windows 7 as well so I don't know that it's specific to 8 but could very well be.  Yet once I had Windows 7 with three monitors with the same card.  Contribution to this issue would be greatly appreciated.

    I had this problem on a Lenovo three installation of the monitor using the integrated display laptop, a monitor outside the mini HDMI and a third follow out of the HDMI Port among Replicator.

    In the end, it's a simple solution.  When you go to display settings, all three monitors not reimbursed up to 1920 x 1080 and configuration could never be saved - however the 3rd monitor only supported by 1680 x 1050, which is the resolution (recommended).  After changing the 3rd monitor for the resolution recommended, I was able to save the configuration to display > screen without problem resolution.

    I don't know why the resolution not supported has been set default to-after selecting the right pair, there is now no option to go to the highest resolution not supported on this screen.

  • I can't get Google maps to work on Firefox.

    I can't get Google maps to work on Firefox. I have a web site with a Google map on this topic, but potential customers using Firefox will not be able to use this function to locate me. Can someone please help me solve this problem?

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

  • Satellite 1800 Windows XP - can't get Ethernet/LAN to work

    Hey everybody,

    I am struggling with this for hours...
    I installed windows xp on this old laptop, Satellite 1800 PS181C, and I can't get the drivers to work for ethernet can work

    It worked fine when I had windows 2000 on it, but as the OS crashes constantly, so I opted for XP instead.

    In Device Manager, it lists the network adapter under 'hidden features' for a reason, it is called "Intel 8255 x-based Fast Ethernet.
    It is said there is a driver installed for it, but when I try to create a new internet connection, it tells me that no adapters are installed!

    I tried the site LAN driver, the last that appears is for windows 2000, I tried anyway according to the installation instructions, didn't work at all

    I watched the driver on the Intel Web site, she me tied to a PROWin32.exe file, I tried to install, it says I have no card compatible?

    This leads me into the wall. There must be a way to make this work.

    Help is very appreciated!

    Thank you

    Can you please send the exact model laptop (1800-xxx) name?
    What WXP version do you have installed (service pack)?
    Have you consulted the Toshiba download page? This model is supported for Windows XP Home edition?

  • Satellite A200-196: can't get all speakers to work with the home theater sound Creative T7900

    I run windows Vista Home premium, on my Toshiba Satellite A200-196, and I have a creative T7900 7.1 System.
    I'm not all stakeholders to work. Only the woofer and two front speakers are currently playing a sound.

    The sound in Control Panel option gives me the options in addition to stereo speakers.

    I have no possibility to choose 5.1 or 7.1 speakers and I need to know do I need a software driver (all drivers are appearing to date), or do I have to change to another option, or buy an external sound card?

    I have only two input jacks, input microphone and headphone output. How can I get all stakeholders to work and achieve the home theater experience?

    Hello

    I Don t think that the sound card is capable of doing 5.1/7.1 since there are many takes longer then a "sound-output.

    If I were you, I would buy an external USB soundcard that is capable of doing 5.1 or 7.1 to offer you experience complete home theater.

    Another solution is not existing. Sorry mate.

    welcome them

  • can I get multiple Skype numbers?

    I will travel internationally a lot. Can I get multiple numbers for an acount with diferent indicative country?

    Yes - you can have a maximum of 10 - all in different countries.

    TIME ZONE - US EAST. LOCATION - PHILADELPHIA, PA, USA.

    I recommend that you always run the latest version of Skype: Windows & Mac

    If my advice helped to solve your problem, please mark it as a solution to help others.
    Please note that I usually do not respond to unsolicited private Messages. Thank you.

  • I can't get my psc1210 to work on my new laptop running windows 7.

    I can't get my psc1210 to work on my new laptop running windows 7.  I followed all the advice on the HP support pages, but nothing helped. some of the things I've tried:

    (a) followed by editing according to the http://support.hp.com/us-en/document/c02658990 it happens according to plan exccept that when windows 7 detects and tries to install the drivers, it fails. No details given on which iot fails. Troubleshooting process does not help

    (b) follow instructions as per http://support.hp.com/us-en/document/c02681060 however, the installation wizard detects that the printer drivers are not installed and just leaves everything!

    Any suggestions on how to get this range of hp psc1210 printers work with my computer laptop windows 7 would be appreciated.

    Thank you.

    Michael

    Hi Michael,

    Please, try the following:

    Make sure that the printer is not connected to the PC.and, follow these steps:

    1. In the Windows taskbar, click the Windows icon ( ), and then click devices and printers . Opendevices and printers window.
  • My new system see the the old system in the network, but I can't get the passwords to work and I tried all the. Now what?

    ESTABLISHING A NETWORK.

    My new system see the the old system in the network, but I can't get the passwords to work and I tried all the. Now what?

    Hello

    1. don't you make changes on the computer before the show?
    2. what version of operating system you are using on the computer?
    3. which network you're talking about (home wireless network or group)?
    4. which steps have tried?


    If you use a group home on the computer, see the link for more information.
    Home Sweet homegroup
    http://Windows.Microsoft.com/en-us/Windows7/help/home-sweet-HomeGroup-networking-the-easy-way

    You can also check out the link.
    Microsoft's strategy concerning lost or forgotten passwords
    http://support.Microsoft.com/kb/189126

     
    Provide us more information for you to help.
  • I can't get my headphones to work

    I can't get my headphones to work

    Hi Justin,

     
    1 have you made changes to your computer recently?
    2. What is the operating system installed on your computer?
    3. you receive an error message when you try to use your helmet?
     
    I suggest you to follow the steps and check if it helps.
     
    Step 1: Follow the steps and check if that helps.
    (a) plug the headphones into the socket and then right click on the volume icon in the system tray.
    (b) click "reading devices".
    (c) check if the headphone is displayed in the list of playback devices.
    (d) if so, try him affecting the value "Default" for use.
     
    Step 2: If the headset is not listed, it is possible that the headphone jack is damaged or the sound card driver is not compatible with Windows 7. Try updating the sound card drivers and check whether the problem is resolved.
     
  • I can't get my headphones to work. The people can hear me but I can't hear them on Skype. I can get them reactivate.

    I can't get my headphones to work. The people can hear me but I can't hear them on Skype. I can get them reactivate.

    Hello

    ·          The headset works fine on another computer?

    ·          You are able to use the headset with any other application?

    ·          Is - what the computer speakers are working well?

    ·          The headset worked fine before?

    This could be a problem with the headphones itself, you can contact the manufacturer for the same thing.

  • MG6320 on Mac - can't get the installer to work

    I can't get the installer to work, fails to connect to the printer without wireless or wired. However, the Apple system preferences printer box can find the printer, allowed me to install the Apple driver, and I can print. I can also scan but only by using the Apple software. What should I do to get the additional applications provided with the printer to work, and why the all-in-one installer driver does not work?

    I am running Mac OS X 10.7.5, no firewall problems.

    Thank you!

    Hello.

    Please try to download the latest drivers for Mac OSX and software on our Web site.  These items can be downloaded from the following link:

    http://www.USA.Canon.com/Cusa/support/consumer/printers_multifunction/pixma_mg_series/pixma_mg6320#D...

    If additional information is required, please call us at 1-800-OKCANON.

  • Acer Aspire TimelineX 1830 68U118-t with a new hard drive. How can I get the bluetooth to work?

    I have an Acer Aspire TimelineX 1830 t-68U118.  The original hard drive died, so I replaced it with a new hard drive.  I loaded Windows 7 x 64 and loaded the chipset drivers and the network drivers.  The laptop is always my bluetooth equipment (even if I loaded the drivers Atheros).  Does anyone else have this problem?  How can I get the bluetooth to work?

    It would probably depend on the status of the warranty of the system.

    You must contact the service for options.

  • I can't get my printer to work

    I can't get my printer to work. It will not print anything it is on and connected but does not print.  A sign error appears when I click on printers and devices, and wrote that a document keeps the printer from printing, however, it's the doc that I just tried to print, so I cancel, and then it shows that the printer is ready, but when I try again, the same thing happens.

    I can't get my printer to work. It will not print anything it is on and connected but does not print.  A sign error appears when I click on printers and devices, and wrote that a document keeps the printer from printing, however, it's the doc that I just tried to print, so I cancel, and then it shows that the printer is ready, but when I try again, the same thing happens.

    First, clear the print queue of the printer.  If that doesn't work, post back with the complete error message, the brand and model of the printer, how it is connected to your computer and the version of Windows you have, including the service pack.

    Clean the print jobs pending

    • Open a command prompt window (start > run > cmd > OK)
    • Type the following in the black command prompt window, and then press ENTER after each line (don't forget the quotes)

    net stop spooler
    del/q '% windir%\system32\spool\PRINTERS\*.* '.
    net start spooler
    output

  • HP Photosmart series 7520 I can not get my fax to work at all

    I can not get my fax to work.  He always tells me that my phone connection may not be configured correctly.  I place the phone cord Jack #1 at the back of the printer and also connected the phone cord to the wall outlet.  I don't know what else to do.  But I'm losing too much time trying to get this working.

    I appreciate your advice and help. However, after checking, I found that the wall outlet is not working. Plugged into another connection and it worked fine.

    Thank you very much for your help.

  • How can I get a microphone to work on my computer, I have windows 7

    How can I get a microphone to work on my computer, I have windows 7

    Review:

    Connect a microphone, music player ... - windows.microsoft.com

Maybe you are looking for

  • Reopen the closed map

    I can't reopen the hole card. Then right-click on the remaining card > reopen closed map < line (button?) is not available. Firefox is set to remember history.

  • Firefox crashes when you try to attach a file to gmail compose

    Laptop Vista 32. When you try to attach a file to a gmail account, compose explore dialog and then firefox crashes. Happens every time and began (I think) with the 16 or 17 years old version. Updated plugins, crossed of troubleshooting on the Help me

  • Can not read the serial port VISA without MAX

    Hello I'm trying to build an application that will interface with a Black Cat Systems GM-10 radiation detector. The app works fine on my computer (with the full development system OR) but when I install it on another computer, without LabView, the ap

  • Windows update error 80070490 code

    After having trouble, install windows vista service pack 2, and finally make install only about half of the updates included in it will eventually be installled and now whenever I try to install the rest, it will fail and that each file comes up with

  • How to save .aspx files

    Hello. I'm a web developer using Visual Studio 2008/10. This program debits files have an .aspx extension. I wish I could save them with Windows Backup & Restore. However, this utility deals all.aspx files as files sytem and refuses to back them up.