Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing grids on a form
Message
From
11/05/1999 23:23:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Refreshing grids on a form
Miscellaneous
Thread ID:
00217603
Message ID:
00217603
Views:
45
Hello everyone:

I have a search form (parent), that calls a child form. This works perfect. However, I made some minor changes over the last couple of hours and ran into a "minor" problem.

I added two grids to my child form, which are fueled by pviews. If I run my child form as a stand alone form ---- it works fine. The only code in the init() of my child form when I made the changes was the following:

thisform.requeryview
thisform.requery_view

This works perfect. The grids display the correct information. No problem.

Howerver, if I add the code back into the init() that is used when the parent form is calling this form, it throws things off. When a user makes a selection on the search form (parent) and calls the child, the child form opens up to the correct record, but the grids are blank. The grids are not reflecting any information:

The code in my init() of my child that is not working is:

lparameters tnId
select offices
set order to tag nofficeid
set key to tnId
locate
this.buttonset1.navrefresh

this.requeryview
this.requery_view


***My question is> does this code need to read different to not only call the child form to the correct record (which it is doing), but also allow my grids to work?

I am just throwing the last two lines underneath the top part and expecting it to work, b/c it worked before I placed the additional code.

If anyone can assist me with this, or point me in the right direction, I would appreciate that very much.

Thank you in advance for your time.

Jason
Next
Reply
Map
View

Click here to load this message in the networking platform