Derrell Lipman wrote:
setUserData takes two parameters: a key and a value. It's used ONLY by
your code, which can later retrieve the value with getUserData(key).
So in your function that tries to save the data at the server but the
server says, "sorry, can't do it" you could call
this.table.setUserData("currentCellEditing", event.value);
this.table.startEditing();
The act of calling startEditing() causes the cell editor factory to be
invoked. Look at qx.ui.table.celleditor.TextField as a simple one to
extend. Your cell editor factory can then call:
var valueToEdit = table.getUserData("currentCellEditing") ||
cellEditor.originalValue;
table.setUserData("currentCellEditing", null);
How do I get access to the table variable from inside the cell editor? I
can access it via the qx.core.Init.getApplication().tabs.mytab.table
namespace, but is there a simpler way to do that?
cheers,
skar.
--
--
The life so short, the craft so long to learn.
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel