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     focus language syntax

Read-Only Read-Only Topic
Go
Search
Notify
Tools
focus language syntax
 Login/Join
 
Platinum Member
posted
I have a defined field called weight that is defined as D10v3. I want to display just a underline for user input if there is no value to display otherwise display the value. What would be the proper syntax to display this?


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 2007Report This Post
Virtuoso
posted Hide Post
This is trying to make a define out of apples and oranges. Someone may know a trick...but does it have to be an underline...could it be a different colar...and a small line:

TYPE=DATA,BACKCOLOR=YELLOW,STYLE=BOLD+UNDERLINE,COLUMN=weight,WHEN=weight EQ 0,$


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
Something like this?

-*
DEFINE FILE CAR
TMP_SALES/D10.3 = SALES;
NEW_SALES/A15 = IF SALES EQ 0 THEN '_______________' ELSE FTOA(TMP_SALES,'(D10.3)',NEW_SALES);
END
-*
TABLE FILE CAR
PRINT
BODY
SALES
TMP_SALES
NEW_SALES
BY COUNTRY
BY CAR
BY MODEL
END
-*

Jim


WF DevStu 5.2.6/WF Srv 5.2.4/Win NT 5.2
 
Posts: 118 | Location: Lincoln Nebraska | Registered: May 04, 2005Report This Post
Virtuoso
posted Hide Post
That will work. Smiler


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Platinum Member
posted Hide Post
DEFINE FILE CAR
NEW_SALES/D12.2S = SALES;
END
TABLE FILE CAR
SUM NEW_SALES
SALES
BY CAR
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT PDF
ON TABLE SET STYLE *
UNITS=IN,
SQUEEZE=ON,
ORIENTATION=PORTRAIT,
$
TYPE=REPORT,
FONT='ARIAL',
SIZE=10,
$
TYPE=DATA,
COLUMN=N2,
BORDER-BOTTOM=LIGHT, WHEN=N2 EQ 0,
$
ENDSTYLE
END


WF 8 version 8.2.04. Windows.
In focus since 1990.
 
Posts: 189 | Location: pgh pa | Registered: October 06, 2004Report This Post
Platinum Member
posted Hide Post
Thanks all, your suggestions worked.


Prod: WebFocus 7.7.3 Win 2003
Dev: WebFocus 7.7.3 Win 2003
 
Posts: 116 | Registered: April 23, 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     focus language syntax

Copyright © 1996-2020 Information Builders