Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Report shows value when it should not
Message
 
 
À
03/12/2015 04:32:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01628178
Message ID:
01628360
Vues:
48
>>>>>>Right, but I don't have much info myself. I have an escalation from the client, our client service people checked the stored procedure results that is used for that report. It returned 1 row with sum_cost = 0. That's why this 1.91 value in the report is so strange. I've checked the report file (and the class that generated the report). The report uses a variable which is set to use nvl(sum_cost, 0) as expression with the initial value of 0 and SUM option. It doesn't explain this mystery.
>>>>>
>>>>>check the variable.
>>>>
>>>>What do you mean?
>>>
>>>put code to log the variable value into a file and get it.
>>
>>You're still clear as mud. How do you record a variable in a report? Besides, I'd rather not change the application at all - any ideas of keeping the existing code and identifying the problem?
>
>Sorry.
>It is my English that is under the mud :)
>
>I advise you not to use the variable directly but
>the expression NVL ().
>Each step is a source of potential problems.
>
>However, the line code after setting the variable put
>STRTOFILE(transform(var),"debugreport.log").
>
>You can put into the report
>the STRTOFILE(transform(var),"debugreport.log",.T.)*0 expression
>on a text, with a not visible empty condition
>and check the hystory of the variable value.
>
>Difficult to repair an engine without opening the hood.

Ok, I may try that. Thanks.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform