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     [SOLVED] InfoAssist: How to get runtime row sequence number and filter it?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] InfoAssist: How to get runtime row sequence number and filter it?
 Login/Join
 
Silver Member
posted
Hi,

We are using InfoAssist to create a report.

I want to get a runtime row sequence number based on a column (like "row_number() over (partition by column_name order by sort_column_name)" in Oracle database). I should then be able to filter the first sequence id.

Can someone please help me?

Thank you.

Kind regards,

Manoj.

This message has been edited. Last edited by: Manoj,


Newbie.
WebFOCUS 8.2.0.3.
Client 8.2.0.4.
 
Posts: 46 | Location: UK | Registered: August 30, 2018Report This Post
Virtuoso
posted Hide Post
Manoj

Not sure if this is exactly what you are looking for because I didn't understand what you meant my "partition".

DEFINE FILE CAR
SEQ_ID/I11 WITH CAR=IF COUNTRY NE LAST COUNTRY THEN 1 ELSE SEQ_ID + 1;
END
TABLE FILE CAR
PRINT
CAR
BY COUNTRY
BY LOWEST SEQ_ID
WHERE SEQ_ID EQ 1
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLEMBEDIMG ON
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/FILE/IBI_HTML_DIR/ibi_themes/Warm.sty,
$
ENDSTYLE
END


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Silver Member
posted Hide Post
Many thanks Chuck.

As I am using InfoAssist, I am assuming that the SEQ_ID is a COMPUTE calculation. When used as a COMPUTE calculation I am getting a proper sequence ID, but if I create a calculation based on DEFINE it's not consistent.

Then I filtered the COMPUTE calculation by limiting it to 1 (right click > Sort > Limit > Custom .. 1), as I can not drag and drop a calculation based on COMPUTE to the Filter pane.

The report is returning expected rows.

Very helpful. Thank you very much.

Kind regards,

Manoj.

This message has been edited. Last edited by: Manoj,


Newbie.
WebFOCUS 8.2.0.3.
Client 8.2.0.4.
 
Posts: 46 | Location: UK | Registered: August 30, 2018Report 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     [SOLVED] InfoAssist: How to get runtime row sequence number and filter it?

Copyright © 1996-2020 Information Builders