How to add the card sharing on

Is there a way to show the card of action action when a user long press a container? I tried this

        contextActions: [
            ActionSet {
                actions: [
                    ActionItem {                        title: "Share"
                        attachedObjects: [
                            InvokeActionItem {
                                query {
                                    mimeType: "text/plain"
                                    invokeActionId: "bb.action.SHARE"
                                }
                            }
                        ]
                    }
                ]
            }
        ]

but when I click the icon + the action nothing happens is a toothed wheel when it is supposed to be a triangle thingy

Thank you

Maybe this thread will help you:

http://supportforums.BlackBerry.com/T5/Cascades-development/how-to-share-URLs-using-InvokeActionItem...

I don't know if onTriggered is necessary. Try to set the data when the query is initialized.

UPD - I just noticed that you create InvokeActionItem inside ActionItem. Just create the InvokeActionItem directly instead.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • CD player does not meet the Satellite L30 - 10Y

    When I get a CD in the CD player and the CD player is saying all the CD are empty, even when they are not. Can you help me?

  • How to download pass Simple HP 2012

    Model: HP Pavilion dv3500 No. FW721EA #ABU Operating system: Windows7 Ultimate 64 bit I downloaded UPEK Protector Suite, but I can't use my fingerprint reader. It is said was unable to open. I think that HP simple pass is the right software/driver fo

  • Windows Defender does not start automatically now.

    Since last week, Windows Defender will automatically start.  He has always done in the past.  It shows to the extent permitted in the list in the Windows Explorer startup programs and also listed as automatic in the section of the computer management

  • Head phones does not

    The headphones do not work in windows 7 on my Inspiron 14z. Portable speakers are working well and also the ports work well as the headphones work under Linux OS.  I have a dual boot OS. I tried unistalling and reinstalling the Sound Drivers. But it

  • Unusable outside the safe mode of Windows 7

    Problems with windows OS 7. It will load, but impossible to click and open anything. Even pressing the windows key will not display the start menu and ctrl alt del showed a black screen for a few minutes before an error message says that it cannot co