Enterprise-ng: Datagrid: Unable to copy a data value from Excel and paste into editable cell

Created on 4 Mar 2021  路  12Comments  路  Source: infor-design/enterprise-ng

Describe the bug:
Unable to copy a cell in Excel and paste the copied value into an editable datagrid cell.

Steps to reproduce the behavior:

  1. Go to 'DataGrid - Angular Editors'
  2. Open Excel and enter a numeric value into a cell
  3. Copy the cell value from Excel
  4. Attempt to paste into a cell in the Quantity column

Expected behavior
Be able to cut and paste into an editable cell

Version

  • ids-enterprise: v4.38.0-dev
[5] landmark type

All 12 comments

GitNT-1002

This seems to work in EP https://drive.google.com/file/d/15SZNyVvBMrfwxjbeTIYQ7uQFztzaYL3r/view
Is this maybe an angular only issue?

I have a similar issue, were the user is attempting to copy bulleted items with a .pdf file and they are unable to paste the copied value into a list cell. This did work in 3.5.

Do you need a different ticket for this issue?

@claudenbach no thats ok. I think its going to be the same issue - the issue is around this area https://github.com/infor-design/enterprise/blob/master/src/components/datagrid/datagrid.js#L6266 where it tries to detect new lines in the data and create/copy the data to neighbouring cells. I'm not sure what the fix would be....

This is the Landmark example in 4.0:

LMCLIENT-34572-4 0

Landmark example in 3.5:

LMCLIENT-34572-3 5

Did paste from excel to create rows work in 3.5?

Yes.

@janahintal that is covered by https://github.com/infor-design/enterprise/issues/5072 as we made this a setting but that half wasnt important so we left it. For this just test on https://main-enterprise.demo.design.infor.com/components/datagrid/example-index

And we will fix that setting "on" at a later date.

Noted on this. As per checking, https://main-enterprise.demo.design.infor.com/components/datagrid/example-index is working as expected.

Also tried it in https://main-enterprise.demo.design.infor.com/components/datagrid/example-editable.html and I was now able to copy and paste form excel.

Was this page helpful?
0 / 5 - 0 ratings