On Wed, Dec 29, 2010 at 18:06, Ulrich Herbst <[email protected]>wrote:
> Hi,
>
> I have a table with data (with perl from a database with perlrpc to
> qooxdoo) and I want to edit one row with mouseclick (context menu or
> button in each table row or something similar) in an extra form window
>
> What I have for now:
> - working perlrpc and data is coming into table
> (qx.ui.table.model.Simple and qx.ui.table.Table)
> - context menu on table for opening my form window.
>
> But - How can I import the row data to the form ?
>
> We get it more general:
> Are there examples to view/edit/delete/add rows in a table with an extra
> form ?
There are two types of cell editors. One is the standard in-line cell editor
that you're undoubtedly familiar with. The other is a "modal cell editor" in
which a modal window is opened, typically displaying a form completed by the
user. When that modal window is closed, stopEditing() is called. You should
arrange for a button in your form that sets the data appropriately based on
the form you create.
There is provision for a function to be called before the modal window is
opened. If the property modalCellEditorPreOpenFunction has a function value,
then that function will be called with the cell editor and cellInfo values
as parameters, before the modal window is opened.
See the function startEditing() in qx/ui/table/pane/Scroller.js for details.
I think this is what you're looking for.
Cheers,
Derrell
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel