1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    26
    Vote Rating
    0
    sbk099 is on a distinguished road

      0  

    Default Unanswered: Tapping the number in List Item copies the number to device dialing screen

    Hi,

    I have a List that displays numbers and text. When I tap on the number in any List Item, the app exits and the number gets copied to device's dialing screen (Obviously this happens only when I generate the apk and run it on a device)

    Any ideas?? How to prevent this from happening??


    Code:
    Ext.define("VehiclesApp.view.POList", {        extend: "Ext.Container",
            requires: [
                'Ext.field.Search'
            ],
            xtype: 'poList',
            
            config: {
                // title: 'Sales Models',
                layout: 'vbox',
                items: [
                    {
                        xtype: 'panel',
                        store: 'SalesModelsStore',
                        itemId: 'poListPanelDesc',  
                        height: 15,    
                        tpl: [
                                '<div>',
                                        '<div class=heading-style2>{Description}</div>',
                                '</div>',
                        ],
                    },
                    {
                        xtype: 'panel',                 
                        layout: 'fit',
                        flex: 1,
                        style: 'background-color:#737373',
                        items: [
                            {
                                xtype: 'list',
                                cls: 'kitten-list',
                                store: "POListStore",
                                itemId: 'poListItem',
                                
                                
                                itemTpl: new Ext.XTemplate(
                                    
                                    
                                    
                                    '<tpl for = \'.\'>',
                                        '<table cellpadding="10">',
                                            '<tr>',
                                                '<td style="font-weight: bold;fontcolor: #111111; width:25%; padding-right:25px;" colspan="2">{ProductionOrder}</td>',
                                                '<td class=list-item-style3 style="width:25%; padding-right:25px;">{ModelYear}</td>',
                                                '<td class=list-item-style3 style="width:25%; padding-right:25px;">{Color}</td>',
                                                '<td class=list-item-style3 style="width:25%;">{Ztrim}</td>',
                                            '</tr>',
                                        '</table>',
                                        '<table cellpadding="10">',
                                            '<tr>',
                                                '<td class=list-item-style3 colspan=2>{PaidOpt}</td>',
                                                '<td class=list-item-style3 colspan=2>{FreeOpt}</td>',
                                            '</tr>',
                                        '</table>',
                                        //'</div>',
                                    '</tpl>',
                                    
                                    
                                    
                                    {
                                        putCommas: function(a){
                                            
                                            a += '';
                                            x = a.split('.');
                                            x1 = x[0];
                                            x2 = x.length > 1 ? '.' + x[1] : '';
                                            var rgx = /(\d+)(\d{3})/;
                                            while (rgx.test(x1)) {
                                                x1 = x1.replace(rgx, '$1' + ',' + '$2');
                                            }
                                            return x1 + x2;
                                            
                                        }
                                    }
                                ),
                                
                            }
                        ]
                    },
                    {  
                        xtype: 'searchfield',                          
                        itemId:'polist_search',  
                        id:'polist_search',                        
                        placeHolder: 'Search',
                    },
                    
                ]
            },
        });




    Thanks in Advance

  2. #2
    Sencha - Support Team
    Join Date
    Oct 2011
    Posts
    4,068
    Vote Rating
    136
    Answers
    339
    fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all fmoseley is a name known to all

      0  

    Default

    Your fiddle does not run. Can you fix it.
    Get more personalized support via a support subscription.

    Want to learn Sencha Touch 2? Check out
    Sencha training
    Sencha Touch in Action

    Need more help with your app? Hire Sencha Services services@sencha.com

    When posting code, please use BBCode's CODE tags.

    Need to include a test case use:
    The official Sencha Fiddle

Thread Participants: 1

Tags for this Thread