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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]ASNAMES
 Login/Join
 
Guru
posted
Does anyone know if I can change the color of some of the characters in an ASNAME?

In the example below, can I change the color of ABC to red in the example below?

PRINT COMPANY AS 'ABC Company'

This message has been edited. Last edited by: Michele Brooks,


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
 
Posts: 244 | Registered: August 27, 2012Report This Post
Expert
posted Hide Post
You can do it with MARKUP.

I think this will work with 7.6.1

DEFINE FILE CAR
 Test_Text/A20 = 'Value < 1 >' ;
 Test_Text2/A20 = '<box> </box>' ;
END
TABLE FILE CAR
PRINT CAR   AS '[b]Car[/b],[i]Name[/i]'
      MODEL AS '[i]<u>M</u>odel[/i]'
      Test_Text AS 'Testing,Text'
      Test_Text2 AS '<sup>text</sup>'
BY COUNTRY AS '<font face="arial" size=12 color=#FF9933>Country</font>,<font face="arial" size=8 color=#0066FF>Name</font>'
-*ON TABLE PCHOLD FORMAT EXL2K
ON TABLE PCHOLD FORMAT PDF
-*ON TABLE SET NEWLAYOUT ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
UNITS=CM, PAGESIZE='A4', LEFTMARGIN=0.635000, RIGHTMARGIN=0.635000,
    TOPMARGIN=0.635000, BOTTOMMARGIN=0.635000,
    SQUEEZE=ON,
    ORIENTATION=LANDSCAPE, $
TYPE=REPORT, FONT=ARIAL, SIZE=10, MARKUP=ON, $
-*TYPE=REPORT, COLUMN=CAR, FONT=ARIAL, SIZE=10, MARKUP=ON, $
END


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
Guru
posted Hide Post
quote:
DEFINE FILE CAR
Test_Text/A20 = 'Value < 1 >' ;
Test_Text2/A20 = ' ' ;
END
TABLE FILE CAR
PRINT CAR AS 'Car,Name'
MODEL AS 'Model'
Test_Text AS 'Testing,Text'
Test_Text2 AS 'text'
BY COUNTRY AS 'Country,Name'
-*ON TABLE PCHOLD FORMAT EXL2K
ON TABLE PCHOLD FORMAT PDF
-*ON TABLE SET NEWLAYOUT ON
ON TABLE SET PAGE-NUM OFF
ON TABLE SET STYLE *
UNITS=CM, PAGESIZE='A4', LEFTMARGIN=0.635000, RIGHTMARGIN=0.635000,
TOPMARGIN=0.635000, BOTTOMMARGIN=0.635000,
SQUEEZE=ON,
ORIENTATION=LANDSCAPE, $
TYPE=REPORT, FONT=ARIAL, SIZE=10, MARKUP=ON, $
-*TYPE=REPORT, COLUMN=CAR, FONT=ARIAL, SIZE=10, MARKUP=ON, $
END


You thought correctly. I thought that when I had previously used markup code, the macro template that I am using did not run. But, I tried your suggestion and it WORKS. What I'm trying to do is indent certain lines in a report that uses over. So what I did was to insert some period marks in front of the text I want indented, Using your suggestion, I can color code the period marks white so that that will not be visible when the report opens up in Excel. I can't use show blanks=ON because it prevents the macro template that I am using from running when the report opens up in Excel. I thought of another way to indent the data, that is, by using CTRAIN. I ran into a problem using that function. I am going to open up a new Post to see if that problem can be resolved. If it can't then I will use the MARKUP function. Thanks so much for your EXCELLENT suggestion. I will close this POST.


WF 8205, Windows 10
Oracle DBMS
EXL07/PDF Output
 
Posts: 244 | Registered: August 27, 2012Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders