PDA

View Full Version : Not able to paste multiple row values from excel sheet to a text field in IE



varmaj80
10 Jun 2014, 11:19 AM
Hi,
I have an excel sheet with 10 values under a particular column, say Account Number. Now I want to copy all these 10 values and paste them in the Account Number text field on my UI. When I paste them in the text field on Firefox browser, all the values get copied to the field with each value separated from the other by a space. But when I do it on IE browser, only the first value gets pasted and all the other values are missing. Not sure how IE handles this. Should I handle this in any specific way in my extjs code so that all the values are copied. I am using ExtJS 4.2
{
xtype: 'textfield',
fieldLabel: 'Account #:',
name: 'accountNum',
itemId: 'accountNum',
enableKeyEvents: true,
vtype: 'accountNum'
}

varmaj80
11 Jun 2014, 1:16 PM
Any suggestions please?....

varmaj80
11 Jun 2014, 1:36 PM
I am able to replicate this scenario on the sencha examples page as well at the following location.

http://dev.sencha.com/extjs/5.0.0/examples/kitchensink/#form-fieldtypes

Gary Schlosberg
11 Jun 2014, 4:01 PM
Seems to be something specific to Internet Explorer, regardless of ExtJS.
http://www.webmasterworld.com/javascript/4410903.htm

First of all, are you able to use a textarea? I noticed that all the data arrives as expected that way.