INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Passing Parameter Between Two Datawindows

Passing Parameter Between Two Datawindows

(OP)
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

RE: Passing Parameter Between Two Datawindows

(OP)
I figured it out, all I needed to do was use getclickedrow() rather than getrow()
worked perfectly!!

Thanks again

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close