You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by SYSE | Edvin <es...@syse.no> on 2011/07/09 15:43:21 UTC

Is there a way to null the selection for a CalendarButton?

Some times one want to allow to null an already set date, but I can't 
find a GUI for doing it. Is this supported somehow? Most datepickers 
allow one to edit the actual date in a TextInput, so deleting the text 
will null the date value.

-- Edvin

Re: Is there a way to null the selection for a CalendarButton?

Posted by Sandro Martini <sa...@gmail.com>.
Hi Edvin, don't worry, finish your app now, and if you fin something that
could be related/improved by pivot-694 tell me (I'll continue my work on it
before the end of next week).
Bye
Il giorno 11/lug/2011 14:41, "SYSE | Edvin" <es...@syse.no> ha scritto:
> Den 09.07.2011 23:45, skrev Sandro Martini:
>>
>> Hi,
>> Edvin, maybe this could be part of the fix on the clear method
>> (pivot-694) even for that component ... if you have time to verify it
>> and put a comment on it in the ticket could be great. In any case,
>> keep me updated.
>>
> I don't think it's directly related to PIVOT-694, but I see some
> problems here and I'll get back to adressing them after I get my app
> released. Need to get it out the door now first :)

Re: Is there a way to null the selection for a CalendarButton?

Posted by SYSE | Edvin <es...@syse.no>.
Den 09.07.2011 23:45, skrev Sandro Martini:
>
> Hi,
> Edvin, maybe this could be part of the fix on the clear method 
> (pivot-694) even for that component ... if you have time to verify it 
> and put a comment on it in the ticket could be great. In any case, 
> keep me updated.
>
I don't think it's directly related to PIVOT-694, but I see some 
problems here and I'll get back to adressing them after I get my app 
released. Need to get it out the door now first :)

Re: Is there a way to null the selection for a CalendarButton?

Posted by Sandro Martini <sa...@gmail.com>.
Hi,
Edvin, maybe this could be part of the fix on the clear method (pivot-694)
even for that component ... if you have time to verify it and put a comment
on it in the ticket could be great. In any case, keep me updated.

Sandro
 Il giorno 09/lug/2011 15:43, "SYSE | Edvin" <es...@syse.no> ha scritto:
> Some times one want to allow to null an already set date, but I can't
> find a GUI for doing it. Is this supported somehow? Most datepickers
> allow one to edit the actual date in a TextInput, so deleting the text
> will null the date value.
>
> -- Edvin

Re: Is there a way to null the selection for a CalendarButton?

Posted by SYSE | Edvin <es...@syse.no>.
Den 11.07.2011 14:35, skrev Greg Brown:
> You can do it programmatically by setting the selected date to null, but there is currently no way to do it interactively. If editor support were added to CalendarButton, you could probably implement something along the lines of what you describe.
I did it by showing a button to clear it when it has a value for now. 
Will provide a patch for editing support later on :)

-- Edvin

Re: Is there a way to null the selection for a CalendarButton?

Posted by Greg Brown <gk...@verizon.net>.
You can do it programmatically by setting the selected date to null, but there is currently no way to do it interactively. If editor support were added to CalendarButton, you could probably implement something along the lines of what you describe.

On Jul 9, 2011, at 9:43 AM, SYSE | Edvin wrote:

> Some times one want to allow to null an already set date, but I can't find a GUI for doing it. Is this supported somehow? Most datepickers allow one to edit the actual date in a TextInput, so deleting the text will null the date value.
> 
> -- Edvin