[CLOSED] Is there a way to store the number of records a fex returns and evaluate it
Example, I have a fex that returns rows and upon completion jumps to an html page for further processing. Sometimes no rows are returned.
I'd like to evaluate the number of rows returned and if > 0 still jump to my HTML page but if 0 jump to a different html page.
I figure after the code to grab data is run I need an IF THEN ELSE statement where I evaluate some variable (?) and jump based on it.
Is there such a variable?This message has been edited. Last edited by: FP Mod Chuck,
WebFOCUS 8206.08 Windows, All Outputs
October 25, 2018, 12:59 PM
RobertF
ROWCOUNT sounded Webfocusy...guess its not... but I stumbled upon &LINES....any issues around using that...I think it works...
WebFOCUS 8206.08 Windows, All Outputs
October 25, 2018, 01:16 PM
pav
something like this
TABLE FILE CAR
PRINT
CAR
ON TABLE HOLD AS RECORDCOUNT FORMAT ALPHA
END
-RUN
-SET &ROW_COUNT=&LINES;
-TYPE &ROW_COUNT
-IF &ORW_COUNT EQ 0 GOTO HTML_CODE;
-IF &ROW_COUNT NE 0 GOTO NEXT_CODE
October 25, 2018, 01:34 PM
Hallway
quote:
Is there such a variable?
&LINES: Is the number lines returned in the last answer set.