mar. 15 décembre 2015, 21h48
MILCENT Bernhart
Belgique
atoutfox.public.association
Re: Changer la clause Where dans une vue Locale par programmation.
Bonsoir ,
Effectivement un paramètre détermine le filtre d'une vue locale mais dans mon cas c'est impossible .
le paramètre dépend de L'objet thisform ( ce qui n'est pas permis dans une vue ).
le rowsource n'étant pas lancé dans une prédure "requery" , me demande à chaque fois la valeur du champs paramètre.
j'imagine qu'il faudra recourir à qqch du style...?
=EXECSCRIPT("CREATE SQL VIEW dbk LOCAL CONNECT 'AmlineBobConnection' AS SELECT * FROM " + cFolderData + ' ' + cFolderData )
DBSETPROP('DBK', 'View', 'UpdateType', 1)
DBSETPROP('DBK', 'View', 'WhereType', 3)
DBSETPROP('DBK', 'View', 'FetchMemo', .T.)
DBSETPROP('DBK', 'View', 'SendUpdates', .F.)
DBSETPROP('DBK', 'View', 'UseMemoSize', 255)
DBSETPROP('DBK', 'View', 'FetchSize', 100)
DBSETPROP('DBK', 'View', 'MaxRecords', -1)
DBSETPROP('DBK', 'View', 'Tables', cFolderData)
DBSETPROP('DBK', 'View', 'Prepared', .F.)
DBSETPROP('DBK', 'View', 'CompareMemo', .T.)
DBSETPROP('DBK', 'View', 'FetchAsNeeded', .F.)
DBSETPROP('DBK', 'View', 'Comment', "")
DBSETPROP('DBK', 'View', 'BatchUpdateCount', 1)
DBSETPROP('DBK', 'View', 'ShareConnection', .F.)
ou je modifie à chaque fois la construction de la vue dans le DBC ?
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000016966