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] Dialog Commands within the Report Request

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Dialog Commands within the Report Request
 Login/Join
 
Guru
posted
I guess I have been creating my report improperly for a while and with App Studio it is harder for me to do it the same way. I am not allowed to have Dialog Manager statements within the Report request. I get a Hopefully someone teach me the proper way to create a where statement depending on a parameter value.
How do I include and additional WHERE command depending on a value that is passed to a parameter ealier in the procedure?

Here is how I have been doing it now. But when I open the fexin App Studio it says it will discard the Dialog Manager commands if I continue.

TABLE FILE CUSTOMER_MASTER_BASE_FEES
PRINT
YMFEDP
BY FFDCUSN NOPRINT
WHERE FFDCUSN EQ '&CUST_NO'
-IF &SCANNER_FEES NE 'Y' GOTO AFTER_SCANNER_FEES
AND YMCLSN EQ '271'
-AFTER_SCANNER_FEES
;
END

This message has been edited. Last edited by: Jay Potter,


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Expert
posted Hide Post
Jay does this discard happen in a GUI tool or a text editor? If it's in the text editor a lot of us are in trouble, because there's nothing wrong with your code and I do stuff like this all the time.


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
Virtuoso
posted Hide Post
I never use the GUI for generating reports, but I assume you could adjust your WHERE-clause to be GUI-friendly like so:
WHERE (('&SCANNER_FEES' NE 'Y') OR ('&SCANNER_FEES' EQ 'Y' AND YMCLSN EQ '271'));


WebFOCUS 8.1.03, Windows 7-64/2008-64, IBM DB2/400, Oracle 11g & RDB, MS SQL-Server 2005, SAP, PostgreSQL 11, Output: HTML, PDF, Excel 2010
: Member of User Group Benelux :
 
Posts: 1669 | Location: Enschede, Netherlands | Registered: August 12, 2010Report This Post
Guru
posted Hide Post
In the GUI! It did it in the Dev Studio GUI before, but that was only after it was opened up and I select the report image. In App Studio it tries to open the report up right away, even when there are multple dialogs other procedures before it.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Guru
posted Hide Post
The problem &SCANNER_FEES does not represent a field name. It is just a parameter outside of the table that help me decided if I need to add an addition where clause.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Guru
posted Hide Post
Hi Jay,
How about passing a new parameter &YMCLSN271 with a value of '271' or 'FOC_NONE', depending on the value of '&SCANNER_FEES'?
-SET &YMCLSN271=IF &SCANNER_FEES NE 'Y' THEN 'FOC_NONE' ELSE '271';
Then creatE a second where clause in place of the 'AND' condition:
WHERE YMCLSN EQ '&YMCLSN271';



Greg



current client: WF 8.1.05 & 8.2 - Windows 7 64bit - Tomcat 7 - MRE / BID - IE11

local: WF 8.2 - Windows 7 64bit - Tomcat 6 - MRE / BID - FOCUS - IE11

PMF 8
 
Posts: 274 | Location: Boston/New England | Registered: February 12, 2006Report This Post
Guru
posted Hide Post
That is a good concept and may take care of a lot of the problems.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report This Post
Guru
posted Hide Post
Thank you for the suggestion, it did solved the dialog problem within the table request. But ofcourse there are other things that blow up the GUI. I will update my code to use this suggestion to limit the dialog code within the table request.


WebFocus 8.1.5
iSeries/Windows
DB2/SQL/Access
Dev Studio
App Studio
Maintain
ReportCaster
 
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011Report 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] Dialog Commands within the Report Request

Copyright © 1996-2020 Information Builders