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     Empty String and a space...

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Empty String and a space...
 Login/Join
 
Silver Member
posted
Question about dynamic HTML Creation:

I have a parameter in my report that toggles the bold style in HTML here is how I default the &variable:
-SET &IPBOLD = IF '&SORTCOLUMN.EVAL' EQ 'RO_PAIRING_CD' THEN ' style="font-weight: bold; ' ELSE '';

If I am not on RO_PAIRING_CD, I want &IPBOLD to equla '' (the empty string).

When I build my HTML I get a space in the file where &IPBOLD is... I don't understand why.

I am using single pipe concatenation when building the HTML, so I basically have a string | &IPBOLD | another string.

Why doesn't '' give me an empty string?

WA
 
Posts: 35 | Registered: April 20, 2006Report This Post
<Special-K>
posted
Am getting same thing on PC Focus 6.40c.
I suspect a dialogue manager variable is designed to take up at least one space when it's defined.

You could get round this by rechecking the &SORTCOLUMN.EVAL when you concatenate (assuming &SORTCOLUMN.EVAL hasnt changed it's value, e.g.


-SET &IPBOLD = IF '&SORTCOLUMN.EVAL' EQ 'RO_PAIRING_CD' THEN ' style="font-weight: bold; ' ELSE '';


-SET &CONCAT1 = IF '&SORTCOLUMN.EVAL' EQ 'RO_PAIRING_CD' THEN
- &STRING1 | ' style="font-weight: bold; ' | &STRING2 ELSE
&STRING1 | &STRING2;
 
Report 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     Empty String and a space...

Copyright © 1996-2020 Information Builders