Non displayed texts of compound characteristics
Hi,
Web Application is not displaying the text of a specified variable (using a compound characteristic).
We populated a variable with an exit function module and we are using this variable as a restriction of values.
For example, we use a variable PRFOLIO in the web interface builder; the formatting is set to &C_PRFOLIO-TEXT (&C_PRFOLIO-VALUE), but the web does not display the text information, only the value.
Has anyone else experienced this?
For information, we are using web interface and SEM-BW 3.1B version.
Thanks in advance
Thanks Anand,
We have already customized the web interface builder as you described it in your preview post. Unfortunately, it doesn't work.
In our case we have two compounded characteristic:
- Portfolio is coumpounded with region
- GR is compounded with Region and Portfolio.
These variables are not displaying the text even with this customizing..
We have tried all the standards settings and also different exits but nothing seem to fix our issues.
Does it come from the BPS version, the exit draw up...?
Many thanks for your attention.
Best Regards.
Similar Messages
-
Not all chinese characters display correctly with non-embedded text
Hi all,
I've updated to the last beta 2 of Flash Player 10.1 (10,1,51,66) and compiled this simple Flex application to illustrate the fact that not all chinese characters can be displayed correctly with non-embedded text (device font).
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
minWidth="1024" minHeight="768"
creationComplete="resourceManager.localeChain = ['zh_CN'];"
layout="{new VerticalLayout()}">
<fx:Script>
<![CDATA[
import spark.layouts.VerticalLayout;
]]>
</fx:Script>
<s:Label text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝">
</s:Label>
<mx:Label text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝"/>
</s:Application>
Notice that characters from the Unicode range 0x4F1E .. 0x4А2D are not displayed within <s:Label> component that uses Flash Text Engine (FTE) by default to display the text, but at the same time those characters display just fine within older <mx:Label> component that relies on flash.text.TextField instance to render the text.OK, did not know that "Arial Unicode MS" font is only distributed with Microsoft Office, was looking into relying on this font in case if "simsun.ttc" font is not available at the user's system, by using the following:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
minWidth="1024" minHeight="768"
creationComplete="resourceManager.localeChain = ['zh_CN']"
layout="{new VerticalLayout()}">
<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/halo";
s|Label {
fontFamily: "Arial Unicode MS, SimSun, Arial";
</fx:Style>
<fx:Script>
<![CDATA[
import spark.layouts.VerticalLayout;
]]>
</fx:Script>
<s:Label id="sparkLabel" text="伜-伞伟传伡伢伣伤伥伦伧伨伩伪伫伬伭-伝"/>
</s:Application>
Tough decision ahead, but accordingly to the survey at codestyle.org (2000 participants from 2007 year and onwards), Arial Unicode MS is present at 62.53%% system surveyed.
ps
My current install of Windows XP already includes the install of Microsoft Office 2007 and I've also enabled/disabled the support of East Asian languages, thus the content of my "fonts" folder differs now significantly from "clean" Windows XP install version.
Nevertheless I found the page with comprehensive lists of standard fonts installed with different releases of Windows that looks viable here: http://www.kayskreations.net/fonts/fonttb.html -
JEditorPane problem displaying non-English text in 1.4
hai
I am trying to display a non English text in JEdiorPane . This is working fine with 13 but not with 1.4. (In 1.4 the non-English text is being rendered in english font).
I am giving the HTML file and the java code that displays the html file below
somebody pl help
HTML file:
<HTML>
<HEAD>
<STYLE>
font.English0 {font-family:Courier,TimesNewRoman,helvetica,VERDANA,sansserif; font-style:normal;font-size:14pt;}
font.telugu1 { font-family: Tl_tthemalatha;font-style: normal;font-size: 12pt; }
font.English1 { font-family: Courier;font-style: normal;font-size: 22pt; }
</STYLE>
</HEAD>
<BODY>
<font class=telugu1> the non english text </font>
</BODY>
</HTML>
the java code is.............
class outpane extends JFrame
JEditorPane jep;
Syllable sl;
public static void main(String[] args)
new outpane(args[0]);
outpane(String str)
jep = new JEditorPane();
jep.setEditable(false);
jep.setContentType("text/html");
JScrollPane js = new JScrollPane(jep);
this.getContentPane().add(js);
setSize(400,500);
setVisible(true);
setText(str);
void setText(String str)
try{
BufferedReader br1;
FileInputStream fr1;
fr1=new FileInputStream(str);
br1=new BufferedReader(new InputStreamReader(fr1,"ISO8859-1"));
String s = new String();
String s1 = new String();
int j = 0;
while((s = br1.readLine()) != null)
s += "\n";
// Some mappings...
jep.setText(s1);
fr1.close();
}catch(Exception e){System.out.println("Exp");}
To menction again this works fine in 1.3. In 1.4 the font is not beibg recognised
Thanks in AnticipationI forgot to mention this happens only in Linux
-
Non-english text cannot be displayed correctly
I'm trying to create a report file in pdf format, but display of non-English text isn't correct, (utf-8 encoding)
Ð<92>ойна в Южной Ð<9e>Ñ<81>еÑ<82>ии
BT
/F1 1 Tf
14 0 0 14 50.00 631.00 Tm
0.00 0.00 0.00 rg
(Ð<92>ойна в Южной Ð<9e>Ñ<81>еÑ<82>ии
) Tj
ETThanks for the reply, I created the pdf file by my own library, it works for english, french and other iso-8859-1 languages, but not for others like russian (iso-8859-5) and must the fonts be embedded?
below is the file I created,
%PDF-1.2
1 0 obj
<<
/CreationDate (D:20120423025455)
/Producer (N/A)
>>
endobj
6 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
>>
endobj
7 0 obj
<<
/Type /Font
/Subtype /TrueType
/Name /F1
/BaseFont /Verdana
/Encoding /WinAnsiEncoding
/FirstChar 0
/LastChar 69
/FontDescriptor 8 0 R
/Widths[1000 701 496 606 351 637 534 644 595 620 640 591 696 637 570 838
594 599 887 623 600 797 591 683 621 685 614 605 524 794 591 640
566 363 685 745 363 761 875 615 454 751 644 644 692 635 454 632
394 623 454 818 632 600 591 606 274 595 426 632 351 972 520 545
818 635 787 393 471 840 ]>>
endobj
8 0 obj
<<
/Type /FontDescriptor
/FontName /Verdana
/Flags 4
/FontBBox [-49 -206 1445 1000]
/MissingWidth 1000
/StemV 96
/StemH 96
/ItalicAngle 0
/CapHeight 1000
/XHeight 700
/Ascent 1000
/Descent -211
/Leading 211
/MaxWidth 1526
/AvgWidth 526>>
endobj
9 0 obj
<<
/Type /Font
/Subtype /TrueType
/Name /F2
/BaseFont /Verdana-Bold
/Encoding /WinAnsiEncoding
/FirstChar 0
/LastChar 27
/Widths[1000 761 686 720 719 667 341 677 1195 999 850 598 664 535 720 402
710 710 965 531 699 776 670 691 681 757 696 684 ]
/FontDescriptor 10 0 R>>
endobj
10 0 obj
<<
/Type /FontDescriptor
/FontName /Verdana-Bold
/Flags 4
/FontBBox [-73 -207 1706 1000]
/MissingWidth 1000
/StemV 186
/StemH 186
/ItalicAngle 0
/CapHeight 1000
/XHeight 700
/Ascent 1000
/Descent -167
/Leading 167
/MaxWidth 1750
/AvgWidth 583>>
endobj
11 0 obj
<<
/Type /Page
/Parent 3 0 R
/Resources 14 0 R
/Contents 12 0 R
>>
endobj
12 0 obj
<<
/Length 13 0 R
>>
stream
q
611 0 0 791 0.00 0.00 cm
/Im1 Do
Q
BT
/F1 1 Tf
23 0 0 23 150.00 600.00 Tm
0.00 0.00 0.00 rg
(PDF Report
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 565.50 Tm
0.54 0.65 0.62 rg
) Tj
ET
0.54 0.65 0.62 rg
148 546 464 23 re
f
BT
/F2 1 Tf
16 0 0 16 150.00 550.50 Tm
1.00 1.00 1.00 rg
(asdf
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 476.50 Tm
0.54 0.65 0.62 rg
(Generated on: Mon Apr 23 02:54:55 2012
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 461.50 Tm
0.54 0.65 0.62 rg
(Generated by:
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 446.50 Tm
0.54 0.65 0.62 rg
(File Name:
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 431.50 Tm
0.54 0.65 0.62 rg
(Time: 2012-04-16 00:00
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 150.00 416.50 Tm
0.54 0.65 0.62 rg
(Devices: 0 (See Appendix A)
) Tj
ET
endstream
endobj
13 0 obj
838
endobj
14 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
/XObject << /Im1 15 0 R
>>
>>
endobj
15 0 obj
<<
/Subtype /Image
/BitsPerComponent 8
/Filter [/FlateDecode]
/Height 1650
/Width 1276
/DecodeParms [<</Predictor 15 /Colors 3 /Columns 1276>>]
/ColorSpace /DeviceRGB
/Length 43454
>>
stream
endstream
endobj
16 0 obj
<<
/Type /Page
/Parent 3 0 R
/Resources 19 0 R
/Contents 17 0 R
>>
endobj
17 0 obj
<<
/Length 18 0 R
>>
stream
50.00 757.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 757.00 l
f
S
0.00 0.00 0.00 rg
q
601 0 0 24 0.00 736.00 cm
/Im2 Do
Q
BT
/F1 1 Tf
16 0 0 16 50.00 742.00 Tm
1.00 1.00 1.00 rg
(Table of Contents
) Tj
ET
BT
/F1 1 Tf
12 0 0 12 50.00 706.00 Tm
0.00 0.00 0.00 rg
) Tj
ET
0.87 0.92 0.91 rg
68 677 500 14 re
f
BT
/F1 1 Tf
12 0 0 12 70.00 679.00 Tm
0.00 0.00 0.00 rg
(Introduction) Tj
ET
BT
/F1 1 Tf
10 0 0 10 547.00 679.00 Tm
(2 ) Tj
ET
BT
/F1 1 Tf
10 0 0 10 70.00 679.00 Tm
0.00 0.00 0.00 rg
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 656.50 Tm
0.00 0.00 0.00 rg
(²ÞÙÝÐ Ò ÎÖÝÞÙ ŸáÕâØØ) Tj
ET
BT
/F1 1 Tf
10 0 0 10 547.00 656.50 Tm
(2 ) Tj
ET
BT
/F1 1 Tf
12 0 0 12 80.00 656.50 Tm
0.00 0.00 0.00 rg
) Tj
ET
0.87 0.92 0.91 rg
68 627 500 14 re
f
BT
/F1 1 Tf
12 0 0 12 70.00 629.50 Tm
0.00 0.00 0.00 rg
(Appendix A) Tj
ET
BT
/F1 1 Tf
10 0 0 10 547.00 629.50 Tm
(3 ) Tj
ET
50.00 45.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 45.00 l
f
S
BT
/F1 1 Tf
10 0 0 10 50.00 30.00 Tm
0.54 0.65 0.62 rg
(© 2012 N/A) Tj
ET
BT
/F1 1 Tf
10 0 0 10 492.00 30.00 Tm
0.54 0.65 0.62 rg
[(Page 1 )(of 3 )] TJ
ET
endstream
endobj
18 0 obj
1219
endobj
19 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
/XObject << /Im2 20 0 R
>>
>>
endobj
20 0 obj
<<
/Subtype /Image
/BitsPerComponent 8
/Filter [/FlateDecode]
/Height 53
/Width 1275
/DecodeParms [<</Predictor 15 /Colors 3 /Columns 1275>>]
/ColorSpace /DeviceRGB
/Length 1896
>>
stream
endstream
endobj
21 0 obj
<<
/Type /Page
/Parent 3 0 R
/Resources 24 0 R
/Contents 22 0 R
>>
endobj
22 0 obj
<<
/Length 23 0 R
>>
stream
50.00 757.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 757.00 l
f
S
0.00 0.00 0.00 rg
BT
/F2 1 Tf
16 0 0 16 50.00 742.00 Tm
0.00 0.00 0.00 rg
) Tj
ET
q
601 0 0 24 0.00 712.00 cm
/Im3 Do
Q
BT
/F1 1 Tf
16 0 0 16 50.00 718.00 Tm
1.00 1.00 1.00 rg
(Introduction
) Tj
ET
BT
/F2 1 Tf
14 0 0 14 50.00 694.00 Tm
0.00 0.00 0.00 rg
) Tj
ET
BT
/F1 1 Tf
14 0 0 14 50.00 673.00 Tm
0.00 0.00 0.00 rg
(²ÞÙÝÐ Ò ÎÖÝÞÙ ŸáÕâØØ
) Tj
ET
BT
/F2 1 Tf
10 0 0 10 50.00 652.00 Tm
0.00 0.00 0.00 rg
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 637.00 Tm
0.00 0.00 0.00 rg
( ÐтПт пПÑÑ‚ целОкПЌ О пПлМПÑтью пПÑвÑщеМ репПрт) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 622.00 Tm
0.00 0.00 0.00 rg
( ажу ÐÑ€ÐºÐ°ÐŽÐžÑ Ð‘Ð°Ð±Ñ‡ÐµÐœÐºÐŸ Оз зПМы бПевых ЎейÑтвОй в) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 607.00 Tm
0.00 0.00 0.00 rg
( ГрузОО. ÐркаЎОй Оз ВлаЎОкавказа ЎПбралÑÑ ÐŽÐŸ Дж) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 592.00 Tm
0.00 0.00 0.00 rg
( авы, затеЌ ЎП ЊхОМвалО, учаÑтвПвал в штурЌе ЗеЌÐ) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 577.00 Tm
0.00 0.00 0.00 rg
( Ÿ-ÐОкПзО, прПÑлеЎПвал Ñ Ð±Ð°Ñ‚Ð°Ð»ÑŒÐŸÐœÐŸÐŒ «ВПÑтПк» в ÐœÐ) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 562.00 Tm
0.00 0.00 0.00 rg
( °Ð¿Ñ€Ð°Ð²Ð»ÐµÐœÐžÐž ГПрО О уже Ма путО туЎа верМулÑÑ ÐœÐ° Ð) Tj
ET
BT
/F1 1 Tf
10 0 0 10 80.00 547.00 Tm
0.00 0.00 0.00 rg
( ²ÐµÑ€Ñ‚Плете Ñ Ñ€Ð°ÐœÐµÐœÑ‹ÐŒÐž.
) Tj
ET
50.00 45.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 45.00 l
f
S
BT
/F1 1 Tf
10 0 0 10 50.00 30.00 Tm
0.54 0.65 0.62 rg
(© 2012 N/A) Tj
ET
BT
/F1 1 Tf
10 0 0 10 492.00 30.00 Tm
0.54 0.65 0.62 rg
[(Page 2 )(of 3 )] TJ
ET
endstream
endobj
23 0 obj
1742
endobj
24 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
/XObject << /Im3 25 0 R
>>
>>
endobj
25 0 obj
<<
/Subtype /Image
/BitsPerComponent 8
/Filter [/FlateDecode]
/Height 53
/Width 1275
/DecodeParms [<</Predictor 15 /Colors 3 /Columns 1275>>]
/ColorSpace /DeviceRGB
/Length 1896
>>
stream
endstream
endobj
26 0 obj
<<
/Type /Page
/Parent 3 0 R
/Resources 29 0 R
/Contents 27 0 R
>>
endobj
27 0 obj
<<
/Length 28 0 R
>>
stream
50.00 757.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 757.00 l
f
S
0.00 0.00 0.00 rg
BT
/F2 1 Tf
16 0 0 16 50.00 742.00 Tm
0.00 0.00 0.00 rg
) Tj
ET
q
601 0 0 24 0.00 712.00 cm
/Im4 Do
Q
BT
/F1 1 Tf
16 0 0 16 50.00 718.00 Tm
1.00 1.00 1.00 rg
(Appendix A
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 50.00 694.00 Tm
0.54 0.65 0.62 rg
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 50.00 679.00 Tm
0.54 0.65 0.62 rg
) Tj
ET
BT
/F1 1 Tf
10 0 0 10 50.00 664.00 Tm
0.54 0.65 0.62 rg
(Targets:
) Tj
ET
50.00 45.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 45.00 l
f
S
BT
/F1 1 Tf
10 0 0 10 50.00 30.00 Tm
0.54 0.65 0.62 rg
(© 2012 N/A) Tj
ET
BT
/F1 1 Tf
10 0 0 10 492.00 30.00 Tm
0.54 0.65 0.62 rg
[(Page 3 )(of 3 )] TJ
ET
endstream
endobj
28 0 obj
718
endobj
29 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
/XObject << /Im4 30 0 R
>>
>>
endobj
30 0 obj
<<
/Subtype /Image
/BitsPerComponent 8
/Filter [/FlateDecode]
/Height 53
/Width 1275
/DecodeParms [<</Predictor 15 /Colors 3 /Columns 1275>>]
/ColorSpace /DeviceRGB
/Length 1896
>>
stream
endstream
endobj
50.00 45.00 m
0.20 w
0.54 0.65 0.62 rg
562.00 45.00 l
f
S
BT
/F1 1 Tf
10 0 0 10 50.00 30.00 Tm
0.54 0.65 0.62 rg
(© 2012 N/A) Tj
ET
BT
/F1 1 Tf
10 0 0 10 492.00 30.00 Tm
0.54 0.65 0.62 rg
[(Page 3 )(of 3 )] TJ
ET
endstream
endobj
31 0 obj
3239
endobj
32 0 obj
<<
/Font << /F1 7 0 R /F2 9 0 R >>
/ProcSet [ /PDF /Text /ImageC /ImageI]
/XObject << >>
>>
endobj
33 0 obj
<<
/Type /Outlines
/Count 2
/First 34 0 R
/Last 36 0 R
>>
endobj
34 0 obj
<<
/Parent 2 0 R
/Dest [21 0 R /XYZ 50 752 0.000]
/Title <feff0049006e00740072006f00640075006300740069006f006e>
/Next 36 0 R
/First 35 0 R
/Last 35 0 R
/Count -1
>>
endobj
35 0 obj
<<
/Parent 34 0 R
/Dest [21 0 R /XYZ 50 704 0.000]
/Title <feff0412043e0439043d0430002004320020042e0436043d043e04390020041e0441 0435044204380438>
>>
endobj
36 0 obj
<<
/Parent 2 0 R
/Dest [26 0 R /XYZ 50 752 0.000]
/Title <feff0041007000700065006e00640069007800200041>
/Prev 34 0 R
>>
endobj
2 0 obj
<<
/Type /Catalog
/Pages 3 0 R
/Outlines 33 0 R
/PageMode /UseOutlines
>>
endobj
3 0 obj
<<
/Type /Pages
/Count 4
/MediaBox [ 0 0 612 792 ]
/Kids [ 11 0 R 16 0 R 21 0 R 26 0 R ]
>>
endobj
xref
0 37
0000000000 65535 f
0000000009 00000 n
0000058067 00000 n
0000058156 00000 n
0000000000 00000 f
0000000000 00000 f
0000000115 00000 n
0000000212 00000 n
0000000658 00000 n
0000000911 00000 n
0000001196 00000 n
0000001457 00000 n
0000001540 00000 n
0000002432 00000 n
0000002452 00000 n
0000002578 00000 n
0000046250 00000 n
0000046333 00000 n
0000047606 00000 n
0000047627 00000 n
0000047753 00000 n
0000049864 00000 n
0000049947 00000 n
0000051743 00000 n
0000051764 00000 n
0000051890 00000 n
0000054001 00000 n
0000054084 00000 n
0000054856 00000 n
0000054876 00000 n
0000055002 00000 n
0000057377 00000 n
0000057398 00000 n
0000057512 00000 n
0000057586 00000 n
0000057767 00000 n
0000057931 00000 n
trailer
<<
/Size 36
/Root 2 0 R
/Info 1 0 R
>>
startxref
58263
%%EOF -
Safari displays PDF as non-readable text
Recently when I open a PDF file in Safari it displays as non-readable text. How can this be fixed?
After some further research I resolved the problem. The Adobe Acrobat Reader installation was indeed the culprit. I had to unlock and allow myself to access as a root user on the Mac. Then I searched the \Library file for the "Internet Plug-ins" folder. I created a new "Internet Plug-ins Disabled" folder and moved the following 2 Adobe plug-in files 1. AdobePDFViewer.plugin; 2. AdobePDFViewerNPAPI.plugin to the Disabled file I just created; or you can move those two files into the trash folder. Either way should work. I did actually have to do both, becasue the 2 files copied rather than moved. Most important after performing this task REMEMBER to LOCK the root user before resuming normal work on your computer. Root user access has a lot of power and can yield a lot of havock if you inadvertently forget and have left in unlocked.
-
I like to edit my web pages easily,
- click to see html, edit it, (file name already there), save it
- hit restore on browser - see what I did -
Just changed from IE
which gave me NotePad, which is just fine for me
Just changed to FireFox
and it displays text in a non-editor,
can't edit and save easily
What to do??
Even worst - after installing FireFox
IE no longer clicks to NotePad
but that fancy non-editor :-(((ViewSourceWith: https://addons.mozilla.org/firefox/addon/394
See also:
http://kb.mozillazine.org/view_source.editor.external
http://kb.mozillazine.org/view_source.editor.path -
Hi friends,
I am using a variable to display a text in english as a simple list, it is coming fine. Also, when the same variable is used to display any non-english text like korean or japanees, it is coming fine in the output list. But, when I do the print preview using 'LP01' or other test printer, the korean or japanees text is printed to the left (the text is shifted to the left) as result the whole column is shifted to the left.
Can anyone tell what could be the problem & it's possible solution.
Regards,
PraveenHi,
Plesae use the transactions
SNL3 & SE63
Regards,
IFF -
Non-displayed JTextArea and getPreferredSize()
I'm using a bunch of line wrapped JTextAreas as TableCellRenderers for a JTable that's displayed in a JScrollPane. Each column has a PropertyChangeListener attached that alters the row heights when the user resizes the columns so that all the text in each cell is always displayed. The problem is that if, during resizing, the tallest column is pushed out of the viewport, the row is shrunk to fit the tallest displayed column.
For example, say I've got one row with three columns in my table. The first cell has one row of text, the second has two rows, and the third has three. Ideally, the row should always be tall enough to display three columns of text. But if I make the first column wide enough that the third column isn't displayed (but the first two still are), the rows collapse down to two rows of text. Hopefully that makes sense.
Anyway, when the user resizes the table, the listener checks the preferred heights of each cell to determine the maximum, then resizes the row accordingly. My theory is that when a cell isn't displayed, its preferred height is some default value (looks to be 17). Is there any way I can prevent this from happening? Or is there some other problem?
Here is the code for my resizing listener:
private class ResizeListener implements PropertyChangeListener {
JTable table;
public ResizeListener(JTable table) {
this.table = table;
public void propertyChange(PropertyChangeEvent evt) {
if ((!evt.getPropertyName().equals("width"))
|| (!(evt.getSource() instanceof TableColumn))) {
return;
for (int row = 0; row < table.getRowCount(); row++) {
int maxHeight = -1;
for (int col = 0; col < table.getColumnCount(); col++) {
TableCellRenderer thisRenderer = table.getCellRenderer(row,
col);
if (thisRenderer instanceof ResizingStringCellRenderer) {
if (((ResizingStringCellRenderer) thisRenderer)
.getPreferredSize().height > maxHeight)
maxHeight = ((ResizingStringCellRenderer) thisRenderer)
.getPreferredSize().height;
table.setRowHeight(row, maxHeight);
}To determine preferred size of non-displayed JEditorPane (I think text area will work the same way) I set size (to show desired width) and asked preferred size then.
Like this:
JTextArea dummyTa;
dummyTa.setText(veryLongString);
dummyTa.setSize(desiredWidth,Short.MAX_VALUE);
Dimension size=dummyTa.getPreferredSize();
It returns actual height.
regards,
Stas -
Displaying text more than 256 in ALV report
Hi experts,
I have problem while displaying text field in ALV report which has more than 256 characters.
I'm using CL_SALV_TABLE for displaying alv.while concatenating my internal table holding all the text.but at the time of displying the report it's only displaying 256 characters.
Can anyone guide me how to display more than 256 characters in ALV output using CL_SALV_TABLE.Hi,
Please find the below code.
TRY.
gr_column ?= gr_columns->get_column( columnname = 'MATNR' ).
gr_column->set_output_length( '300' ).
CATCH cx_salv_not_found.
Message : Column definition problem
MESSAGE e075().
ENDTRY.
Edited by: Archana.T on Jun 16, 2010 1:24 PM -
Excise invoice utilization pencil icon is showing non display mode
Hi Expert
when i create export invoice and when i create excise invoice with an go for utilization that pencil icon is showing in non display mode because if i want to change this bond,no bond, deemed export,Lou then it is not happening. I maintain configuration for that in default excise group and series group i maintained Export Under bond to specific sales area and excise group,series group and shipping point also.
but i cannot change to bond.no bond.Lou.and deemed export as per the requirement. if any solution please answer me asapWe cannot change this field from display to change. Once the excise invoice is captured the excise invoice number is freezed.
It is SAP Standard & to break this you would need the access key from SAP.
If the change in excise invoice number is by user mistake, please cancel the excise invocie and capture the new one.
Thanks & regards
Hameed Parvez -
How to display text on last but one page in SAPSCRIPTS
how to display text on last but one page in SAPSCRIPTS
u have create one Foooter window , this has to be called in only One Page.So hardcode /assign this window to only one PAGE number.
regards
Prabhu -
Display Text in a query as a symbol
Hi everyone,
I have a query (BI 7) that displays runtimes of BI applications (generated from technical content -0TCT_MC01 multiprovider).
In the rows there is 0TCTBIOTYPE (type of BI application) which usually displays texts as below:
query
Web Template
I would like to show in the report the symbol (image) instead of the key/text of this infoobject.
Any idea?Hi Reuvel,
Nice requirement.
Not sure 100% but from my memory i guess we can display the image for characteristic, instead of text or key by using Analysis web item Using parameter modification in WAD .
Kindly check for Modifcation parameter Display image Module (com.sap.ip.bi.*.Documentcontent) in WAD, it might solve your purpose.
Regards,
Ashish -
How to display TEXT more than 500 char in a report as multiple lines.
Hi Friends,
i have a requirement like i should display Texts of length more than 500 Characters in a report( ALV LIST) as multiple lines
I am fetching the data Using FM READ_TEXT
the output im currently geeting with 150 Char in lenth as a single line
How we can split the text into multiple lines in a report
first i would like to know is it possible? if possible please give your valuable suggitions if not is there any alternative way to do this task.
Thanks & regards
kumar.Hi,
This is possible but the Solution might not look Standard/Appropriate to you.
In ALV, you can have Multiple Line Output...There is a Field in the Field Catalogue..called as Row_position...this is by default 0...which means Single row/Line ALV output....You can have this Value in the Range of 0 to 3.......A ALV field with row_position 1, will be displayed in the second line for every record...i.e. you will have multiple line for a single record of ALV.
In your case......you can use this but you need to split your field in two fields.....but you may end up spliting a single word....but for that also you can design the logic of splitting the Fiel value at SPACE only......
This may work.......and Sorry if not work...... -
Need to display TEXT in web selection screen
HI All,
We are working on CRM-BW modeling. We have one field called "product" which will have key and medium text. We need to display both key + text in web reporting selection screen. When we ran first time text was not showing in web report. Then we found and change the configuration in search help in SE11 for that field. Then we can see the text+key combination in RSRT but still we can't see the text in web report selection screen...
Now what we have to do to display text in selection screen on web...
Please give your inputs ASAP.....we are in UAT phase....
Thanks in advance
ArunHi Arun,
For you case: Display key & text in selection screen.
In BW,
You can go to query designer, then you'll go to the info-object belong to the variable (selection-screen : product). Right-click, find for the properties, Then you'll see the option for <b>display as</b>.
Choose it for Key and text.
Then save it.
Go to the report, in the selection screen, when you're choosing for the help, you'll see the value displayed by key & text.
Hopefully it can help you a lot.
Regards,
Niel
Thanks a lot for any points you choose to assign. -
Printing to PDF from MS Office: lost hyperlinks if display text changed
Greetings.
I'm using Acrobat Pro vers. 8.1.7 and MS Office 2007.
I'm not sure if this is an Acrobat or an MS Office issue or somewhere in between.
I need to print an Excel document to a PDF with hyperlinks.
Creating hyperlinks in Excel is no problem.
If I print to a PDF (using Adobe PDF Converter printer driver), the hyperlink appears and works in the PDF. No problem.
But I need to change the display text of the link - instead of a URL I need to display a "user friendly" name.
Problem.
If I edit the link in Excel and change the display text, the link works in Excel, no problem.
But when I print to a PDF the link is lost. I get pretty blue underlined text, but the link information is not embedded in the PDF.
Problem!
I've experimented and done some research, but nothing so far.
Any ideas?
Help!
Thank you,
GregThe links you are seeing in the PDF are likely not hard links, but what Acrobat thinks are links. That is what happens when you print to the Adobe PDF printer. If you want to retain the links in the original form, you need to use PDF Maker (or may be listed as create PDF) in Excel. The end result should be a PDF with the links appearing in the same way as in Excel.
Maybe you are looking for
-
I want to update a record in the DB from my menu
Hi everybody, I have an menu applet and I want to fill a DB record when i choose an item from my menu. This is my code and I want a connection with the database to update the record word_path: please help me !! thanks in advance import java.awt.*; im
-
New Problems in Tiger Classic (or iMac G5)
Hi folks, I have the last version of Managing Your Money ever released and we have always been able to use it in Classic without any trouble at all. However, since we got Mac OS 10.4 (or maybe is was since we got the iMac G5; since they were nearly s
-
I tried to update the new ipod sofware and my ipod has a itunes and usb cable picture on its face, but after hours it will not do anything. I tried to restore and it won't even do that. What do I do?
-
SAP tables used to fetch role names into 'Lookup.SAP.UM.Roles'
SAP User Management Lookup Recon schedule task is used to populate all the Lookup's defined in 'Lookup.SAP.CUA.LookupMappings'. In case of the lookup 'Lookup.SAP.UM.Roles', the description of the SAP Role is populated in Decode value. In our environm
-
Not able to install PFX file on my Q10.
I need to run a PFX file on my Q10 in order to setup my corporate activesync. I was previous able to do so on my BB Bold (using Astrasync) as my Activesync client. However, i cannot seem to open .PFX file on the Q10. Error message is "Unable to open