Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A parameterized view as a grid recordsource
Message
 
 
À
07/04/2004 18:19:48
Paul Trimming
Lonely Pilgrim Shareware
Merstham, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00893122
Message ID:
00893126
Vues:
21
This message has been marked as the solution to the initial question of the thread.
Just requery your view:
WITH Thisform.pfdbtr.Page2
    LOCAL paraID
    paraID = .txtID.Value
    REQUERY("vwslaccount")
    .grid1.Refresh()
ENDWITH
HTH.

>Hello,

>I am a beginner Foxpro 6 programmer, and I have a problem with parameterized views.

>I am trying to use a view as the recordsource for a grid (on a pageframe). >By changing the parameter of the view, I want to change the data in the >grid, and I have written the following code in the click event of the page >frame.
>local paraid
>paraid = thisform.pfdbtr.page1.txtid.value
>thisform.pfdbtr.page2.grid1.recordsource = ""
>thisform.pfdbtr.page2.grid1.recordsource = "vwslaccount"
>thisform.refresh
>thisform.pfdbtr.page2.grid1.refresh()
>By changing the parameter paraid, I hope to change the data of the view in >the grid.

>However , in practice the view shows an input box to get the first >parameter when the form opens, and thereafter refuses to refresh and change >the data at all, although paraid has changed. Help!!

>Code snippets appreciated.
Apoya a Visual FoxPro usandolo legalmente
--
¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º
Espartaco Palma Martínez
SysOp PortalFox
http://www.portalfox.com
esparta@portalfox.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform