Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameterized Views...Referencing
Message
From
01/04/1999 10:43:09
 
 
To
01/04/1999 09:45:48
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00203633
Message ID:
00204251
Views:
18
>I saw in the app. you sent me that you placed the following code:
>
>lnParentID=Parenttbl.pk
>Requery('childview')
>ThisForm.childgrid.Refresh()
>
> 1. Would this be the same if I am using text boxes for the parent, versus a grid? I assume so. I would place this code in the REQUERY VIEW properties, just like this one is. I just want to make sure.

The difference is, in the sample that I sent, the parent grid is the mechanism that the user uses to change the parent record pointer. If you don't have a grid, but you have textboxes, you have to have another method of moving the record pointer. It sounds like you are going to have a buttonset (vcr buttons?) for this. Anyhow, All you need to do is call THISFORM.requeryViews() after the pointer changes. So if a button class is doing the changing, you'l want to put code in the each button's click event like:

DODEFAULT() && Run the default VCR functionality first
THISFORM.requeryViews()
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform