Hi Daniel,
Thanks for the reply.
I will try toextend the AbstractField, as you've suggested.
Many thanks again!
Dvora
From: Daniel Wagner <[email protected]>
To: [email protected]
Date: 19/04/2012 14:41
Subject: Re: [qooxdoo-devel] Editing the time in a table cell
Hi Dvora,
the problem is caused by the cell editor
(qx.ui.table.celleditor.TextField), which returns a string. So after the
user edits the date, the value in the table model is a string, no longer
a date. The renderer then tries to display the new value, passing it to
DateFormat.format, which calls getTime on it, causing the exception.
What this means is you need a cell editor that uses a DateField instead
of a TextField. Should be fairly easy to implement by extending
qx.ui.table.celleditor.AbstractField.
Regards,
Daniel
On 04/19/2012 11:38 AM, Debora Lopez wrote:
> Hi,
>
> I have 2 different table columns:
>
> 1. format: *new*qx.util.format.DateFormat("HH:mm")
> 2. format: *new*qx.util.format.DateFormat("yyyy.MM.dd HH:mm")
>
> Both use cellrenderer.Date, each with its format.
>
> The display is correct.
>
> How can I edit the time for each of them? If I try to edit the field to
> change the time, I receive "date.getTime is not a function ".
>
> Thanks in advance!
>
> Dvora
>
>
>
------------------------------------------------------------------------------
> For Developers, A Lot Can Happen In A Second.
> Boundary is the first to Know...and Tell You.
> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
> http://p.sf.net/sfu/Boundary-d2dvs2
>
>
>
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel