skar wrote:
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?
Never mind, I passed the table value to the factory's constructor,
stored it in a member and then in the create method used that table var
to get at the userdata. Thanks for the all the code tips and the
patience :) I finally have the desired behavior.
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