Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with parameterized CREATE SQL VIEW
Message
De
01/12/1998 16:37:18
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, Colombie Britannique, Canada
 
 
À
01/12/1998 15:29:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00162878
Message ID:
00162977
Vues:
22
Hi Bob,

I've noticed that you participate in the Codebook forum at leafe.com. Did you try this approach on Codebook bizobj? I was hoping to use the article you mention below to modify my search criteria on my bizobj and wonder if you have any words of advice.

Paul de Niverville


,
>
>do you have access to the August 98 issue of FoxTalk... an article on Query By Form tells you how to replace the WHERE of a view on the fly like you want to do... you are pretty close.
>
>I sort of modified the approach from the article...the article assumes that each user has there own personal copy of the .DBC with the views in it.
>
>Basically, what I do is create the view in the view designer without a WHERE.
>
>Then... what you can do is use the view with nodata
>
>No... all you have to do is query the data, using your programatically built where, and append the records to the view.
>
>You can also get the select SQL from the view so you don't have to recreate it...
>
>cWhere = 'WHERE ...'
>
>use MyView nodata
>
>cSQL = cursorgetprop('SQL','MyView')
>
>cQueryString = cSQL + cWhere
>
>&cQueryString INTO CURSOR MyWhere NOFILTER
>
>sele MyView
>append from dbf('MyWhere')
>use in MyWhere
>
>It is a kludge, but it seems to work.
>
>BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform