Re: Bug report: checkbox controls
Andreas Schwarz <[email protected]> Mon, 02 May 2005 17:59:45 +0200
| Newsgroups | gmane.comp.db.rekall.devel |
|---|---|
| Message-ID | <[email protected]> |
Mike Richardson wrote:
> On Friday 29 April 2005 19:54, Andreas Schwarz wrote:
>
>>When I edit a form design and switch back to the data view, I can't
>>change any checkbox controls. After closing and reopening the form it
>>works again.
>
>
> I can't reproduce this. Which platform/distro/version? Any special settings on
> the control?
The control has a kbitem.onchange script:
def eventFunc(ctrl, row, value) :
block = ctrl.getBlock()
confirmed_date = block.getNamedCtrl("confirmed")
now = time.localtime()
if value == 1:
confirmed_date.setValue(block.getQueryRow(),
time.strftime("%Y-%m-%d", now))
else:
confirmed_date.setValue(block.getQueryRow(), "")