Notes |
|
|
|
|
(0039850)
|
mtaal
|
2011-08-04 01:21
|
|
Hi Paolo,
Afaik the grid does allow highlighting/selecting, it can be enabled quite easily (one-liner) for the status bar.
A technical tip for another developer, setting the canSelectText on the OBStatusBarTextLabel js class solves it:
isc.OBStatusBarTextLabel.addProperties( {
// to allow setting the active view when clicking in the statusbar
canFocus: true,
canSelectText: true
});
gr. Martin |
|
|
|
Hi Martin,
I confirm that I cannot select and copy from the grid (unless I put the record in Edit mode).
Please see the attached video that illustrates what I mean.
I reproduced this in Chrome and Firefox both in Ubuntu and Windows.
Paolo |
|
|
|
David, please take this one.
Ismael |
|
|
(0039878)
|
dbaz
|
2011-08-04 20:24
|
|
I can also highligh text in the grid, at least in current pi. Could you please try in the latest pi compilation of live builds?
Thanks & Regards. |
|
|
(0039879)
|
hgbot
|
2011-08-04 20:28
|
|
Repository: erp/devel/pi
Changeset: b3084425e7d573d9442fad32f65b816d38fab4c9
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Thu Aug 04 20:28:43 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b3084425e7d573d9442fad32f65b816d38fab4c9 [^]
Fixed issue 18187: Status bar text now can be selected with the mouse
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/ob-statusbar.js
---
|
|
|
|
Tested in pi (rev id: 7e1aea78244f). Testing copying content from Sales Order window both in grid mode (non-edit mode) + status-bar of form view. Working fine in linux/chromium12, winxp/IE8 and winxp/FF5. |
|
|
|
|
|
(0040046)
|
rgoris
|
2011-08-09 14:59
|
|
I agree with request but do not agree with the implemented solution. A few months ago we had deliberately disabled selection of text because it interferes with the double click behavior on a grid row. Having text selection enabled makes it look dirty as parts of the row now get highlighted in blue.
A much cleaner solution is to add a context menu item with "Copy to clipboard". Because of the infrequency of this task, this should be swift enough. |
|
|
(0040047)
|
dbaz
|
2011-08-09 15:34
|
|
Rob, if you double click in the grid, you see the "dirty" blue parts just for few milliseconds, because after the double click the form view is opened.
With a "Copy to clipboard" feature, you are limited to copy the content of just one cell, while now with the current implementation you can copy multiple rows/cells. (If you think in multiple row selectiom like Google Spreadsheets, this feature is notis not available in our current grid)
And even more "Copy to clipboard" feature can not be implemented using javascript implementable. Imagine that the browser javascript could have access to your clipboard... it would be a very serious security issue.
There are "flash technology" solutions
http://www.logiclabz.com/javascript/copy-to-clipboard-with-javascript-on-mozilla-firefox-and-ie.aspx [^]
but I think we have to avoid them at all cost.
With all this in place, my vote is for continue as we are now and close the issue again. |
|
|
(0040050)
|
rgoris
|
2011-08-09 16:41
|
|
David, i see the Flash-related problem you´re pointing out. I was thinking maybe we can reuse a similar pattern as we used for the Direct Document Link. When having a row selected, the context menu item would launch a dialog with flat text that can be copied and pasted manually by the user.
Ideally, the cell value the mouse was pointing at at the time of invoking the dialogue would be pre-selected (blue).
For more extended copy requests across multiple rows, the currently available Export to Spreadsheet functionality will do. |
|
|
|
Rob,
can you please be more specific about the problem. Up to now the problem is "it interferes with the double click behavior on a grid row. Having text selection enabled makes it look dirty as parts of the row now get highlighted in blue".
How it interferes? What do you mean by "look dirty"?
"Copy to Clipboard" is usually a painful (limited) feature. I would prefer to avoid it if possible. Let us undertand the issue with the current solution and lets try to solve that issue.
Ismael |
|
|
(0040053)
|
dbaz
|
2011-08-09 17:36
|
|
Rob, maybe I have missunderstood your suggestion, but it seems like your last comment is a kind of reinventing the wheel. Now the user already can use right mouse button to "Edit in grid" and copy paste the desired text of the right-clicked cell. Where is the benefit/advantage of this new dialog you propose?
Even more, remember that the original feature request description is about "the natural way" (the standard way) of selecting text (in the grid and statusbar) and copy-paste, not about a new mechanism to allow the user select text.
Going back to my first reply: as it is now, if you double click in the grid, you see the "dirty" blue selection just for few milliseconds, because after the double click the form view is opened. Is that so painful or I am missing something?
Regards. |
|
|
(0040055)
|
rgoris
|
2011-08-09 18:07
(edited on: 2011-08-09 18:08) |
|
@iciordia: the "dirty behavior" is what occurs when you double click on a row (when your cursor happens to be on a cell with text/numerical value)..a blue selection highlight now appears. This is short but still, it draws attention. The same happens when doing shift-click selection of multiple rows. I would like to avoid this.
@dbaz: Maybe you´re right, it might be a bit of overkill. I´m totally fine with the "Edit-in-grid" solution, but it does not work at all times. When a record is not editable (e.g. a booked sales order) the select© does not work (not even in form view). However, this is solvable, isn´t it? If we can make sure that all values (read only or not, and also the status bar) can be selected and copied in form view, then i believe it is good enough. Or was this done because of security?
So my suggestion is: make everything selectable and copiable in form view and roll back the mouse selection in the grid.
Alternatively (and ideal): disable the blue-selecting on double click but do allow it on click-drag.
|
|
|
|
I've just tested the "dirty" behaviour and it not that dirty :-)
David is gonna try to get the ideal behaviour as described by Rob... |
|
|
(0040058)
|
hgbot
|
2011-08-10 00:13
|
|
Repository: erp/devel/pi
Changeset: 16a68f64fdfa724977b5c4168c55e9da184556ab
Author: David Baz Fayos <david.baz <at> openbravo.com>
Date: Wed Aug 10 00:13:11 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/16a68f64fdfa724977b5c4168c55e9da184556ab [^]
Related to issue 18187: Decreased highlight impact when double-click a grid row
---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
---
|
|
|
(0040065)
|
rgoris
|
2011-08-10 11:49
|
|
Ideal solution implemented (double click does not select text, single click + drag does), good job |
|
|
|
|
|
(0040370)
|
rgoris
|
2011-08-19 16:09
|
|
David
In Firefox I noticed that there is still one situation where it does not work well to select texts: Read only form field values.
See attached image.
Can you still try to fix this?
Thanks
Rob |
|
|
(0040687)
|
dbaz
|
2011-09-01 17:12
|
|
|