Hi All I am looking for the highest value of a field
need something like that
Order # Highest 109551 109551 109550 109551 109546 109551
The goal is to create a error message to tell user that the order number he entered is to high or that it was cancelled
The highest number will change every day so next run the max number could be 109558 or 559
I have tried sum (lst), Sum (max), cant get that result
Any help would be appreciatedThis message has been edited. Last edited by: FP Mod Chuck,
7.6. / Win 7 / Excel
November 24, 2017, 09:12 AM
jfr99
TABLE FILE CAR PRINT DEALER_COST BY COUNTRY BY CAR END -* -** Maximum DEALER_COST per CAR -* TABLE FILE CAR SUM MAX.DEALER_COST BY COUNTRY BY CAR END -* -** Maximum DEALER_COST per COUNTRY -* TABLE FILE CAR SUM MAX.DEALER_COST BY COUNTRY END -* -** Maximum DEALER_COST per table -* TABLE FILE CAR SUM MAX.DEALER_COST END
WebFocus 8.201M, Windows, App Studio
November 24, 2017, 09:16 AM
Don Garland
I'm guessing that you plan to have a report that prompts the user for an order number and you want one of the following results;
1. If the order number entered is found in the data set and is not canceled, display the report. 2. If the order number entered is found in the data set but is canceled, an error message displays indicating that the order was canceled. 2. If the order number entered is not found in the data set, an error message displays that the data was not found.
How does the highest order number factor into this scenario?This message has been edited. Last edited by: Don Garland,
The report send only 1 line ( Status of order ), Valid order number with details of order or a line saying that the order number is invalid
Today, our last PO is 109698 If a user enter in the prompt box 109700, he will get a message that says invalid but because we haven't reach 109700, it is not yet valid or invalid, it just does not exist
Anyway, I am closing this request as we decided not to spend more time on that report.
Thank you all any way
7.6. / Win 7 / Excel
November 28, 2017, 10:43 AM
Doug
How about this:
TABLE FILE [WHATEVER]
PRINT [A FIELD]
WHERE PO_NUMBER EQ 109700
ON TABLE HOLD
END
-RUN
-IF &RECORDS EQ 0 THEN GOTO NoPOfound ELSE GOTO POfound;
-POfound
-*Run a good report...
-GOTO TheEndOfThis
-NoPOfound
-* Display an appropriate message...
-GOTO TheEndOfThis
-TheEndOfThis
PS: Hi Don...
In FOCUS Since 1983 ~ from FOCUS to WebFOCUS. Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206