How to display multi-lines text correctly (view only mode)
Hi,
I have a description field that includes multi-lines format, where the lines are being separated by
characters: chr(10) and chr(13).
When I’m using messageStyleText (or rawText) – I’m getting all the data in one line.
Can you please recommend of an OAF item that will display the text correctly?
Should I use another character as the line separator?
Thanks in advance,
Rona
Hi Rona;
rawText item supports HTML tags. so you can use br tag.
Best Regards;
GsrC.
Message was edited by:
GsrC
Similar Messages
-
How do you display multi line text
Hi
How does one display multi line text? I would like to display address information on the screen so that the user can select it and copy/paste it into another application (ms word).
I have the address information as separate columns (address1, address2, city, province, postal code) so I've changed the query on my view object to add it as address1 || chr(10) || address2 || chr(10) || city ....
If I display it on the page as an output text, it all displays as one line (okay, the chr(10) thing did not work but that's beside the point).
In general, is there a way to display multi line text? What component is suitable for this, if there is one?
ThanksYou can use normal outputText components in a panelGroupLayout (vertical layout) and add each attribute to it. The remove the labels or set the components to simple. You can then mark the data in the browser and use normal copy&paste to transfer the data.
If you want to output longer text with line breaks you can use an outputText with escape=false and use the br html tag to generate a line break;
<af:outputText escape="false"
value="+++++++long<br>test<br> this is a long text in multiple lines" id="ot10" truncateAt="#{viewScope.ToggleBean.truncateLength}"/>Timo -
Hi,
I am having issues in displaying multi line text on a Text Item. Basically there is data in the database column DetailText which is stored like this with carriage returns :
If I look at the column in Toad it is formatted with all the carriage returns correctly eg.
Hello
World
When I display this in my StaticStyled Item it displays like "Hello World" in one line. I want to be able to display it as it is with the carriage return on 2 seperate lines.
I have looked in this forum and one search 2 places and one suggestion was to use RawText Item type. I have tried changing the Item Type to Raw Text and FormattedText but it doesn't make any difference. The lines are still displayed horizontally instead of vertically. Another place I saw was to use OAHTMLWebBean but doesn't show how I can do this.
This should be simple enough but I have searched the DevGuide and this forum and couldn't figure out the solution. Any help would be appreciated.
ThanksHi,
I tried to do it in different way. What i did is I have created a item of type formattted text and set its text like:--
<html>User authentication failed. <br*> Cause: Invalid password.</html> --remove *
So I am able to see the prompt like :-
User authentication failed.
Cause: Invalid password.
Hope this helps you...
Thanks
--Anil -
How to display multi line headings in procedural alv report
Hi experts,
How to display multi line heading in alv( procedural alv report) report.
some columns single line and some columns multi line in the same report.
ex:
solvent consumed solvent recovered
fresh | recovery recovery | spent batch no storage
I am using procedural alv .pls give me idea.Hi Ram,
Check the sample report [how to display multi line headings in procedural alv report|http://sample-code-abap.blogspot.com/2008/01/printing-multiple-line-header-and.html]
Thanks,
Duy -
New lines created in excel when displaying multi-line text item value
Hi all,
I put the value of a multi-line text-item into a csv file :
DECLARE
file_filter VARCHAR2(256) := 'Export Files (*.csv)/*.csv/All Files (*.*)/*.*/';
fExp VARCHAR2(256);
in_file Text_IO.File_Type;
linebuf VARCHAR2(4000);
BEGIN
fExp := get_file_name ( directory_name, file_name, file_filter, NULL, SAVE_FILE, TRUE);
IF fExp IS NOT NULL
THEN
set_application_property(cursor_style,'BUSY');
in_file := Text_IO.Fopen( fExp, 'W');
linebuf := NVL(:com_bnc_possibles.LIBEL_TRAITE,'') || ';' ||
NVL(:com_bnc_possibles.NUM_ANFR_ID,'') || ';' ||
NVL(:com_bnc_possibles.ver_fiche,'') || ';' ||
NVL(:com_bnc_possibles.titre,'') || ';' ||
NVL(to_char(:com_bnc_possibles.date_creat, 'dd/mm/yyyy'),'') || ';' ||
NVL(to_char(:com_bnc_possibles.date_valide, 'dd/mm/yyyy'),'') || ';' ||
NVL(:com_bnc_possibles.LIBEL_STATUT,'') || ';' ||
NVL(:com_bnc_possibles.label_reg,'') || ';' ||
NVL(:com_bnc_possibles.nom,'') || ';' ||
NVL(:com_bnc_possibles.prenom,'') || ';' ||
NVL(:com_bnc_possibles.nom_societe,'') || ';' ||
NVL(:com_bnc_possibles.comp_bnc,'') || ';' ||
NVL(:com_bnc_possibles.motifs,'') || ';' ;
Text_IO.Put_Line( in_file, linebuf);
Text_IO.Fclose( in_file);
set_application_property(cursor_style,'DEFAULT');
END IF;
END;
And when I opened the csv file then the remaining lines , that is from the second line , of the column "motifs" are displayed through the column A of excel. The "motifs" multi-line text-item has 500 as its Maximum Length property value, and has a Char Data Type property value.
So how to display all the motifs' lines through the same column M without displaying the remaining lines in column A ?
Or are there tips to remove CHR(13) characters from a multi-line text-item ?
Thank you very much indeed.
Message was edited by:
andrianiainaHi,
I tried to do it in different way. What i did is I have created a item of type formattted text and set its text like:--
<html>User authentication failed. <br*> Cause: Invalid password.</html> --remove *
So I am able to see the prompt like :-
User authentication failed.
Cause: Invalid password.
Hope this helps you...
Thanks
--Anil -
How to display grid lines in list view please help
Hello,
What should I do if I would like do display grid lines in list view. I've read related topics but I stil don't know how to do it. I use Sharepoint Designer. Please help
RegardsHi,
You need to modify default XSLT of listview webpart. Open your page in designer and use below jquery.
<!–ADJUST TABLE COLUMN WIDTH–>
<script src=”http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js“></script>
<script>
$(function(){
$(“tr.ms-viewheadertr th:contains(‘Title’)”, “#MSO_ContentTable”).css(“width”, “50px”);
$(“tr.ms-viewheadertr th:contains(‘Assigned To’)”, “#MSO_ContentTable”).css(“width”, “300px”);
</script>
Check this for more info about steps:
http://jshidell.com/2010/09/19/adjusting-sharepoint-list-columns-using-jquery/
You can also look into this MSDN article for more customization:
http://msdn.microsoft.com/en-us/library/ff630941.aspx#odc_sp14_qn_UsingSharePointDesigner2010WorkwithWebParts_CreateXSLTListViewWebPart.
Hope it could help
Cheers, Hemendra-MCTS "Yesterday is just a memory,Tomorrow we may never see" -
How to add multi-line text in comments field of song tags in iTunes 12?
Recently upgraded to iTunes 12 and can no longer enter multi-line text in the comments field of a song tag. Used to use option+return (alt+enter) to go to a new line (carriage return). Can it still be done? Any help in this regard would be appreciated.
See my other post for the solution to this problem.
-
How to display multi-line popup message in user exit?
Hi,
I need to display a multi-line popup text message with controllable response buttons in a user exit.
I looked at POPUP_TO_CONFIRM with its DIAGNOSE_OBJECT, but I need substitution parameters and the FM doesn't support this functionality. So this won't meet my needs.
Does anyone have any suggestions (maybe with some example code?) about how to do this?
Thx.
AndyCode:
LOOP AT I_KNB1 WHERE ZTERM NE ZPAGDESCR-ZZTERM.
IF SY-TABIX = 1.
IF I_TEXT_TABLE[] IS INITIAL.
PERFORM HEADER TABLES I_TEXT_TABLE.
REFRESH : I_T052U.
SELECT ZTERM ZTAGG TEXT1
FROM T052U
INTO TABLE I_T052U
FOR ALL ENTRIES IN I_KNB1
WHERE SPRAS = SY-LANGU AND
ZTERM = I_KNB1-ZTERM.
ELSE.
REFRESH : I_T052U.
SELECT ZTERM ZTAGG TEXT1
FROM T052U
INTO TABLE I_T052U
FOR ALL ENTRIES IN I_KNB1
WHERE SPRAS = SY-LANGU AND
ZTERM = I_KNB1-ZTERM.
I_TEXT_TABLE-TDLINE = TEXT-T01.
APPEND I_TEXT_TABLE.
CLEAR I_TEXT_TABLE-TDLINE.
ENDIF.
MOVE 'Company' TO I_TEXT_TABLE-TDLINE+0(10).
MOVE 'Payment' TO I_TEXT_TABLE-TDLINE+10(10).
MOVE 'Day' TO I_TEXT_TABLE-TDLINE+20(5).
MOVE 'Description' TO I_TEXT_TABLE-TDLINE+26(100).
APPEND I_TEXT_TABLE.
CLEAR I_TEXT_TABLE-TDLINE.
MOVE 'Code' TO I_TEXT_TABLE-TDLINE+0(10).
MOVE 'Term' TO I_TEXT_TABLE-TDLINE+10(10).
MOVE 'Limit' TO I_TEXT_TABLE-TDLINE+20(5).
APPEND I_TEXT_TABLE.
CLEAR I_TEXT_TABLE-TDLINE.
I_TEXT_TABLE-TDLINE = TEXT-T01.
APPEND I_TEXT_TABLE.
CLEAR I_TEXT_TABLE-TDLINE.
ENDIF.
MOVE I_KNB1-BUKRS TO I_TEXT_TABLE-TDLINE+0(10).
MOVE I_KNB1-ZTERM TO I_TEXT_TABLE-TDLINE+10(10).
LOOP AT I_T052U WHERE ZTERM = I_KNB1-ZTERM .
MOVE I_T052U-ZTAGG TO I_TEXT_TABLE-TDLINE+20(5).
MOVE I_T052U-TEXT1 TO I_TEXT_TABLE-TDLINE+26(100).
APPEND I_TEXT_TABLE.
CLEAR I_TEXT_TABLE-TDLINE.
ENDLOOP.
ENDLOOP.
ENDIF.
IF NOT I_TEXT_TABLE[] IS INITIAL.
CALL FUNCTION '/RWD/POPUP_TO_DISPLAY_TEXTLIST'
EXPORTING
TASK = 'DISPLAY'
TITEL = 'Inco term payment term mismatch'
IMPORTING
FUNCTION =
TABLES
TEXT_TABLE = I_TEXT_TABLE .
ENDIF. -
How to display multi-line event in Ical
I read that you could display multiple lines of an event description in ical using Option-enter. This works...However, after I select "All Day" event, it reverts it back to single line display on my monthly view. I want to be able to print my ical Monthly View and I need the whole event description to display. Any suggestions?
I'm using ical 4.0.2Hi,
I don't think iCal does this.
Best wishes
John M -
How to display multple line text in a single cell in ALV?
Hi all,
I have 'Material Detailed Description' field in my ALV report, and it's taken from a multiple line text table. Is there any way so I can get this whole text to fit in a single ALV cell (not in single, but multiple line, as in original text data)?
Thank you.Hi
If you want you can display this long text field in ALV but the allignment of the ALV not looks good. so generally we won't display them in the output,
instead, in the interactive list write the code to call that MM03 transaction, and the user can see that text in the transaction when ever double clicked on that MATERIAL field.
Reward points for useful Answers
Regards
Anji -
I'm only using AWT. I need a component that's basically an uneditable Textarea (preferably no caret), where each line of text can be a different font and color. I was thinking to just extend a Canvas to draw the text on, and just add that component to a ScrollPane to get the scrollbar. Would this be the way to go? If not, can anyone suggest a better way?
I'd also think this would be a FAQ, but I can't find anything on it. If someone knows of a component out there that already exists, please let me know where I can check it out.
Thanks!
-JamesYou could make a TextArea which is disabled by calling setEnabled(false) (this is a component method). I think that that would be the easiest, however if color lines and changing fonts are what you are after you will need to go with something more elabrate. If you were using Swing you could just throw some HTML into the TextArea, but since you aren't I don't think there's an easy way using components.
The other way to go is to draw directly onto a Panel or Canvas using the drawString method. The problem I see with this is that drawString will not respect \n (newlines) so you will need to write your own code to implement multiple lines. Also, if you go this way I would take a look at the FontMetrics class which can help you with the dimensions of each line.
I hope this helps,
Alex -
Can Captivate 5 support multi-line text boxes?
A colleague is trying to add a text box, where the user will need to enter multiple lines... We don't want word wrap, we actually want the user to be able to add carriage returns and additional lines... Is that possible?
If the text box element can't do multiple lines, is there a way to accomplish this using a different canned element? (non-klunky, I've read the 3-year-old thread on this topic.)
Thanks in advanceFrom: Josh_Corey
Sent: Sunday, January 26, 2014 10:05 PM
To: KJ Therine
Subject: How to print multi line text boxes
Re: How to print multi line text boxes
created by Josh_Corey in FormsCentral - View the full discussion -
Displaying a multi-line text block in an ALV grid cell
Can I display a multi-line text block (i.e. a paragraph of text) in an ALV grid cell?
If yes, what properties do I set in the Field Catalaog (I tried the style and that didnt seem to work)
ThanksBy default ALV Grid merges fields with same values vertically.
Isn't that only when the column is part of the sort key? You also have to consider the user changing the sort sequence, which can make the text jumbled up. In one of my reports I have made the cell a hotspot and displayed the text in a popup. Of course you cannot print it.
Cheers,
Ramki. -
Multi line text custom field is not coming in ms project Professional
Pradeep,
You cannot access Multiline text fields from Project Professional and in Project Server Views. These fields are for use in Project Details pages and with workflow for demand management in Project Server. Please refer to the article shared in earlier post.
I would recommend you to create a Excel/SSRS report if you would like to show data available in this fields to end users.
Hope this helps.
===================================================
Thank you,
Kiran K.
If a post answers your question, please click "Mark As Answer" on that post and "Vote as Helpful -
How to display horizontal line in top-of-page by using object oriented ALV?
How to display horizontal line in top-of-page by using object oriented ALV.
I am created top-of-page in object oriented alv.
But not be successes in showing horizontal line in it.
Can any one pls give solution for this..
Thanks and regards..Hi
Try like this
data: gt_list_top_of_page type slis_t_listheader. " Top of page text.
Initialization.
perform comment_build using gt_list_top_of_page[].
form top_of_page.
* Note to self: the gif must be loaded into transaction OAOR with
* classname 'PICTURES' AND TYPE 'OT' to work with ALV GRID Functions.
* I Loaded NOVALOGO2 into system.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
* I_LOGO = 'NOVALOGO2'
* i_logo = 'ENJOYSAP_LOGO'
it_list_commentary = gt_list_top_of_page.
endform. " TOP_OF_PAGE
form comment_build using e04_lt_top_of_page type slis_t_listheader.
data: ls_line type slis_listheader.
clear ls_line.
ls_line-typ = 'A'.
ls_line-info = 'Special'(001).
fgrant = xgrant.
concatenate ls_line-info fgrant
'Stock Option Report to the board'(002)
into ls_line-info separated by space.
condense ls_line-info.
append ls_line to e04_lt_top_of_page.
endform. " COMMENT_BUILD
Use following syntex for footer print in alv:
* For End of Page
form END_OF_PAGE.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
write: sy-uline(50).
skip.
write:/40 'Page:', sy-pagno .
endform.
* For End of Report
form END_OF_LIST.
data: listwidth type i,
ld_pagepos(10) type c,
ld_page(10) type c.
skip.
write:/40 'Page:', sy-pagno .
endform.
check this link
http://abapprogramming.blogspot.com/
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5dc3e690-0201-0010-1ebf-b85b3bed962d
Changing width of a custom container dynamically
Display Page numbers in ALV
Insert picture in selection screen.
Logo in OO ALV Grid
Reward all helpfull answers
Regards
Pavan
Maybe you are looking for
-
I have tried everything to get the new 4.0 to open. I did the upgrade this morning and have been working on it all day, When I tried installing it several times FF was running so I closed it down via task mgr. I rebooted.. did everything I could thin
-
��� sign and Swing components in jdk1.4 and Windows XP
Having an issue that hopefully someone else has seen. When I try to display the euro sign (�) in a JTextField or JTextArea it appears as a question mark (?). I can enter the euro sign ok but its saved and displayed incorrectly. I've noticed that this
-
How to get price list line id for service contract line(subline)
Does some one know how to find a price list line id for service contracts line (sub line)? There is actually a column in table okc_k_lines_b which is called price_list_line_id, but it looks like it is never used (all columns values are NULL). I have
-
Does anyone have a solution for this error? Access violation at address 61CD0C28 in module 'OraClient10.Dll'. Read of address 00000084.
-
I recently reloaded the RNR v4.3 on my t61 (6494cto). The machine has 4GB memory, 300GB hardrive, 500GB an the caddy, I am running windows 7, and all softwate has the latest set of fixes an updates. I am trying to run RNR to backup all data on the