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.
I am trying to build a report to replace a manual process - currently, the team runs bunch of queries and pastes the results in a spreadsheet. They have a set of queries looking for oldest 100 rows and newest 100 rows from a table, looks like this: Select * from table_name where rownum < 101 order by date_column asc (and separate sql with order by as desc for latest 100 rows)
They are going to build a new table with all the table_names and corresponding date_column_names so that I can use that table to populate a dropdown list - I am thinking of building an HTML launch page where they will be prompted for table_name (I will also design a hidden date_column_name parameter so that I can pass that value to the queries. Based on the table they select, I need to run that query and populate results in a spreadsheet.
I tried doing this by creating a SQL pass thru report and using 2 parameters which I can pass: &table_name and &date_column. How would I control all the columns which need to be printed as output? I am stuck! Please help with any ideas.
Thanks in advance!
P.S.: I am using WF 7.7.03This message has been edited. Last edited by: Tamra,
What you seem to be asking about is what some call an "adhoc" or "self-serve" report.
Try this fex file to see how WebFOCUS can handle dynamic field names being passed in for processing:
-DEFAULT &PRINT_OR_SUM_FIELDS='''COUNTRY'' AND ''CAR''';
-DEFAULT &BY_FIELDS='''BODYTYPE'' NOPRINT BY ''MODEL''';
-DEFAULT &ACROSS_FIELDS='''SEATS'' ACROSS ''BODYTYPE''';
-DEFAULT &WHERE_FIELDS='''ENGLAND'' OR ''JAPAN''';
TABLE FILE ibisamp/car
PRINT
&PRINT_OR_SUM_FIELDS.(AND()).PRINT_OR_SUM_FIELDS.
BY
&BY_FIELDS.(BY()).BY_FIELDS.
ACROSS
&ACROSS_FIELDS.(ACROSS()).ACROSS_FIELDS.
WHERE
COUNTRY EQ &WHERE_FIELDS.(OR()).WHERE_FIELDS:. ;
ON TABLE SUBFOOT
""
"Field names and filter criteria used in this report:"
""
"PRINT or SUM fields: &PRINT_OR_SUM_FIELDS "
"BY fields: &BY_FIELDS "
"ACROSS fields: &ACROSS_FIELDS "
"WHERE filter criteria: &WHERE_FIELDS "
END
I am using App Studio and WebFOCUS 8.1.05M, so I cannot say if this will help you or not.This message has been edited. Last edited by: Squatch,
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015