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     Eliminate a named-column but Show-remaining-All when use PRINT *

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Eliminate a named-column but Show-remaining-All when use PRINT *
 Login/Join
 
Gold member
posted
Hi ,

I use SQL passthru method to make some "on demand processing" based on the query inputed by the user.Suppose I want to eliminate a confedential / special-meaning column even if selected in the SQL inputed by the user.More clearly in my case, if user enter a field in the SELECT list with an alias name as BURST then we need to make a BY column with BURST , but the BURST should not be displayed in the report output.

Here is my code I tried.

driver.fex
------------
-SET &VSQL='SELCT EMPID,ENAME,SAL,MGRID,DEPT BURST FROM EMP';
-DEFAULT &BYVAL = '';
-IF &VSQL CONTAINS 'BURST' THEN GOTO BYCLAUSE ELSE RESUMENEXT;
-BYCLAUSE
-SET &BYVAL= 'BY BURST NOPRINT';
-RESUMENEXT
ENGINE SQLORA SET DEFAULT_CONNECTION myconn
SQL SQLORA PREPARE SQLOUT FOR
&VSQL
END
TABLE FILE SQLOUT
PRINT *
&BYVAL
END

As per the requirement,this should not print a column BURST in the output. The effect of BURST should be visible only when this report is being scheduled in report caster with burst check box is checked.

Also I can't use any predefined column list with PRINT (I used *), since this is a driver fex where user can enter any valid SQL statements from a input screen provided.

Any suggestions to overcome this?

Thanks and regards,
Johney.


Version 7.6.11
Webfocus installed in AIX 5.3,
desktop PC: Windows-XP based
Output: Excel, HTML, PDF
 
Posts: 83 | Registered: October 19, 2007Report This Post
Expert
posted Hide Post
You can add a variable to the program to bypass that code when the program is not run from RC. Have a -DEFAULT for that variable in the program.

In RC, Tasks tab, add the variable in the Advanced section and give it a value. You can then add code to the focexec to put the BURST code in if that variable is set. Otherwise bypass it.

We do that successfully with a security model we have set up. If the program is run from RC, it runs a different set of connect code than if the program is run from the browser.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 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     Eliminate a named-column but Show-remaining-All when use PRINT *

Copyright © 1996-2020 Information Builders