Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing grids on a form
Message
From
13/05/1999 08:53:36
 
 
To
11/05/1999 23:23:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00217603
Message ID:
00218316
Views:
22
>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

This code is in the init of the form ??? If so this could be your problem as the grid init's before the form does. VFP initializes everything from the inside out. I've encountered problems putting code to init objects in the init of the form. As a rule, I try to avoid doing so.

Just a thought.

Jason
Jason Tryon
Senior Systems Analyst / Technical Lead
eBusiness / iPage
Previous
Reply
Map
View

Click here to load this message in the networking platform