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]conditional display of column value..urgent

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]conditional display of column value..urgent
 Login/Join
 
Silver Member
posted
hi everybody,

Problem:-

I don't want to show the value of a column when its equal to a particular value, like
don't want to display the value of Retail_cost when Retail_cost equals 10000..

I used "white color trick", as suggested in earlier posts, but in that case when i m selecting that particular cell, it is highlighting the text there.
So i cannot use "white color trick", i just want the text to disappear permanently from the desired cell i.e. no value not even '0'

guys plz help its pretty urgent..

Thanks in advance..

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


Thanks and Regards,

WF 7611
XFOCUS/FOCUS DB
Win XP
EXL2K/HTML
 
Posts: 37 | Location: India | Registered: September 25, 2008Report This Post
Silver Member
posted Hide Post
forgot to mention, i m displaying the output report in EXL2K format
sorry..


Thanks and Regards,

WF 7611
XFOCUS/FOCUS DB
Win XP
EXL2K/HTML
 
Posts: 37 | Location: India | Registered: September 25, 2008Report This Post
Gold member
posted Hide Post
Hi Pink,

WebFOCUS is interpreted, so it can 'self-modify' its own code.

You may be able to this technique to put the code into a variable that 'disappears' conditionally.

I have not used this but I have seen it used, and thought it was a fascinating concept.
It now seems that it may help you do what you are asking.

I hope this helps even a little ?

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


WF 7.6.4 & 5.3
Charles Lee
 
Posts: 93 | Registered: June 17, 2008Report This Post
Guru
posted Hide Post
perhaps a WHEN statement in the style sheet code for the column? when over 10000 make column width 0? should alieviate any selecti0on problems

but i would probably use DM to do an alternative pass against the data..


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report This Post
Silver Member
posted Hide Post
Hi Nubi,

Sorry, I didn't get u.

Can u plz elaborate what u mean to say..


Thanks and Regards,

WF 7611
XFOCUS/FOCUS DB
Win XP
EXL2K/HTML
 
Posts: 37 | Location: India | Registered: September 25, 2008Report This Post
Guru
posted Hide Post
its not going to work- it didn't think it through - you will need to use DM as every value could be different


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report This Post
<JG>
posted
You really must get some basic training, this is as simple a request as you can possibly ask.

TABLE FILE CAR
PRINT
COMPUTE MYSALES/I9 MISSING ON=IF SALES EQ 43000 THEN MISSING ELSE SALES;
SALES BY MODEL
ON TABLE PCHOLD FORMAT EXL2K
END
 
Report This Post
Expert
posted Hide Post
Use COMPUTE to make the value MISSING when equal to your target value (e.g. the one you want to make "disappear"). Easy when you think about what you really need to do.

TABLE FILE CAR
SUM DCOST NOPRINT
    COMPUTE DC/D20.2 MISSING ON = IF DCOST EQ 10000 THEN MISSING ELSE DCOST; AS DEALER_COST
 BY COUNTRY
 BY CAR
 BY MODEL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
  GRID=OFF, SIZE=9, $
ENDSTYLE
END

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
Looks like JG pipped me to the "post" Wink

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Silver Member
posted Hide Post
Thanks a lot JG and Tony for spending ur valuable time..

JG- I am just 20 days old as far as working on webfocus is concerned, i already had training, but now i think it was not that basic. You ppl saved the day for me.


Thanks and Regards,

WF 7611
XFOCUS/FOCUS DB
Win XP
EXL2K/HTML
 
Posts: 37 | Location: India | Registered: September 25, 2008Report This Post
Expert
posted Hide Post
Add : SET NODATA = ' ' to change the default "." to a space (to Tony's and JG's code) so that you will see nothing instead of the period.

Or, even easier, add the S to suppress the zero in the field format as in this code:
COMPUTE TempCost/D12.2MS = IF RETAIL_COST EQ 6820 THEN 0 ELSE RETAIL_COST; AS 'Dealer Cost'

PS 1: That would be WebFOCUS instead of webfocus - just FYI. Unfortunately, license plates don't accept mixed case characters.
PS 2: Thanks Charlz for your insight.

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
<JG>
posted
The nodata character behaves differently in Excel in different releases of WebFocus.

In most cases Excel does not display the nodata character.

Using 0 suppression has the unfortunate side effect that genuine 0's are also suppressed.
 
Report This Post
Gold member
posted Hide Post
If '0 suppression' applies to ALL columns, can '0 suppression' be restricted to specified columns, allowing genuine 0's that you do want to be displayed in other columns ?

Does this apply to NODATA as well ?

Thanks


WF 7.6.4 & 5.3
Charles Lee
 
Posts: 93 | Registered: June 17, 2008Report This Post
Expert
posted Hide Post
Another option, which is more work, but more versatile, is to convert the value to text.

TABLE FILE CAR
SUM DCOST NOPRINT
    COMPUTE DC/A26 = IF DCOST EQ 10000 THEN ' ' ELSE PTOA(DCOST,'(P20.2C)','A26'); AS DEALER_COST
 BY COUNTRY
 BY CAR
 BY MODEL
ON TABLE PCHOLD FORMAT EXL2K
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
  GRID=OFF, SIZE=9, $
  TYPE=REPORT, COLUMN=DC, JUSTIFY=RIGHT, $
ENDSTYLE
END


The only issue is the nasty warning of number stored as text.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Expert
posted Hide Post
JG: Thanks for that insight. It looked good here, on my system.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Silver Member
posted Hide Post
Thanks to all for the valuable suggestions and knowledge enhancing discussion.

JG & Tony's solution just worked fine for me.


Thanks and Regards,

WF 7611
XFOCUS/FOCUS DB
Win XP
EXL2K/HTML
 
Posts: 37 | Location: India | Registered: September 25, 2008Report This Post
Guru
posted Hide Post
glad you got it working Pink.

cheers


Developer Studio 7.64
Win XP
Output: mostly HTML, also Excel and PDF

"Never attribute to malice that which can be adequately explained by stupidity." - Heinlein's Razor
 
Posts: 285 | Location: UK | Registered: October 26, 2007Report 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]conditional display of column value..urgent

Copyright © 1996-2020 Information Builders