Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] each in single line
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] each in single line
 Login/Join
 
Gold member
posted
HI

I have a field column record like paragraph

DEFINE FILE CAR
PAG_FLD/A1000 = '1. What is a Word processor? Name some popular word processors? 2. What are the various display views available in Word? 3. Why do you indent text? What are the various available in Word? 4. What are the steps to add Header and Footer toolbar method? 5. What is the Auto Text feature used for? 6. In your document you have typed the word file as FILE but you want to find and replace all the documents of this word to file. How would you do this? 7. You have typed a document and you want to check the spelling mistakes. What would you do? 8. How to create and print labels? 9. How to insert rows and columns in a table? 10. What are the steps in adding borders and shading to a table?'
END

TABLE FILE CAR
PRINT CAR SALES PAG_FLD
BY COUNTRY
ON TABLE PCHOLD FORMAT HTML
END

I want to display PAG_FLD like this each line

1. What is a Word processor? Name some popular word processors?
2. What are the various display views available in Word?
3. Why do you indent text? What are the various available in Word?
4. What are the steps to add Header and Footer toolbar method?
5. What is the Auto Text feature used for?
6. In your document you have typed the word file as FILE but you want to find and replace all the documents of this word to file. How would you do this?
7. You have typed a document and you want to check the spelling mistakes. What would you do?
8. How to create and print labels?
9. How to insert rows and columns in a table?
10. What are the steps in adding borders and shading to a table?


can any one help me plz

Thanks

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


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 51 | Registered: December 01, 2010Reply With QuoteReport This Post
Expert
posted Hide Post
A simple solution is to add an HTML break to the text.

This is not purfect, as there are other ? in the text..

DEFINE FILE CAR 
PAG_FLD/A1000 = '1. What is a Word processor? Name some popular word processors?'
              | '2. What are the various display views available in Word?'
              | '3. Why do you indent text? What are the various available in Word?'
              | '4. What are the steps to add Header and Footer toolbar method?'
              | '5. What is the Auto Text feature used for?'
              | '6. In your document you have typed the word file as FILE but you want to find and replace all the documents of this word to file. How would you do this?'
              | '7. You have typed a document and you want to check the spelling mistakes. What would you do?'
              | '8. How to create and print labels?'
              | '9. How to insert rows and columns in a table?'
              | '10. What are the steps in adding borders and shading to a table?';
New_Fld/A1000 = STRREP (1000,PAG_FLD,1,'?',5,'?<BR>',1000,'A1000') ;
END 
 
TABLE FILE CAR
PRINT CAR SALES New_Fld
BY COUNTRY
ON TABLE PCHOLD FORMAT HTML
END


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6270 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
Code for all other formats, PDF and EXCEL; then, you won't have to modify:
  
-SET &FMT = 'HTML';
DEFINE FILE CAR
  LF/A4  = IF '&FMT' EQ 'HTML' THEN '<BR>' ELSE HEXBYT(10, 'A1');
  PAG_FLD/A1000 = 
                '1. What is a Word processor? Name some popular word processors?' | LF 
              | '2. What are the various display views available in Word?' | LF 
              | '3. Why do you indent text? What are the various available in Word?' | LF 
              | '4. What are the steps to add Header and Footer toolbar method?' | LF 
              | '5. What is the Auto Text feature used for?' | LF 
              | '6. In your document you have typed the word file as FILE but you want to find and replace all the documents of this word to file. How would you do this?' | LF 
              | '7. You have typed a document and you want to check the spelling mistakes. What would you do?' | LF 
              | '8. How to create and print labels?' | LF 
              | '9. How to insert rows and columns in a table?' | LF 
              | '10. What are the steps in adding borders and shading to a table?';
END 

TABLE FILE CAR
PRINT 
      CAR 
      SALES 
      PAG_FLD
BY COUNTRY
ON TABLE PCHOLD FORMAT &FMT
ON TABLE SET STYLE *
TYPE=REPORT,GRID=OFF,FONT='ARIAL',SIZE=8,STYLE=NORMAL,LEFTGAP = .031, SQUEEZE=ON,
     RIGHTGAP = .031,TOPGAP = .05,BOTTOMGAP = .05, LINEBREAK = LF,$
TYPE=REPORT, COLUMN = N4, WRAP=4,$
ENDSTYLE
END


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1968 | Location: Centennial, CO | Registered: January 31, 2006Reply With QuoteReport This Post
Expert
posted Hide Post
If you have the right version, adding MARKUP=ON in the stylesheet will make the
work for other formats as well.

May ways...


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6270 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] each in single line

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.