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!

Passing Parameter Between Two Datawindows

Status
Not open for further replies.

Dom71555

IS-IT--Management
Feb 6, 2005
47
US
I have two datawindows dw_1 and dw_2
dw_1 contains all a teachers students throughout many years, designated by the column named "year" and the value '14-15', '15-16' etc..
dw_2 contains only the column "year" with the same format '14-15','15-16'.

Passing of the year works using dw_1setfilter(ls_year_filter), however I need to click the datawindow (dw_2) twice to see the changes in dw_1. This code is in the clicked event of dw_2.

ll_rownumber = dw_2.getrow()
ls_year = dw_2.getitemstring(ll_rownumber,"year")
ls_year_filter = ls_colname + " = " + "'" + string(ls_year) + "'"
li_rc = dw_1.setfilter(ls_year_filter)
dw_1.filter()

Is there a way to have the user click only once on that datawindow (dw_2) to see changes in dw_1?

Thank you for your help
 
I figured it out, all I needed to do was use getclickedrow() rather than getrow()
worked perfectly!!

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top