Limiting the Chars in Text Area
Hi,
I am using a TextArea where its property "maxChars" is being set to 250.
It is working fine if we are entering the 250 chars.
But if we have typed more than 250 chars in an editor and than copy-paste those chars, the text box is accepting those chars even if they are more than 250 also.
How to restrict this ? Is there any other property like "maximum" in text area to control this ?
Try applying a check on changing event of TextArea. Check for your maxChars and accrodingly show your message.
Similar Messages
-
I have just intalled PSElements 12 on a new PC with windows 8.1. It installed ok but when I open it up it displays different than on my windows 7 PC. The buttons and text are tiny and almosy impossible to see even when I drag it to full screen. How do I adjust it to look normal?
Hi Paul ,
It could be a compatibility issue as well as Acrobat 8 is an older version.
Do you get any error message while registering for the product?
Try repairing it and once and also check for updates as well.
Is it happening with all the word files or any specific one'?
Regards
Sukrit Dhingra
Acrobat 8 and Windows 7 Don't Work -
When replying to a discussion, the images and text are being cutted and moved over
Hi, using a community site in SP2013, when you post a discussion (ask and discuss) you have all the text and images displayed correctly. But, when you reply to the post and then, your name is added to the post, the image and text are somehow cutted. I played
with the options like lock ratio and everything, but it doesn't seem to work, I also played with the webpart options, but, it is not working, the idea is to feed the text and images into the whole respond to the post. Have you seen this issue or behavior before?.
See below,
When you reply to the post,
Can you see how the image is moved over.Hi Javi,
I checked the discussions list in my environment, and the image showed as below when replying to a discussion:
It seems that the page has been customized.
I recommend to check the things below:
Check if the page with issue has been customized.
Add the site to trusted sites and add to compatibility settings in Internet Explorer.
Use another browser to access the page to see if the issue still occurs.
Best regards,
Victoria
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
How can i limit the amount of char in a text area item. Can i do it with validation if so how. Trying to avoid DB error messages and trying to avoid having to catch them.
The javascript maxLength may work for your need.
Under element attributes for item you want to limit the text size enter the following in "HTML Form Element Attributes".
onFocus="javascript:this.maxLength=90;"
The example above will limit the text a user can type to 90 char for the item.
Read more about maxLength here.
http://www.w3schools.com/htmldom/prop_text_maxlength.asp
http://www.w3schools.com/js/tryit.asp?filename=try_dom_text_size
Todd -
How to make html file on server side from the data entered in text area
Hi!
I want to know how to make .html file on server side. Like if i enter the data in text area ( or like we normaly see when we write mail that editor) and we can use html tages in it and when user submit form all the data in that field will be saved on server side as an html formate. Is it possible to do so??? or any ruff idea how to design it???Erm ...
Whats the problem with that?!
Ok, here the code ...
String myparameter = request.getParameter("paramname");
String htmltemplate = "<html>\n"
+"<head><title>demo</title></head>\n";
+"<body>@parametertag@</body>\n";
+"<html>";
String htmlpage = htmltemplate.replaceAll("@parametertag@",myparameter);
File yourHTMLfile = new File("wheredoyouwannagotoday.html");
FileOutputStream fos = new FileOutputStream(yourHTMLfile);
fos.write(htmlpage.getBytes());
fos.close();You're done.
Happy Coding! :-) © -
How to increase the length of the char which has master data!
Hi,
I am uploading hierarchy from flat file!
i am using basic char texts as hierarchy texts and my basic char has length 15 )
Because the first 15 characters of the hierarchy short text are same, and it s total length being 15, while uploading it is giving me error saying same record values cannot be used more than once!
( i am using nodename as hierarchy texts and my basic char has length 15 )
when i try to increase the length of the char by deleting entries in it, the delete option is grayed out!
Any suggestions?
Thanks,
RaviHi,
Check it out that object where-used list, whether that object is used in any other cubes or ODS or any target......
If it is used then delete all the data from all the targets and also object data itself.
Then it is possible to increase the length.
One more thing is if you want to change in Production system directly ,may be you have the display authorization only.
You have to change it in to development system and trasport it to production system.
Regards,
Venkat -
What are the main events that are used in an alvreport?
hi
experts can u help me for thisHi
REUSE_ALV_EVENTS_GET
Description
This table tells ALV which events are processed by the caller by CALLBACK.
The table of possible events per list type can be initialized using the module REUSE_ALV_EVENTS_GET.
You can display the names of the constants in the type pools SLIS which represent the individual events using the individual test function in the function module
REUSE_ALV_EVENT_NAMES_GET. Only events with a form routine name are processed.
The table structure contains the fields:
IT_EVENTS-NAME
Name of the Callback event.
Possible Callback events:
Action
USER_COMMAND USING R_UCOMM LIKE SY-UCOMM RS_SELFIELD TYPE SLIS_SELFIELD
Process actions on the list
As this is a frequently-used Callback event, the form routine can also be passed directly in the interface in the IMPORTING parameter I_CALLBACK_USER_COMMAND.
PF_STATUS_SET USING RT_EXTAB TYPE SLIS_T_EXTAB
If a user list status is to be set, it must be done in the form routine assigned to this event. The ALV function codes, which must not be active, are in the Parameter RT_EXTAB. This table must be passed with the SET PF-STATUS command (with inactive user function codes as well, if necessary).
The STANDARD status of the function group SALV should be used as a template for a user-specific status.
As this is a frequently-used Callback event, its form routine can also be passed directly in the interface in the IMPORTING parameter I_CALLBACK_PF_STATUS_SET.
ITEM_DATA_EXPAND USING RS_SELFIELD TYPE SLIS_SELFIELD RFLG_ALL TYPE C
Only relevant for hierarchical-sequential lists using the layout parameter IS_LAYOUT-EXPAND_FIELDNAME of the structure IS_LAYOUT.
Exit for passing item entries (ITEM table) for a header record which was expanded interactively by the user.
RS_SELFIELD-TABINDEX contains the header table index for which the item entries are to be put in the global item output table (T_OUTTAB_SLAVE). The Callback is only called if ALV has no items for a header which is to be expanded.
RFLG_ALL is passed with 'X' if the user shows all items. The application must ensure that entries are not repeated in the item table. RS_SELFIELD is initial in this case.
CALLER_EXIT USING RS_DATA Is called at the beginning of the function module to make special settings. It is not usually used.
List processing events
IMPORTANT: The application Callback routine must not manipulate the internal output table and/or its header record. This restriction applies to all Callbacks which are called in the list output and run under the 'List processing events'.
TOP_OF_LIST no USING parameter. Information output at the start of the list
END_OF_LIST no USING parameter. Information output at the end of the list
TOP_OF_PAGE no USING parameter
Equivalent to the list processing TOP-OF-PAGE event
END_OF_PAGE no USING parameter. Not available for hierarchical-sequential lists.
Information output at the end of a page. This is only called for printing.
TOP_OF_COVERPAGE no USING parameter
The selection information and list status are output together (if they exist) on a separate page by default. See also the documentation of the parameters:
IS_PRINT-NO_COVERPAGE
IS_PRINT-NO_PRINT_SELINFOS
IS_PRINT-NO_PRINT_LISTINFOS
IS_LAYOUT-GET_SELINFOS
The user can format the header area of the 'cover page' himself or herself by specifying a Callback routine for this event.
END_OF_COVERPAGE no USING parameter
Analogously to TOP_OF_COVERPAGE the user can add other information to the information output by ALV (selection information, list status) at this event.
FOREIGN_TOP_OF_PAGE no USING parameter
The Top-of-page event is always processed in ALV and is only passed to the caller via the Callback mechanism. This is still the case if the caller, e.g. by a user action, processes a branch list which was not formatted by ALV (e.g. a popup with additional information about the list record selected and displayed by ALV).
In this case, top-of-page cannot be formatted by ALV analogously to the basic list, it must be handled completely by the caller. The event top-of-page still occurs in ALV. When ALV notices a top-of-page which was not caused by an ALV output, the form routine in FOREIGN_TOP_OF_PAGE is called.
FOREIGN_END_OF_PAGE no USING parameter
The event end-of-page is always processed in ALV and only passed to the caller via callback. This is still the case, e.g. when the caller processes a details list which was not formatted by ALV (e.g. a popup with further information about selected list records which were displayed by ALV).
In this case, end-of-page cannot be formatted by ALV analogously to the basic list, it must be handled completely by the caller. The event end-of-page still occurs in ALV. When ALV notices an end-of-page that was not caused by an ALV output, the form routine in FOREIGN_END_OF_PAGE is called.
BEFORE_LINE_OUTPUT USING RS_LINEINFO TYPE SLIS_LINEINFO
Output information before each output line. Should only be used in justified cases because it costs a lot of performance.
AFTER_LINE_OUTPUT USING RS_LINEINFO TYPE SLIS_LINEINFO
Output information after each output line. Should only be used in justified cases because it costs a lot of performance.
Internal use only
LIST_MODIFY USING R_TABNAME TYPE SLIS_TABNAME
R_INDEX LIKE SY-TABIX
R_INDEX_ITEM LIKE SY-TABIX
R_INDEX_SUM LIKE SY-TABIX
IT_EVENTS-FORM
Name of the form routine which should be called in the calling program at the event.
Field_catalog:
Field catalog with field descriptions
2.7.1. Description
Field catalog containing descriptions of the list output fields (usually a subset of the internal output table fields). A field catalog is required for every ALV list output.
The field catalog for the output table is built-up in the caller's coding. The build-up can be completely or partially automated by calling the REUSE_ALV_FIELDCATALOG_MERGE module
See also the documentation of the function module REUSE_ALV_FIELDCATALOG_MERGE.
The minimal field catalog is documented under 'default'. The caller can use the other optional parameters to assign output attributes to a field which differ from the default.
A field catalog need not be built-up and passed explicitly only under the following conditions:
The internal table to be output has the same structure as a Data Dictionary structure which is referred to in the internal table declaration using LIKE or INCLUDE STRUCTURE.
all fields in this structure are to be output
the structure name is passed to ALV in the parameter I_STRUCTURE_NAME.
See also the documentation of the IMPORTING paramter I_STRUCTURE_NAME.
Positioning
row_pos (row position)
value set: 0, 1 - 3
Only relevant if the list output is to be multi-line (two or three lines) by default.
A multi-line list can also be defined by the user interactively if the default list is one-line.
The parameter specifies the relative output line of the column in a multi-line list.
col_pos (column position)
value set: 0, 1 - 60
only relevant when the default relative column positions differ from the field catalog field sequence. The parameter specifies the relative column position of the field in the list output. The column order can be changed interactively by the user. If this parameter is initial for all field catalog entries, columns appear in the field catalog field sequence.
Identification
fieldname (field name)
value set: internal output table field name (required parameter)
Name of the internal output table field which is described by this field catalog entry
tabname (internal output table)
value set: SPACE, internal output table name
This parameter is used in 'manual' field catalog build-up only for hierarchical-sequential lists.
Name of the internal output table which contains the field FIELDCAT-FIELDNAME.
Data Dictionary reference
ref_fieldname (reference field name)
value set: SPACE, Data Dictionary field name
Name of the Data Dictionary field referred to.
This parameter is only used when the internal output table field described by the current field catalog entry has a reference to the Data Dictionary (not a program field), and the field name in the internal output table is different from the name of the field in the Data Dictionary. If the field names are identical, naming the Data Dictionary structure or table in the FIELDCAT-REF_TABNAME parameter is sufficient.
ref_tabname (reference table/structure field name)
value set: SPACE, name of a Data Dictionary structure or table
Structure or table name of the referred Data Dictionary field.
This parameter is only used when the internal output table field described by the current field catalog entry has a Data Dictionary reference (not a program field).
Reference to fields with currency/measurement unit
Each internal output table sum or quantity field whose decimal places are to be formatted appropriately for the unit in the list must follow the convention:
the field is of data type QUAN or CURR (internal type P) (the field must really have this physical data type. Overwriting the physical data type with the parameter FIELDCAT-DATATYPE has no effect)
There is a field in the internal output table which contains the associated unit.
There is also an entry in the field catalog for the unit field.
(If the unit is not to appear as a column in the list, and cannot be interactively displayed as a column, e.g. because it is always unambiguous and is therefore explicitly output by the caller in the list header, the field catalog units field entry can take the parameter FIELDCAT-TECH = 'X'.
The association of a value field to a unit affects the output as follows:
appropriate decimal places display for the unit
an initialized field with a link to a non-initial unit is output as '0' for the unit (if FIELDCAT-NO_ZERO is initial). When this field is summed, this unit affects whether the units are homogeneous.
an initialized field with a link to an initial unit is output as SPACE. When this field is summed, the unit SPACE does not affect the homogeneity of the units.
When non-initial fields with an initial unit are summed, the unit SPACE is considered to be a unit.
Link to currency unit
cfieldname (currency unit field name)
value set: SPACE, output table field name
Only relevant for amount columns with associated unit.
Name of the internal output table field containing the currency unit associated with the amount field FIELDCAT-FIELDNAME. The field in FIELDCAT-CFIELDNAME must have its own field catalog entry.
ctabname (internal currency unit field output table)
value set: SPACE, output table field name
only relevant for hierarchical-sequential lists
Name of the internal output table containing the FIELDCAT-CFIELDNAME field.
Link to measurement unit
qfieldname (measurement unit field name)
value set: SPACE, output table field name
only relevant for quantity columns with unit link.
Name of the internal output table field containing the measurement unit associated with the quantity field FIELDCAT-FIELDNAME.
The field in FIELDCAT-QFIELDNAME must have its own field catalog entry.
qtabname (internal measurement unit field output table)
value set: SPACE, output table field name
only relevant for hierarchical-sequential lists
Name of the internal output table containing the FIELDCAT-QFIELDNAME field.
Column output options
outputlen (column width)
value set: 0 (initial), n
For fields with a Data Dictionary link this parameter can be left initial.
For fields without a Data Dictionary link (program field) the parameter must be given the value of the desired field list output length (column width).
initial = column width is the output length of the referred Data Dictionary field (domain).
n = column width is n characters
key (key column)
value set: SPACE, 'X' 'X' = kex field (key field output in color)
Key fields can not be interactively hidden. Parameter FIELDCAT-NO_OUT must be left initial.
For exceptions see the documentation of the FIELDCAT-KEY_SEL parameter.
key_sel (hideable key column)
value set: SPACE, 'X'
only relevant when FIELDCAT-KEY = 'X'
Key field which can be hidden interactively.
The key column sequence cannot be changed interactively by the user.
The output is controlled by the FIELDCAT-NO_OUT parameter analogously to non-key fields.
no_out (field in field list)
value set: SPACE, 'X' 'X' = field is not displayed in the current list.
The user can interactively choose the field for output from the field list.
The user can display the contents of these fields at line level using the 'Detail' function.
See also the 'Detail screen' documentation of the parameter IS_LAYOUT.
tech (technical field)
value set: SPACE, 'X' 'X' = technical field
Field cannot be output in the list and cannot be displayed interactively.
Field can only be used in the field catalog (not in IT_SORT, ...).
emphasize (highlight columns in color)
value set: SPACE, 'X' or 'Cxyz' (x:'1'-'9'; y,z: '0'=off '1'=on)
'X' = column is colored with the default column highlight color.
'Cxyz' = column is colored with a coded color:
C: Color (coding must begin with C)
x: color number
y: bold
z: inverse
hotspot (column as hotspot)
value set: SPACE, 'X'
'X' = column cells are output as hotspots
fix_column (fix column)
value set: SPACE, 'X'
Not relevant for block lists (output of several lists consecutively)
'X' = column fixed (does not scroll horizontally)
All columns to be fixed must have this flag, starting from the left. If a column without this flag is output, only the columns to the left of this column are fixed. The user can change the column fixing interactively. See also the documentation of the Layout parameter
IS_LAYOUT-NO_KEYFIX of the IMPORTING paramter IS_LAYOUT.
do_sum (sum over column)
value set: SPACE, 'X' 'X' = a sum is to be calculated over this internal output table field.
This function can also be called by the user interactively.
no_sum (sums forbidden)
value set: SPACE, 'X' 'X' = no sum can be calculated over this field, although the data type of the field would allow summing.
input (column ready for input)
Function not available
Format column contents
icon
value set: SPACE, 'X' 'X' = column contents to be output as an icon.
The caller must consider the printability of icons.
symbol
value set: SPACE, 'X' 'X' = column contents are to be output as a symbol.
The internal output table column must be a valid symbol character.
The caller must consider the printability of symbols.
Symbols can usually be printed, but may not always be output correctly, depending on the printer configuration.
just (justification)
value set: SPACE, 'R', 'L', 'C'
Only relevant for fields of data type CHAR or NUMC
' ' = default justification for this data type
'R' = right-justified output
'L' = left-justified output
'C' = centered output
The justification of the column header always follows the justification of the columns. Independent justification of the column neader is not possible.
lzero (leading zeros)
value set: SPACE, 'X'
Only relevant for fields of data type NUMC
ALV outputs NUMC fields right-justified without leading zeros by default.
'X' = output with leading zeros
Note: If a NUMC field is output left-justified or centered by FIELDCAT-JUST, leading zeros are output. If the output of leading zeros is suppressed by a Data Dictionary reference ALPHA conversion exit, the output is always left-justified.
no_sign (no +/- sign) Only relevant for value fields
value set: SPACE, 'X' 'X' = value output without +/ sign
no_zero (suppress zeros) Only relevant for value fields
value set: SPACE, 'X' 'X' = suppress zeros
edit_mask (field formatting)
value set: SPACE, template
template = see documentation of WRITE formatting option USING EDIT MASK template
The output conversion conv can be made by template = '== conv'.
Texts
The following text parameters should be specified for program fields without a Data Dictionary reference. The texts are taken from the Data Dictionary for fields with a Data Dictionary reference. If this is not desired, the text parameters can also be specified. The Data Dictionary texts are then ignored. If the user changes the column width interactively, the column header text with the appropriate length is always used. The interactive function 'Optimize column width' takes account of both the field contents and the column headers: if all field contents are shorter than the shortest column header, the column width depends on the column header.
The 'long field label' is also used in display variant definition, sort, etc. popups.
seltext_l (long field label)
seltext_m (medium field label)
seltext_s (short field label)
reptext_ddic (header)
analogous to the Data element maintenance 'Header'
The specified text is not necessarily output in the list, an optimum among all texts is sought.
ddictxt (specify text)
value set: SPACE, 'L', 'M', 'S'
You can specify with values 'L', 'M', and 'S', the keyword that should always be used as column header. If the column width changes, no attempt is made in this case to find an appropriate header for the new output width.
Parameters for program fields without Data Dictionary reference
see also 'Text' parameters
datatype (data type)
value set: SPACE, Data Dictionary data type (CHAR, NUMC,...)
Only relevant for fields without Data Dictionary reference
Program field data type
ddic_outputlen (external output length)
value set: 0 (initial), n
Only relevant for fields without Data Dictionary reference whose output is nevertheless to be modified by a conversion exit.
Prerequisites:
FIELDCAT-EDIT_MASK = '==conv'
see also the documentation of the parameter FIELDCAT-EDIT_MASK
FIELDCAT-INTLEN = n
see also the documentation of the parameter FIELDCAT-INTLEN
n = external format field output length
The column width FIELDCAT-OUTPUTLEN need not be the same as the external format output length (FIELDCAT-DDIC_OUTPUTLEN).
intlen (internal output length)
value set: 0 (initial), n
Only relevant for fields without Data Dictionary reference whose output is nevertheless to be modified by a conversion exit.
Prerequisites:
FIELDCAT-EDIT_MASK = '==conv'
see also the documentation of the parameter FIELDCAT-EDIT_MASK
FIELDCAT-DDIC_OUTPUTLEN = n
see also the documentation of the parameter FIELDCAT-DDIC_OUTPUTLEN
n = internal format field output length
rollname (data element)
value set: SPACE, Data Dictionary data element name
F1 help can be provided for a program field without a Data Dictionary reference, or F1 help which differs from the Data Dictionary help can be provided for a field with a Data Dictionary reference, using this parameter.
When F1 help is called for this field, the documentation of the specified data element is displayed.
If the FIELDCAT-ROLLNAME is initial for fields with a Data Dictionary reference, the documentation of the data element of the referred Data Dictionary field is output.
Others
sp_group (field group key)
value set: SPACE, CHAR(1)
Field group key.
Keys are assigned to group names in the IT_SPECIAL_GROUPS parameter (see also the documentation of the parameter IT_SPECIAL_GROUPS).
When such an assignment is made in the field catalog and in IT_SPECIAL_GROUPS, the fields are grouped correspondingly in the display variant popup.
reprep (Report/Report interface selection criterion)
value set: SPACE, 'X'
Prerequisites:
The system contains the Report/Report interface (function group RSTI, table TRSTI)
Parameter LAYOUT-REPREP = 'X'
(see also the documentation of the parameter LAYOUT-REPREP of the IMPORTING parameter IS_LAYOUT )
'X' = When the Report/Report interface is called, the value of this field is passed in the selected interface start record as a selection criterion.
2.7.2. Default
The following entries are usually sufficient for internal table fields with a reference to a field defined in the Data Dictionary :
fieldname
ref_tabname
Notes:
ALV gets the remaining information from the Data Dictionary.
If no relative column position (COL_POS) is specified, the fields are output in the list in the order in which they were added to the field catalog.
REF_FIELDNAME need only be specifid when the name of the internal table field differs from the name of the referred Data Dictionary field.
Information which is explicitly entered in the field catalog is not overwritten by information from the Data Dictionary.
Priority rule:
Entries in the field catalog have priority over differing entries in the Data Dictionary.
The following entries are usually sufficient for internal table fields without a reference to the Data Dictionary (program fields):
fieldname
outputlen
datatype
seltext_s
seltext_m
seltext_l
Notes:
F1 help can be provided for program fields by assigning a data element to the parameter ROLLNAME.
If the parameters SELTEXT_S, SELTEXT_M, SELTEXT_L, and REPTEXT_DDIC contain appropriate field labels, the program field column headers are also adjusted appropriately when the column width changes.
<b>Reward points for useful Answers</b>
Regards
Anji -
How to Fetch Cancelled Jobs info along with the Short Dump Text
Hi Gurus,
I need to develop a report to fetch the cancelled jobs information for the given period. I also need to display the "Error Analysis" part of the Short Dump if it exists.
I am able to fetch the Failed Jobs information and the Job log details using the FM "BP_JOBLOG_READ". But I need to show the "Error Analysis Text" on the report , if there is any Short Dump Exists for the Dump.
Please give me your ideas to fetch the Error Analysis part of the short dump for a given Batch Job Name.
Thanks in Advance.
Best Regards,
SumalathaThe dump information is in table SNAP. You could identify which dump you want by the date & time of the failed job - let's hope you don't have more than one dump with the same time. If it is ambiguous you could also compare the program name of the failed step with the program name in the SNAP data.
The error analysis texts are in table SNAPT keyed according to which error occurred (which is data element code FC right at the start of the first record in the SNAP data). You will have to expand out the includes, and substitute the variable codes using values from the SNAP data. There is standard code to do this that you could copy - see program SAPMS380.
To find out the details of the SAP process you could run transaction ST22 via the debugger and use the same mechanism.
best wishes
Ed
PS Note these details apply to recent systems I think there may be differences if you go back to before ?2004, but I don't have such a system so can't check. You didn't say what release you have. -
Display Text Area as Read Only
Hello,
I have about 5 forms, some of the forms have text areas with counters. All of my text area fields are pretty much set up the same way:
width = 75, height= 6, max width = 500.
When a user logs in with read only priv. the text areas turn change to read only. The problem is when I enter some data into a text area it will display across the screen. I need the text area to do word wrap. I have tried the following in the Read Only Element Table Cell Attribute.
display:block; width: 400px; word-wrap: break-word; overflow:hiddenI have also tried to add some CSS to my HTML Header, which adds borders to all of the fields, which is not wanted and it doesn't word wrap.
<style type="text/css">
span.display_only {border:2px inset #D4D0C8; padding:1px 0px;}
</style>Any help, is greatly appreciated.
Mary
Edited by: MaryM on Aug 25, 2010 11:58 AMThey are page items all of them have character counters. The problem, comes when a user logs in with Read Only privelages, then the text area's turn to Read only. For example, if I enter something in the text box like (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxeeeeeeeeeeeeeeeeeeeeeee) it will display across the screen when a Read Only user logs in and looks at it. I need it to word wrap, when it is in Read Only mode. It will also display the same way if I change the field type to Display as Text ex: (xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee), it will not word wrap.
All of my text area boxes are varchar2 (300) or more in length. I need to be able to word word wrap. I was able to do with classic reports, using standard report columns and in the css I added the following:
display:block; width:400px;word-wrap:break-word;overflow:hidden.Hope I explained this better.
Mary
Edited by: MaryM on Aug 25, 2010 12:25 PM -
Open GL pipeline : Text are not displayed in JComponent
Hello
I have a problem: Using the opengl pipeline (-Dsun.java2d.opengl=True) on a very simple program
which display a frame by screen device (two screens) with a JButton, i have the following effect:
Using JRE 1.6_03 the button's text are displayed
Using JRE 1.6_04 the text on one screen does not appear.
In the two case, I have the message OpenGL pipeline enabled on screen 0:0 and 0:1.
My configuration is:
NVIDIA Quatro NVS 285
xorg.conf configured in TwinView
I have tried the several options (-Dsun.java2d.opengl.fbobject=false, etc.) but still doesn't work.
Does someone can help Me ?
What can this be explained.
When I move the frame on which the text appear to the other one, the text dissapear !!!
I only hace the following trace (J2D_TRACE_LEVEL=4) but I have it with the jre 1.3 and all work fine:
"Could not fine an appropriate fbconfig"This sounds not entirely unrelated to this
[http://forums.sun.com/thread.jspa?forumID=20&threadID=5365222|http://forums.sun.com/thread.jspa?forumID=20&threadID=5365222]
The poster in that thread couldn't find a solution, just a workaround. If you do a search, there are several open bugs related to OpenGL and text. For example, this bug seems to describe exactly the same behavior as you just described, except with a different version of java. In the comments section of that bug is this
I was able to workaround this problem by using the following flag: -Dawt.useSystemAAFontSettings=lcd -
Hi all,
I have a requirement where i need to create some 70 Z-fields inside Incident line item where user just enters data and will save the form.
i have achived this by adding the fields into ORDERADM_I and is working fine.. i am able to bring the fields in the Incident line item.
Now i have a requirement where i need to create 2 Free Text areas (like notes where user can enter unlimited text) .
how to achive this.
as of now i have created 2 more Z-fields in ORDERADM_I with 255 characters length and increased the line numbers into 4 in the GET_P method. but by doing this, user can enter only 255 characters and this is not a free text area.
can any one give me steps to create a new free text area.
Regards,
AmshuHi Steve,
i have already tried this. it works fine
look at my code below
method GET_P_ZZAFLD0000AL.
CASE iv_property.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_textarea.
WHEN if_bsp_wd_model_setter_getter=>fp_textarea_rows.
rv_value = 4.
ENDCASE.
endmethod.
this code will make the field as text area with size 4 lines . But the field length will be same as what we declare in the domine.. (max 256) . i cant enter unlimited text in this field though it looks like a text area.
i guess v need to create a standard text somewhere in configuration and assign the same here...
if anyone hv worked on this please revert back
Regards
Amshu -
Pie Chart -- legend texts are cut (with "...")
Hello Experts,
when I*m using pie charts with displaying the legend, longer texts are cut (e.g.: "220/35V 60W yellow...")
What can I do to show the complete text?
Thanx a lot
KR,
RaimundGood Day Nics,
the cuts are due to the size of the pie chart. you can resize your pie chart for the legends to show properly.
Kindly tell me if im missing something.
Regards,
John Vincent -
How can I use javascript in a Text Area with HTML editor??
My question is... how can I use javascript in Text Area with HTML editor??
I can use javascript functions that change the content of Text Areas but i can´t if i try in text area with html editor....
I need to limit number of characters in a text area with html editor and i can´t.
could anybody help me please?I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
<script language="JavaScript" type="text/javascript">
function showtext(){
var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
alert(editortext);
</script>
Hope this helps.
Matthew -
HI,
A newbie here and on Flash,
Sorry for my poor englih too, I'm French.
My pb :
I the attach file you will find forfaits.fla which is connected to xml/forfaits.xml. The pb is the UI Component SROLL BAR for the textarea for the img description doesn't work .
Can you help me?
Thx a lotI think you should connect it to a text area.
Just create a multiline dynamic text area, connect the text area to the xml file and use the toXMLString();
for example: myTxt.text = myXML.toXMLString();
and then attach the scroll bar to the dynamic multiline text area.
hope it helped -
Increase text area width by typing text in it
Hi all,
I am using a text area i have set its wordwrap property false and horozontal and vertical policy off..What i want is to increase the width or height of text area depending upon the text i am writing
if the text is going to increase more than the width of text area the width of text area should adjust itself according to that..
Take a look to the below example
text area text:-
"this is text example"
text area width:-100
now as the word wrap property is off the text will come upto this for width of 100px:-
"this is text"
The moment i press the next character to type..the text area width should increase according to that ..the width should increase side by side
Is there any event for this via which i can get this done
ThanksI extended TextArea and it works well as a standalone component, but it might not work so well if you use it as an itemRenderer, like in a DataGrid.
I created a Flex Cookbook post on the topic:
http://cookbooks.adobe.com/post_I_want_a_TextArea_that_will_act_like_a_TextInput_t-16596.h tml
If this post answers your question or helps, please mark it as such.
Greg Lafrance
www.ChikaraDev.com
Flex Development and Support Services
------------------------ DynamicWidthTextArea.as -----------------------------
package {
import flash.events.Event;
import mx.controls.TextArea;
public class DynamicWidthTextArea extends TextArea{
public function DynamicWidthTextArea(){
super();
super.horizontalScrollPolicy = "off";
super.verticalScrollPolicy = "off";
super.wordWrap = false;
this.addEventListener(Event.CHANGE, adjustWidthHandler);
private function adjustWidthHandler(event:Event):void{
if(width <= textField.textWidth + textField.getLineMetrics(0).width){
width = textField.textWidth;
validateNow();
override public function set text(val:String):void{
textField.text = val;
validateNow();
width = textField.textWidth;
validateNow();
override public function set htmlText(val:String):void{
textField.htmlText = val;
validateNow();
width = textField.textWidth;
validateNow();
override public function set width(value:Number):void{
if(textField == null){
if(width <= value){
super.width = value;
}else{
trace("width: " + width);
trace("super.maxWidth: " + super.maxWidth);
if (textField.getLineMetrics(0).width<= super.maxWidth){
trace("textField.textWidth: " + textField.textWidth);
trace("textField.getLineMetrics(0).width: " + textField.getLineMetrics(0).width);
if(width <= textField.getLineMetrics(0).width + 10){
super.width = textField.getLineMetrics(0).width + 10;
}else{
super.width = super.maxWidth;
override public function get text():String{
return textField.text;
override public function get htmlText():String{
return textField.htmlText;
override public function set maxWidth(value:Number):void{
super.maxWidth = value;
--------------------- Test.mxml --------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:comp="*">
<mx:HBox>
<mx:Label text="Font size 8: "/>
<comp:DynamicWidthTextArea width="100" fontSize="8"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="Font size 10: "/>
<comp:DynamicWidthTextArea width="100" fontSize="10"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="Font size 12: "/>
<comp:DynamicWidthTextArea width="100" fontSize="12"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="Font size 20: "/>
<comp:DynamicWidthTextArea width="100" fontSize="20"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="Font size 40: "/>
<comp:DynamicWidthTextArea width="100" height="100" fontSize="40"/>
</mx:HBox>
<mx:HBox>
<mx:Label text="Font size 100: "/>
<comp:DynamicWidthTextArea width="200" height="120" fontSize="100"/>
</mx:HBox>
</mx:Application>
Maybe you are looking for
-
Hi, I've got the following exception, when trying to execute MBeanMaker with -DcreateStubs=true: (see the end of message). What's wrong? mdf file is one found in weblogic documentation.. ---------------------------------------------Parsing the MBean
-
Hello friends!! What 2T external HD should I buy for my macbook pro for photo, music and videos storage? Thank U!!
-
Trying to share link to file on cloud - recipient gets an error saying link is "no longer active"
I am trying to share a video file stored on Adobe Creative Cloud storage. I click "Send link", check "Allow file download", enter recipient's email address and click "Send link." The recipient receives the link in an email message but when they try t
-
Google Apps calendar sync is notifying me of everyone's meetings...
I have a Google Apps account that I have syncing contacts, IMAP, and the Calendar. There are ~50 calendars or so that are being synced, and by this I mean they're ON in: http://www.google.com/calendar/syncselect ...and I've unchecked them in the cale
-
Hi all (Well...Oracle ACE Experts, please rescue us) We are trying to convert ole2 to client_ole2 and we are facing problems in finding exact replacements for many word functionalities. Please help us in this. Wat is the replacement for paradown in c