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] Stored Procedure question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Stored Procedure question
 Login/Join
 
Platinum Member
posted
Hi,
I've been asked to put the output of a new sql server stored procedure to our current web focus product 7.6.1. I do have several reports that run off of stored proc(They're basically simple). However, this one is different from the others - There can be up to 4 different output based on the criteria in the stored procedure(The main stored proc will call another procedure for the output). To make this simple, a user logs into web focus and his scorecard will display based on his role. The are 4 different roles leading to 4 different outputs. Would I have to somehow call the four different outputs using some sort of if/then logic? Sorry, I generally create simple focus reports...Nothing to this extent...But willing to learn. I'm assuming I will have to create metadata for each separate output.

Thanks for any help that can provided

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


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report This Post
Expert
posted Hide Post
I've never worked with a stored procedure of the type you describe, but I would try creating a WebFOCUS synonym (metadata) for the stored procedure and then use regular WebFOCUS TABLE and WHERE statements to use it. Take a look at this documentation: "Generating a Synonym for a Stored Procedure" and "Creating a Report Against a Stored Procedure".

Adapter Administration for UNIX, Windows, OpenVMS, i5/OS, and z/OS V7.6.1 > Using the Adapter for Microsoft SQL Server > Reporting Against a Microsoft SQL Server Stored Procedure


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Silver Member
posted Hide Post
Joe, I have been working with SQL Server for over 12 years and I understand what you are after. This is a GREAT EXAMPLE FOLKS of creating dynamic reports at run time. Joe, may I suggest that you have a look at the following article http://www.informationbuilders.../FlexibleReport.html and then go to my website http://www.infogoldusa.com for the code.
When you have a look at the code, you will see that there are FOCUS amper variables that determine the output of the report.
I am more that willing to work with you to get your report up and running.
sincerest regards
Steve


WebFOCUS 7.7.01 Windows, TSO 7.0
 
Posts: 43 | Registered: April 18, 2007Report This Post
Silver Member
posted Hide Post
Below is another approach where you can skip from creating synonym.(Adapter for MS SQl server is needed).

1. Use EX command to invoke Stored procuded.
Syntax: EX package_name.Stored procedure ¶m1, ¶m2...
(Parameters passed to Stored Proc Parameters will take care of logic for displaying data as per roles.)

2. TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS Hold_file.
END
-* Do what ever you want with this Hold_file.
 
Posts: 36 | Location: Boston MA | Registered: October 12, 2006Report This Post
Platinum Member
posted Hide Post
Thanks for the tips! Stefaans, I'll check out your site over the next few days and let you know what helps me. I'll be contacting you for help..Thanks for the offer!


WebFocus 7.7.02 WinXP
 
Posts: 236 | Registered: May 12, 2006Report 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] Stored Procedure question

Copyright © 1996-2020 Information Builders