Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sharepoint form's Empty Text Variable to Numeric Zero Va
Message
 
 
À
18/09/2008 12:37:34
Gil Munk
The Scarborough Group, Inc.
Baltimore, Maryland, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01348664
Message ID:
01348745
Vues:
14
What error do you get?
Try
UPDATE client SET nLoansYTD = NVL(%loansytd%,0)
>I have a Sharepoint form that has number fields. These are treated as text fields in Sharepoint. When saving the form values I am attempting to UPDATE the VFP tables. If the user clears the text field of a number then saves the form's data, the variable seems to be evaluated before it gets to the OLEDB UPDATE. The cleared field evaluates to a NULL value. I cannot get the OLB DB statement to work with NULL values because, it seems, that the cleared variable is evaluated PRIOR to the UPDATE command.
>
>Has any one come across this? Am I missing something? I'm trying to stay away from scripts in the Sharepoint form.
>
>OLDDB chokes on each of the following:
>
>UPDATE client SET nLoansYTD = %loansytd%
>UPDATE client SET nLoansYTD = IIF(%loansytd%=.NULL., 0, %loansytd%)
>UPDATE client SET nLoansYTD = IIF(ISNULL(%loansytd%),0, %loansytd%)
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform