Focal Point
[CLOSED] each in single line

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7017046516

January 19, 2012, 08:32 PM
Deepu
[CLOSED] each in single line
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
January 19, 2012, 08:55 PM
Waz
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.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

January 20, 2012, 08:46 AM
Tom Flynn
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
January 22, 2012, 03:32 PM
Waz
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.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!