Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding Custom View Parameter?
Message
 
 
À
08/09/2008 14:10:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01345719
Message ID:
01345860
Vues:
24
>>Ok, if I do the line:
>>
>>vp_studentRule = [( Student.cid <> 'ZZZZZZ')]
>>
>>in the command window before validating, the DBC validates without error.
>>So, where does this need to be defined, if adding the line to the top of the view PRG is not working?
>>Thanks for your continued help,
>>Amanda
>
>Amanda,
>
>It's something I found out.
>
>Normally view parameters do not have to be defined if you use them with NODATA
>
>There are two exceptions to this - why I don't know
>
>parameters used in
>(1) macro subsitution - a la &?param
>
>(2) parameters used in JOIN
>eg
>
>select   ..
>  from table1 ;
>      join table2 on (table1.fld = table2.fld) and (table1.codeX = ?param)
>...
>
Interesting. Going back to the question - do you see a way to somehow have the default parameter value saved with a view?

It looks like in Amanda's case she needs to remember to set this parameter in Command Window before running validation program. Unless there is a way to do so in Stonefield.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform