Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tableupdate and syntax error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00668664
Message ID:
00669283
Vues:
17
As you can see, this is a standard view, nothing fancy.

FUNCTION MakeView_LV_INVLINES
***************** View setup for LV_INVLINES ***************

CREATE SQL VIEW "LV_INVLINES" ;
AS SELECT * FROM inventory!invlines WHERE Invlines.fksales = ?lv_pksales

DBSetProp('LV_INVLINES', 'View', 'UpdateType', 1)
DBSetProp('LV_INVLINES', 'View', 'WhereType', 3)
DBSetProp('LV_INVLINES', 'View', 'FetchMemo', .T.)
DBSetProp('LV_INVLINES', 'View', 'SendUpdates', .T.)
DBSetProp('LV_INVLINES', 'View', 'UseMemoSize', 255)
DBSetProp('LV_INVLINES', 'View', 'FetchSize', 100)
DBSetProp('LV_INVLINES', 'View', 'MaxRecords', -1)
DBSetProp('LV_INVLINES', 'View', 'Tables', 'inventory!invlines')
DBSetProp('LV_INVLINES', 'View', 'Prepared', .F.)
DBSetProp('LV_INVLINES', 'View', 'CompareMemo', .T.)
DBSetProp('LV_INVLINES', 'View', 'FetchAsNeeded', .F.)
DBSetProp('LV_INVLINES', 'View', 'FetchSize', 100)
DBSetProp('LV_INVLINES', 'View', 'Comment', "")
DBSetProp('LV_INVLINES', 'View', 'BatchUpdateCount', 1)
DBSetProp('LV_INVLINES', 'View', 'ShareConnection', .F.)

*!* Field Level Properties for LV_INVLINES
* Props for the LV_INVLINES.pkguid field.
DBSetProp('LV_INVLINES.pkguid', 'Field', 'KeyField', .T.)
DBSetProp('LV_INVLINES.pkguid', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.pkguid', 'Field', 'UpdateName', 'inventory!invlines.pkguid')
DBSetProp('LV_INVLINES.pkguid', 'Field', 'DataType', "I")
* Props for the LV_INVLINES.fksales field.
DBSetProp('LV_INVLINES.fksales', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.fksales', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.fksales', 'Field', 'UpdateName', 'inventory!invlines.fksales')
DBSetProp('LV_INVLINES.fksales', 'Field', 'DataType', "I")
* Props for the LV_INVLINES.itemno field.
DBSetProp('LV_INVLINES.itemno', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.itemno', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.itemno', 'Field', 'UpdateName', 'inventory!invlines.itemno')
DBSetProp('LV_INVLINES.itemno', 'Field', 'DataType', "C(16)")
* Props for the LV_INVLINES.desc field.
DBSetProp('LV_INVLINES.desc', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.desc', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.desc', 'Field', 'UpdateName', 'inventory!invlines.desc')
DBSetProp('LV_INVLINES.desc', 'Field', 'DataType', "C(30)")
* Props for the LV_INVLINES.qty field.
DBSetProp('LV_INVLINES.qty', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.qty', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.qty', 'Field', 'UpdateName', 'inventory!invlines.qty')
DBSetProp('LV_INVLINES.qty', 'Field', 'DataType', "N(4)")
* Props for the LV_INVLINES.amount field.
DBSetProp('LV_INVLINES.amount', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.amount', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.amount', 'Field', 'UpdateName', 'inventory!invlines.amount')
DBSetProp('LV_INVLINES.amount', 'Field', 'DataType', "N(8,2)")
* Props for the LV_INVLINES.pst field.
DBSetProp('LV_INVLINES.pst', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.pst', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.pst', 'Field', 'UpdateName', 'inventory!invlines.pst')
DBSetProp('LV_INVLINES.pst', 'Field', 'DataType', "N(8,2)")
* Props for the LV_INVLINES.gst field.
DBSetProp('LV_INVLINES.gst', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.gst', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.gst', 'Field', 'UpdateName', 'inventory!invlines.gst')
DBSetProp('LV_INVLINES.gst', 'Field', 'DataType', "N(8,2)")
* Props for the LV_INVLINES.total field.
DBSetProp('LV_INVLINES.total', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.total', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.total', 'Field', 'UpdateName', 'inventory!invlines.total')
DBSetProp('LV_INVLINES.total', 'Field', 'DataType', "N(8,2)")
* Props for the LV_INVLINES.updated field.
DBSetProp('LV_INVLINES.updated', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.updated', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.updated', 'Field', 'UpdateName', 'inventory!invlines.updated')
DBSetProp('LV_INVLINES.updated', 'Field', 'DataType', "T")
* Props for the LV_INVLINES.discount field.
DBSetProp('LV_INVLINES.discount', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.discount', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.discount', 'Field', 'UpdateName', 'inventory!invlines.discount')
DBSetProp('LV_INVLINES.discount', 'Field', 'DataType', "N(3)")
* Props for the LV_INVLINES.price field.
DBSetProp('LV_INVLINES.price', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.price', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.price', 'Field', 'UpdateName', 'inventory!invlines.price')
DBSetProp('LV_INVLINES.price', 'Field', 'DataType', "N(8,2)")
* Props for the LV_INVLINES.tax field.
DBSetProp('LV_INVLINES.tax', 'Field', 'KeyField', .F.)
DBSetProp('LV_INVLINES.tax', 'Field', 'Updatable', .T.)
DBSetProp('LV_INVLINES.tax', 'Field', 'UpdateName', 'inventory!invlines.tax')
DBSetProp('LV_INVLINES.tax', 'Field', 'DataType', "L")
ENDFUNC

>Hi, Jamie!
>
>Can you show us the code of the view (use VFP7\Tools\GenDbc to create the code of your dbc and separate the code of the related view to paste it between < p r e > and < / p r e > tags into your message reply!)?
Jamie Di Natale
S.D.X. Int'l Consulting
Computer Consulting, Networking and Custom Programming
jamie@s-d-x.com
http://www.s-d-x.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform