How to row on the Shortcut Menu in ListView?

Hello

I put the menu in ListVIew.Now I need row that put the user click in ListVIew those place row I need.

So how do?

Hi Umang,

Try this

import bb.cascades 1.0

Page {
    content: Container {
        ListView {
            dataModel: GroupDataModel {
            }

            listItemComponents: [
                ListItemComponent {
                    type: "listItem"
                    StandardListItem {
                        title: ListItemData.entry
                        description: "listItem"
                        contextActions: [
                            ActionSet {
                                title: "Contact"
                                ActionItem {
                                    title: "Send an Email"
                                    onTriggered: {
                                        var tmpListView = parent.parent.parent;
                                        var itemData = tmpListView.dataModel.data(tmpListView.selected());
                                        console.log(itemData.entry);
                                    }
                                }
                            }
                        ]
                    }
                }
            ]

            function itemType(data, indexPath) {
                if (indexPath.length == 1) {
                    return "header";
                } else {
                    return "listItem";
                }
            }

            onCreationCompleted: {
                for (var a = 0; a < 20; a ++) {
                    dataModel.insert({
                            "entry": a
                        })
                }
            }
        }
    }
}

Tags: BlackBerry Developers

Similar Questions

  • Lack the open command on the shortcut menu

    Always under Windows XP.

    How to bring back the command open? -top of the page of the double-click and contextual menu in Explorer Windows.

    Some multimedia applications and now when I double click on a media file it runs an application called MediaInfo.

    Right-click for context menu - no command above, opening just mediainfo (highlighted). The rest of the menu contextual choice seem to be there as usual, simply not open.

    Seems to have affected all media files (audio and video files), but nothing else. The image and document files are fine.

    Double-click ran an older version of MediaInfo (v0.7.61).

    I have never deliberately installed MediaInfo. I checked Add / Remove Programs, but there was no MediaInfo.

    I downloaded latest MediaInfo and double click on the multimedia files. Now open the latest mediainfo.

    I checked the file associations in the Explorer, and they are all very good. All details explore windows have correct icon next to multimedia files. But MediaInfo opens on double-click. MediaInfo always at the top of the context menu in "BOLD" (no command open at the top).

    I then uninstalled MediaInfo using Add / Remove programs. Then double click on media files gave error, no program installed.

    So I re-installed MediaInfo just double click is not giving an error. Info, that I'm not particularly better than an error message.

    On other types of file, the shortcut menu opened up in fat and MediaInfo below.

    I ran RegEdit (after setting a restore point and looked for MediaInfo. Found a lot of entries, but I have not found any that I could trust of fixation.

    How to bring back the command open?

    !! help someone!

    Thanks a lot, Martinez.

    I was very tired yesterday and was not thinking right.

    I went to bed early and when I woke up this morning I realized what to do.

    I uninstalled my favorite movie / musical and all re-installed application. I could just reset file by default in her benefits, but he gave me the opportunity to upgrade to a newer version, at the same time.

    Worked perfectly.

    And that's essentially what you're suggesting. Now that everything is working properly, I'll keep the MediaInfo program. It is actually very useful.

    Thanks again for your helpful (and incredibly quick) solution.

    Have a great day.

  • In Firefox v26, what happened to the choices on the shortcut menu "send link"? I need this feature.

    In upgrading to Firefox v26, I noticed that the "send link" option is not on the shortcut menu. What happened to this option? This can be corrected? I often use this feature.

    Thank you.

    Thanks for your reply. I also did some other research and found the add-on following which deals with this problem more directly:

    https://addons.Mozilla.org/en-us/Firefox/addon/send-link-in-context-menu/?src=SS

    Using the right-click menu is faster and requires fewer clicks.

    Thank you

    Trader-63

  • In Windows Mail how can I get the answer, menu forward on top of the menu bar on the emails?

    In Windows Mail how can I get the answer, menu forward on top of the menu bar on the emails?

    I don't think that you can move the toolbar above the Menu bar. Or is the toolbar missing? If it is not present, right-click on an empty spot on the menu bar and check the toolbar.
  • How can I delete the Favorites menu in the menu drop down address bar in IE8?

    How can I delete the Favorites menu in the menu drop down address bar in IE8?

    Hello

    Because you used the nickname 'DaddyJeff' do you need to remove the access of all to Favorites? Otherwise, please
    describe in more detail what you need to do.

    I think that you should use the Parental control or group policies (GPedit if you have professional, company,
    (or Ultimate).

    See this and the 'related links '.

    How to install and use Parental controls in Vista
    http://www.Vistax64.com/tutorials/95139-parental-controls-Setup-use.html

    and these:

    Setting up Windows Vista's Parental control
    http://www.bleepingcomputer.com/tutorials/tutorial139.html

    Set up Parental controls
    http://Windows.Microsoft.com/en-us/Windows-Vista/set-up-parental-controls

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How can I make the start menu bigger?

    How can I make the start menu bigger? GO BROWNS!

    What do you mean largest? More Articles?

    If so, right click on the ORB start and select Properties.

    Click Customize, and then down, to increase the number of programs to display.

  • In Media Center Chess Titans, how can I remove the 3 Menu buttons up (game vs man, play Vs computer, exit) while I'm playing?

    In Media Center Chess Titans, how can I remove the 3 Menu buttons up (game vs man, play Vs computer, exit) while I'm playing?

    While I play Chess Titans (Media Center Version, full screen), there are 3 buttons on the top while I play (game vs man, play Vs computer, exit).  These buttons are boring because there is no need of them.  Make a right click on the screen offers these options.  In addition, when you regularly play Chess Titans (not the Version of Media Center and windowed screen), these 3 buttons do not exist.

    Hi Shpati,

    Thanks for posting this question in the Microsoft Community.

    Windows media center is normal and it is not possible to remove or deactivate form here.

    It will be useful. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.

  • How can I change the backgrounds menu for several pages?

    Hello

    How can I change the backgrounds menu for several pages in yet?  I want a single image appears on several pages in the background.

    Thank you.

    You must do this for each menu page.

    If the rest of the etc button style will be the same, just add the background you want and duplicate this menu before you change the titles, button names, linking.

  • How to restore the shortcut menu for my XP desktop icons?

    After an attempt to reinstall IE8 (uninstall older versions), the context menu for each icon on the desktop no longer appears as it has already done. The list is totally different. How do I restore the menus?

    To all: this issue is now resolved.

    The culprit was a directory of IE8 has crashed. It seems that under xp, a lot of files and settings are common to IE8 and other applications (Outlook Express, and help & Support print, etc.), they were all affected. Manually, I deleted the directory ie8 (2) duplicate and cleaned the ie8 entries (2) invalid in the registry. Then I downloaded IE8 anew and reinstalled. After the reboot, all my problems have been fixed. The right click menu office was restored, as well as the OE print functions.

    Thanks to all who have offered their help.

  • problem adding the shortcut menu item

    I want the form of users must be open when you press Ctrl + U.

    I made after the entry into fmrweb.res which did not work.

    85: 2: "Ctrl + U": 11022: "FORM of USERS.

    The property of acceleration for the menu item has been ACCELERATOR1.

    How to add a shortcut for this menu item shape in oracle 10g.

    Shortcuts for menus are used in forms according to the Windows Standard (such as Alt "Key" to open the main menu and then a second 'key' to select the option). You do this by placing a & (and commercial) in the text to menuitem (before the letter you want to use as a shortcut)

    You can use any other key mapping comes from the frmweb.res file to make a CALL_FORM in the trigger appropriate (for example, to KEY - F1)

  • Flash/Zoom works - how can I recover the shortcuts?

    Hello

    It happened to me to remove the "Toshiba" folder in the Start Menu: file is displayed twice in the Start - Menu I click right and press 'remove' - all two has disappeared... :(

    Now, I thought that only the shortcuts have been removed, but I am not able to recover. Most of the Fn functions no longer works. Programs such as the wizard and Product Information was easy to find, but for example the program Flash/Zoom seems to have completely disappeared. Strange. I tried to download the drivers of 'Value added' new, but everything remains the same.

    Can anyone help with this?

    Thanks in advance!

    Kind regards

    Bjarte,
    Norway

    Hi Fabio

    I'm not 100% sure but I think it should be there again after the installation of VAP.
    So remove the system pre-installed version, restart your computer and install the latest version of the Toshiba download page.

  • Manipulate the copy of Windows on the shortcut menu

    How to add a context menu with the exact property of the context menu item to copy?

    I see.  Programming and development issues have a dedicated on-site Microsoft Developer Network support forum: http://forums.msdn.microsoft.com--vous can post in the forum for any programming language you use to write your context menu Manager.

  • How do to call the BlackBerry menu form share an Adobe Air application?

    Hello

    I'm looking for a tutorial or demo code that describes how to call the BlackBerry menu sharing an Adobe Air based application.

    I found a tutorial of waterfalls for it - there's one for Adobe Air too?
    - http://bbcascadescode.tumblr.com/post/38998702671/invoke-share-for-bb10

    This is a screenshot of the Action menu:

    Advice welcome!

    Here you go:

    package com.lib.playbook.invocation
    {
        import com.lib.playbook.controls.List;
        import com.lib.playbook.pages.TitlePage;
        import com.lib.playbook.renderers.IconListRenderer;
    
        import flash.events.Event;
        import flash.events.IEventDispatcher;
    
        import qnx.events.InvokeEvent;
        import qnx.events.InvokeQueryTargetEvent;
        import qnx.fuse.ui.core.Action;
        import qnx.fuse.ui.events.ActionEvent;
        import qnx.fuse.ui.events.ListEvent;
        import qnx.invoke.ActionQuery;
        import qnx.invoke.InvokeManager;
        import qnx.invoke.InvokeRequest;
        import qnx.invoke.InvokeTarget;
    
        public class InvokeSearchPage extends TitlePage
        {
            private var request : InvokeRequest = null;
            private var targets : List = new List();
    
            /////////////////////////////////////////////////////////////////////////////////////////
            public function InvokeSearchPage()
            {
                super();
                this.title = 'Search With';
                this.titlebar.dismissAction = new Action( 'Cancel', null, {id:'cancel'} );
                this.titlebar.addEventListener(ActionEvent.ACTION_SELECTED, ActionSelected );
    
                this.targets.cellRenderer = com.lib.playbook.renderers.IconListRenderer;
                this.targets.addEventListener(ListEvent.ITEM_CLICKED, TargetSelected );
                this.targets.rowHeight = 140;
                this.addChild( this.targets );
            }
    
            ///////////////////////////////////////////////////////////////////////////////////////////
            public function filter( request :InvokeRequest ) : void
            {
                this.targets.removeAll();
    
                this.request = request;
    
                //trace( 'filter ' + request.mimeType );
                InvokeManager.invokeManager.addEventListener( InvokeQueryTargetEvent.SUCCESS, TargetsFound );
                InvokeManager.invokeManager.queryInvokeTargets( request.mimeType, request.uri, request.action, request.targetOptions );
            }
    
            ///////////////////////////////////////////////////////////////////////////////////////////
            private function TargetsFound( event : InvokeQueryTargetEvent ) : void
            {
                InvokeManager.invokeManager.removeEventListener(InvokeQueryTargetEvent.SUCCESS, TargetsFound );
                //trace( 'TargetsFound' );
                var action : ActionQuery;
                var target : InvokeTarget;
                for each( action in event.actions )
                {
                    for each( target in action.targets )
                    {
                      this.targets.addItem( { data : target.target, label : target.label, icon : 'file://' + target.icon } );
                    }
                }
            }
    
            ////////////////////////////////////////////////////////////////////
            private function TargetSelected( event :Event ) : void
            {
                if( this.targets.selectedIndex >= 0 )
                {
                  this.request.target = this.targets.selection;
                  InvokeManager.invokeManager.invoke( this.request );
                }
            }
    
            ////////////////////////////////////////////////////////////////////
            private function ActionSelected( event :ActionEvent ) : void
            {
                switch( event.action.data.id )
                {
                    case 'cancel' : this.dispatchEvent( new Event( Event.CANCEL ) ); break;
                }
            }
    
            //////////////////////////////////////////////////////////////////////
            override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.updateDisplayList( unscaledWidth, unscaledHeight );
    
                this.targets.setPosition( 10, this.top + 10 );
                this.targets.setActualSize( unscaledWidth - 20, unscaledHeight - this.targets.y - 10 );
            }
        }
    }
    

    And the rendering engine:

    package com.lib.playbook.renderers
    {
    
        import qnx.fuse.ui.display.Image;
        import qnx.fuse.ui.listClasses.CellRenderer;
    
        public class IconListRenderer extends CellRenderer
        {
    
            private var icon    :Image = new Image();
    
            /////////////////////////////////////////////////////////////////////////
            public function IconListRenderer()
            {
                super();
            }
    
            ///////////////////////////////////////////////////////////////
            override protected function onAdded():void
            {
                super.onAdded();
                this.addChild( this.icon );
            }
    
            ///////////////////////////////////////////////////////////////
            override protected function onRemoved():void
            {
                super.onRemoved();
                this.removeChild( this.icon );
            }
    
            /////////////////////////////////////////////////////////////////////////////////////
            override protected function drawLabel(unscaledWidth:Number, unscaledHeight:Number):void
            {
                super.drawLabel( unscaledWidth, unscaledHeight );
    
                if( this.data )
                {
    
                    if( this.data.hasOwnProperty( 'icon' ) && this.data.icon != null )
                    {
                        this.icon.setImage( this.data.icon );
                        this.icon.setPosition( 10, 15 );//( unscaledHeight - this.icon.height ) / 2 );
                    }
                    else
                    {
                        this.icon.setImage( null );
                    }
    
                }
    
                this.label.x = 140;
                this.label.width = unscaledWidth - this.label.x - 20;
            }
        }
    }
    

    references com.lib.playbook our our inner classes, but you should get the approach to apply.

  • Problem with the shortcut menu custom BB10

    Hi all

    I am currently trying to implement a context menu that is customized with my webworks app. So far I'm not creating a normal webworks / bbUI app, but I'm trying to add some features of bbUI. So to speak, I have a few different elements in my application, each of them triggers the context menu, as expected. So far so good. But now I have some problems to detect which element / div has triggered the call from context menu. How can I get this information?

    I add the context menu like this:

    var contexts = [blackberry.ui.contextmenu.CONTEXT_ALL];
    var itemRead = {
        actionId: 'actionRead',
        label: 'Read Article',
        icon:'../assets/images/new/add.png'
    };
    
    blackberry.ui.contextmenu.addItem(contexts, itemShare, function(arg1) {
        console.log("itemShare: " + arg1);
    });
    

    But as I have already described arg1 is null, and I have no idea on how to detect the appellant.

    Can someone help me, please?

    I thank very you much in advance!

    See you soon,.

    Sven

    You need the feature called custom context. This will give you that you the information on that DIV has been pressed. When you set your DIV, add a tag called:data-webworks-context

    Thus your div would look something like this:

    1
    2
    3
    blackberry.ui.contextmenu.addItem(contexts, itemShare, function(id) {
        console.log("itemShare: " + id);
    });
    

    You are passing a JSON for the CCM object and asking him to come back to you, the ID of the item that called the context menu, so you can do a job. Let me know if that helps

  • How can I change the start menu to view all default programs?

    I'm trying to figure out how to get all default loading programs in the start menu (rather than recent programs showing, we disabled).  Y at - it a registry key that can be changed or created to do this?

    I'm trying to figure out how to get all default loading programs in the start menu (rather than recent programs showing, we disabled).  Y at - it a registry key that can be changed or created to do this?

    Hello

    There is no way to display the menu all programs when you click on the Start button. Start is similar to a toolbar. When you select it, it will show all the different components that you can access.

    You can stop the recent programs to display. Right-click the Start button and select Properties. In the privacy section, Remove the check mark from the option store and display recently opened programs in the start menu .

    I hope this helps.

    Thank you for using Windows 7

    Ronnie Vernon MVP

Maybe you are looking for

  • Incorrect display of web pages

    This is a problem not intentionally that comes and goes. I think it might be related to updates that are hunted. On my boxes linux (Xubuntu 12.04 with all the updates and patches), Firefox suddenly starts displaying all the pages as text only. I rebo

  • hp450C driver for Windows 10

    Any help would be greatly appreciated. I have a printer, designjet HP450C that is in perfect working order and produces higher quality prints. The problem is that I can't work with 10 64 bit os windows machine.

  • Must regularly restart the DHCP Client - HP Pavilion 500-205 DT - Windows 7

    HP Pavilion 500-205 DT - Windows 7 Home Premium 64 - bit SP1 Realtek PCIe GBE Family Controller - pilot 7.67.1226.2012 Bought 3 identical machines for our daycare. Set up the same. All work fine except ONE of them becomes inaccessible periodically (e

  • WiFi connections: Laptop HP cannot find the 5 GHz wireless signal?

    Hello, this is my first post I just bought my first laptop and my first wireless router and have been setting them up. Laptop: HP touch laptop Pavilion 15 15-n088ca with windows (fully updated) 8.1 Router: D-Link Dual Band AC1000-band 2.5 GHz & 5 GHz

  • Send the menu item for OS6

    Hey, help me please... I sendmenu sourcecode of blackberry Web site, I try to my BB tour 2 (9650) with operating system version 6 does not work... import net.rim.blackberry.api.sendmenu.*; import net.rim.device.api.ui.Field; import net.rim.device.api