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 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 ; ENDThis 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, 2011
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
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 :
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, 2011
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, 2011
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
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, 2011