Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to change DDDW data upon radio button change

Status
Not open for further replies.

Jsmith54088

Programmer
Mar 25, 2009
3
SG
I have a DDDW which the data will change according to the radio button clicked. I have 2 radio button.

By default, the radio button 1 is checked and retrieving data from the DDDW is correct. But when I select radio button 2, the data remains the same. I need to reset all rows by enabling query mode, and then select radio button 2 before it shows the correct data from the DDDW.

How do I overcome this issue? I just want the data to change accordingly to the radio button changes without resetting everything.
 
Are the RadioButton's objects on the window or on a DataWindow? And is the DDDW a DataWindowChild?
 
Sorry for the late reply.

The radio buttons are on the main window and the dddw is a DWC of a datawindow.
 
Try to get dddw into DataWindowChild variable and then filter data in it:

1. First take dddw into DataWindowChild

DataWindowChild ldwc_filter

dw_1.GetChild("your_dddw_column", ldwc_filter)

2. Next, try to filter that (after changing radiobutton )

ldwc_filter.SetFilter("condition for selected radiobutton")
ldwc_filter.Filter()

After that, in dddw, there are only filtered rows.
For prevent other rows from "decoding problem" you must set the same column for dataColumn and displayColumn.

Tomek
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top