Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Is there a way to store the number of records a fex returns and evaluate it

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Is there a way to store the number of records a fex returns and evaluate it
 Login/Join
 
Master
posted
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
 
Posts: 603 | Registered: June 28, 2013Report This Post
Master
posted Hide Post
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
 
Posts: 603 | Registered: June 28, 2013Report This Post
Platinum Member
posted Hide Post
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  
 
Posts: 109 | Registered: February 02, 2016Report This Post
Master
posted Hide Post
quote:
Is there such a variable?


&LINES: Is the number lines returned in the last answer set.

Reference: Statistical Variables


Hallway

 
Prod: 8202M1
Test: 8202M4
Repository:
 
OS:
 
Outputs:
 
 
 
 
 
Posts: 608 | Location: Salt Lake City, UT, USA | Registered: November 18, 2015Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Is there a way to store the number of records a fex returns and evaluate it

Copyright © 1996-2020 Information Builders