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     supress the coloum on condition

Read-Only Read-Only Topic
Go
Search
Notify
Tools
supress the coloum on condition
 Login/Join
 
Member
posted
MY report contains two parts based on some currency. if the currency is local it should display the column , if currency is global it should supress the entire column.Whole data is there in one hold file. I need the output in html/pdf/excel

I need soming thing like this

Table file temp_hold
print
col1
col2
col3
col4
by col5
ON TABLE HOLD FORMAT pdf
ON TABLE SET STYLE *
----
end

col3 column should be display if col5=L and should not display when col5=G
 
Posts: 9 | Registered: November 16, 2006Report This Post
Expert
posted Hide Post
-DEFAULT &CURRENCY = 'USD';
-SET &NPCUR = IF &CURRENCY IS 'USD' THEN ' ' ELSE ' NOPRINT ' ;


quote:
Table file temp_hold
print
col1
col2 &NPCUR
col3
col4
by col5
ON TABLE HOLD FORMAT pdf
ON TABLE SET STYLE *
----
end


create a conditional variable to change the currency column from
col2
to
col2 NOPRINT




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
Hey Susannah...you floating away?


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Virtuoso
posted Hide Post
I think Susannah's solution only works if you print only USD or only not USD.
In a mixed report it will not work.

I think what you want is
col5 col1 col2 col3 col4
USD  123       xxx  aaa
     222       aaa  bbb
EUR  250  300  axc  ccx
GBP  100  180  cxs  xxs
  


If this is what you want then

DEFINE FILE xxx
COL3X/D12S=IF COL5 EQ 'USD' THEN 0 ELSE COL3;
END

TABLE FILE xxx
PRINT 
COL1
COL2X
COL3
COL4
BY COL5
END




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Member
posted Hide Post
quote:
Originally posted by FrankDutch:
I think Susannah's solution only works if you print only USD or only not USD.
In a mixed report it will not work.

I think what you want is
col5 col1 col2 col3 col4
USD  123       xxx  aaa
     222       aaa  bbb
EUR  250  300  axc  ccx
GBP  100  180  cxs  xxs
  


If this is what you want then

DEFINE FILE xxx
COL3X/D12S=IF COL5 EQ 'USD' THEN 0 ELSE COL3;
END

TABLE FILE xxx
PRINT 
COL1
COL2X
COL3
COL4
BY COL5
END


Hi Thank you very much for the response.

My requirement is something like this

EUR
col1 col2 col3 col4
250 300 axc ccx
100 180 cxs xxs
USD
col1 col3 col4
123 xxx aaa
222 aaa bbb
 
Posts: 9 | Registered: November 16, 2006Report This Post
Virtuoso
posted Hide Post
in that case Susannah's was ok.
But if you want it all in one report I think you have to build it up in two fex parts, and then put the output into a pchold and build a separate html page where you combine the two reports

It's a bit difficult to make the whole fex whit the proper functions since I do not have the software here available.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 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     supress the coloum on condition

Copyright © 1996-2020 Information Builders