Radio Buttons in Grid not holding their value

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
pshuey@dasinc.com
New User
Posts: 10
Joined: Wed Jan 15, 2014 11:53 am
First Name: Patti
Last Name: Henry-Shuey
Company Name: DAS Companies, Inc.
Contact:

Radio Buttons in Grid not holding their value

Post by pshuey@dasinc.com »

I have a grid that contains a radio button group with 2 radio buttons (yes/no). I am forcing a selection of one of the two buttons, so I read through the grid and edit each row. When I redisplay the grid I am getting odd results. Any row that had the 'yes' radio button selected now show neither button to be selected, but the bound variable for the group still shows that yes is selected. The no radio button works as expected...if it was selected, it is still selected after I edit the grid. Any ideas?
dieter
Experienced User
Posts: 122
Joined: Tue May 22, 2012 6:45 am
First Name: Dieter
Last Name: Schröder
Company Name: Ecclesia Holding GmbH
State / Province: Outside Canada/USA
Country: Germany
Contact:

Re: Radio Buttons in Grid not holding their value

Post by dieter »

Hello Patti,

here are some ideas:

Do you work with "long field names"? In this case you have defined an input and an output datastructure for your subfile. Then you have to debug the bound field of the OUTPUT structure before updating the subfile record.

If you don't use long field names you should set a breakpoint directly onto the update sfl statement. Check if the bound field has the correct value at update time. If the value is correct, let the program go on, but let the breakpoint active. Maybe your program runs to the update statement again (and you don't except that).

What values do you use for "selected" and "not selected"? E.g. if you use '1' and ' ' you might have an problem. We had difficulties with blank as a value. Instead you should use 1 and 0 or Y and N.

Please excuse my poor english. I think my ideas are also "poor". But the ideas above were failure situations that we hat in the past.

Best regards from Germany,
Dieter
emhill
Experienced User
Posts: 116
Joined: Wed Sep 05, 2012 11:14 am
First Name: Eric
Last Name: Hill
Company Name: Integrated Corporate Solutions
Phone: 256-760-8239
Address 1: 501 S Wood Avenue
City: Florence
State / Province: Alabama
Zip / Postal Code: 35630
Country: United States
Contact:

Re: Radio Buttons in Grid not holding their value

Post by emhill »

Patti,

Also make sure you don't have the radio button group field defined somewhere else on the screen. I found out the hard way that it would override the data in my radio button group field if a field with the same name was hanging out somewhere on that screen.

Just a thought...
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests