evertsen
31st October 2002, 00:31
In a custom session, using a custom table, I have changed several yesno fields to check boxes (all fields have the same domain). The problem is that after box is checked, it can't be unchecked (move to next field and the check returns). Any thoughts? I'm hoping it is something simple:)
Ev
Rahul_baan
31st October 2002, 02:38
Hi evertsen,
What I can think of is , just check your code written for after.field (after display / or when.field.changes etc) of these check boxes. R you by any chance or reason initializing it back to yes (tcyesno.yes) ???
evertsen
31st October 2002, 07:34
These fields were not check boxes and functioned correctly until I changed them. Their default value is no (unchecked). The code is very simple and does not alter them as you have suggested but thanks for the reply.
Ev
shah_bs
3rd November 2002, 21:13
This could be rather severe (and maybe you have already tried these by now) , but you could try the following in steps:
a. Create Runtime DD for the DOMAIN (only) that you are using for the checkbox field and dump the form again.
b. If that does not resolve the problem by itself, create runtime DD for only the session that uses the form.
(remember to exit BSHELL each time before trying again (I many times forget and wonder why things do not work)! :) )
After that, I am at a loss. Checkboxes do work fine most of the time, although sometimes, when they do not, instead of clicking them, I would have to ask the user to use the SPACEBAR - kind of negates the whole thing.
evertsen
3rd November 2002, 22:38
Yes, I have already tried this. Using the spacebar makes no difference. Also, using a development company/PVRC, I changed the domain in a non-customized table and had the same result.
Ev
tools123
5th November 2002, 00:47
This is most likely an issue within the form you changed.
First and foremost,make sure there is nothing in the default
setting for the form field.(form field properties,default)
May be the previous form field (domain) had it and you did not
delete it.or did not covert after deleting that.
Program script issue,look under before.program or in
all other sections for any code.
Make sure the domain you are using for check box has the
default you are expecting it to have.
Finally,make a new form/copy the form, start with just 1 or 2
of these fields and check out the results.
DO NOT FORGET TO LOG OUT EACH TIME YOU DUMP/CONVERT
JUST TO BE SURE.
Good luck
evertsen
5th November 2002, 01:20
The form in question did not previously contain these fields. Also, I changed another form in a completely different session/table as a test and got the same result! This is very frustrating:mad: There are no defaults set in the form fields.
Ev