Results 1 to 2 of 2

Thread: Problem with LovCombo

  1. #1
    Sencha User
    Join Date
    Aug 2015
    Location
    Russia
    Posts
    5

    Default Problem with LovCombo

    Good day! Sorry for the bad english.I use lovCombo.
    I need your help. Just an example: insert text into LovCombo to send to the server: MY TEXT. In the drop-down list I get options:
    MY TEXT 1
    MY TEXT 2
    MY TEXT 3
    I opt for the first and third points. I have the results in the combo box: MY TEXT 1; MY TEXT 3. Then put the ";" and try to send the following request to the server: MY SECOND TEXT. In the drop-down list, I have a response from the database on the server:
    MY SECOND TEXT 1
    MY SECOND TEXT 2
    MY SECOND TEXT 3
    I am trying to select the second point. As a result, in the combo box I expect the following result: MY TEXT 1; MY TEXT 3; MY SECOND TEXT 2But I have only MY SECOND TEXT 2. Previous versions have disappeared! The string must be complemented! But this is not happening. What should I do?Sorry for my English....
    PHP Code:
    var tplka = new Ext.XTemplate(   
     
    '<tpl for="."  ><div class="search-item" >',    
    '<b>{res}</b><br/><input type=hidden id=pnt1 value={pnt1} >',    
    '</div></tpl>');
    var 
    cmbPnt2Store = new Ext.data.Store({   
     
    url'phps/combobox.php',    
    baseParams: {priznak'pnt2'},   
     
    reader: new Ext.data.JsonReader    ({   
     
    root'dan',   
     
    totalProperty'total',   
     
    id'id1Pnt2'    },   
     [    {
    name'res' mapping'res'},    
    {
    name'pnt1'mapping'pnt1'}    
    ]
    ),    
    autoLoadfalse})

    var 
    cmbPnt2 = new Ext.ux.form.LovCombo({    
    separator';',   
    hideOnSelect:false,    
    editabletrue,    
    hiddenName'rrrrr',    
    storecmbPnt2Store,    
    loadingText'loading...',    
    displayField'res',   
    valueField'pnt1',  
    pageSize:15,  
    mode'remote'
     
    forceSelectiontrue,  
      
    triggerAction'all',    
    minChars:4,    
    hideTrigger:true,    
    tpltplka,    
    itemSelector'div.search-item',    
    id'cmbPnt2',    
    hideLabeltrue
    }); 

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    You might try posting your question to the LovCombo thread:
    https://www.sencha.com/forum/showthread.php?32692

Similar Threads

  1. Lovcombo and IE8
    By HSomb in forum Ext 3.x: User Extensions and Plugins
    Replies: 0
    Last Post: 10 Jun 2011, 9:39 AM
  2. LOVCOMBO problem setting data
    By MalcolmHaslam in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 13 Jan 2011, 7:04 AM
  3. Problem With LovCombo
    By pipiet06 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 10 Aug 2010, 6:24 PM
  4. LovCombo
    By joehebe in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 25 Aug 2009, 6:14 PM
  5. lovcombo box
    By sajjan in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 14 Apr 2009, 4:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •