Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View Definition has changed error
Message
 
 
À
27/07/2001 18:28:06
Steve Buttress
Steve Buttress Software Consulting
Bloomington, Californie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00536728
Message ID:
00536911
Vues:
8
This message has been marked as the solution to the initial question of the thread.
Because of the LEFT OUTER JOIN you'll get nulls for all DCMIINVENTORY fields if there are no inventory records. You can use NVL() function to convert nulls into zeros
IIF( ( NVL(DCMIINVENTORY.iQtyOnHand,0) - ;
    NVL(DCMIINVENTORY.iQtyCommitted, 0)) > 0, ;
    (NVL(DCMIINVENTORY.iQtyOnHand,0) - ;
     NVL(DCMIINVENTORY.iQtyCommitted,0)), 0000000000) AS "iQtyAvailable" ,;
>I have a view where this error occurs occsionally. I will post the view definition below, but I think the error is comming out of one field expresion which is:
>
>IIF((DCMIINVENTORY.iQtyOnHand - DCMIINVENTORY.iQtyCommitted)>= 0,(DCMIINVENTORY.iQtyOnHand - DCMIINVENTORY.iQtyCommitted),0000000000) AS "iQtyAvailable" ,;
>
>the error was generared this morning, while testing the APP at the clients site, where the inventory table did not contain a record for this item, which I suspect caused the error.
>
< SNIP >
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform