Regarding your Playground code, I observed two things: - In your commandCopy.addListener("execute") function, you need to retrieve the selected text. There is no such thing as silent copying of the desktop clipboard to your code :). You have to find the selected text within your table, and save it to a variable.
- In your commandPaste.addListener("execute") you have then to access this value and use it to go through the selected lines and set the third column to the appropriate value. In your code sample the listener bombs as it cannot find this._ocgTableModel, but you probably know that. T. On 07/01/2010 10:11 PM, Marta Smith wrote: > Hi All, > > I have posted this question last week and haven't seen any responses > yet....would any of you experts be so kind to address this issue? > > Thank you in advance, > > -Marta Smith > > On Fri, Jun 25, 2010 at 3:36 PM, Marta Smith <smith.ma...@gmail.com > <mailto:smith.ma...@gmail.com>> wrote: > > Hi qooxdoo friends, > > I have a table that is a multi-select and my table has 3 columns. 2 > of the last columns of the table is editable. > Column 0 is not editable. > Column 1 is only editable so that people can copy its values from > the table and paste it into emails. The column contains long text > descriptions. > Column 2 is an empty column where people can enter a value and later > on in the code they submit the content of the table. > I process the data entered into column 2 on the backend > . > What our customer requested is a excel style copy-paste > functionality for column 2. Use case: user enters a value in a cell > in column2, user copies the data with crrl+c, selects multiple rows > of data in the table , and pastes (ctrl+v) the single copied value > into all the selected rows in Column 2. > > I have created a sample code on the playground, but it doesn't > work,. As you see I tried to work with mutliple listeners none of > which seem to be the perfect solution, or I'm not not wiring them > correctly. > > I would really like to know if what I'm trying to achieve here is > possible (or something similar), and if you can demonstrate it with > the playground code how it works. > > here is the code: > *http://tinyurl.com/2cjf93g* > > Thank you in advance, > > -Marta > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel