main logo
Subject: passing parameter ?
Author: Lynette Tillner
Posted: 2001/10/03 21:45:13
 
View Entire Thread
New Search


Thanks to everyone's help I am moving forward again! YEAH! Now I have more questions!

I have a one-to-many form that displays data and a double click will let you edit the related table (a separate modal form for each view on the form) For instance, my contact management form has 3 views -- District, Contact and Marketing

Double clicking on the District name brings up a modal form that allows you to edit/add/delete records in lv_District. When I first built this form (before moving everything to CB61) I used

do form AboDistrictForm with thisform.iid, m.liid, .f.

to pass the parameter of the currently displayed record to the modal form. With cb61 I am using

doform ("AboDistrictForm", [district.iid])

but it's not passing the parameter and the modal form comes up at the first record in the ordered view --- not the record that is being displayed.

What is wrong with my "doform" statement?

BTW, when I close the modal form, the underlying form moves to the record that was last displayed in the modal form --- but doesn't refresh the form (I added a thisform.refresh() to the GotFocus method of the main form -- hoping that will fix the last part?)

Thanks for ANY help on this!
Lynette
ltillner at yahoo D.OT com

 
©2001 Lynette Tillner
<-- Prior Message New Search Next Message -->