TextEdit control of HTMLB
Hi,
I want to disable the text area using textEdit control of HTMLB. if I set disabled= "true" in jsp file, then portal throws runtime error "attribute disabled is not available in HTMLB".
Any suggestion.
Thanks in advance.
Manish
Hi Manish,
There is no property called <b>disabled</b> but there is a property called <b>enabled</b>.
enabled="TRUE"
or
enabled="FALSE"
regards,
prakash
Similar Messages
-
Issue in wrapping of text in TextEdit control
Hi,
I'm developing an occasionally connected application using NetWeaver Mobile 7.1. In one of the view, I use TextEdit control to display the address information where the address is a multiline text data. During testing of the application in the simulator, the wrapping of text in the TextEdit control is not working properly. The wrapping property of TextEdit control is set to "soft" but the text is not getting wrapped. Even I tried the other option "hard" wrapping but it throws some error while building of the application.
Please suggest a solution to do wrapping of text using TextEdit control.
Thanks in advance.
Regards,
DVR.Hi Nipun,
The rows and cols properties are already set and also the data is multiline but the text is not wrapping.
Say the properties of a TextEdit control rows is "4" and cols is "30" was set. The data is also a multiline text say each line has more than 30 characters. During wrapping of text with in TextEdit control the first row should have only 30 characters and rest should be wrapped off to the next row and so on.
But during execution what happens is the text is not getting wrapped instead the first row itself has all the characters of first line of the text and second row has next line of text and so on. The text in a row can be scrolled through using horizontal scrollbar.
My need is the horizontal scroll bar should not come and the text need to the wrapped off with number of cols specified.
Regards,
DVR -
Urgent: Problem wiht InputField control of HTMLB
Hi all,
I want to display inputfield control of htmlb.
I am writing one for loop and I am changing the id of the control at every iteration
<%
for(int x=0;x<5;x++)
%>
<tr>
<td><hbj:inputfield id ="a<%=x%>"/></td>
<%}%>
It gives the error "form controls must have unique ids.
SAme thing works well with other controls like textview,label etc.
"<hbj:" is tablib.
Please help
Thanks
ParagHi Parag,
Just try creating a string before the inputField declaration and then using that (htmlb doesnt like the mix and match in the id like you're trying to do).
<%
String tempId;
for(int x=0;x<5;x++)
{ tempId = "a"+x;
%>
<tr>
<td><hbj:inputfield id ="<%=tempId%>"/></td>
<%}%>
Hope this helps,
Marty -
Problems setting MAX_NUMBER_CHARS in TEXTEDIT CONTROL
Hi, I have a problem with C_TEXTEDIT_CONTROL interface.
I have to maintain a Function Module that displays a TEXT EDIT CONTROL in a popup. One parameter of this FM is MAX_NUMBER_CHARS that is passed to the control in the constructor method.
This parameter pretends to lock the maximum quantity of characters written in the popup. Its set to 255 characters.
At first, when user writes his commentary with 255 ch (yeah, he writes till the end) everything works ok; but after that, when he tries to visualize his commentary, nothing appears in the control, although the commentary is passed correctly to the control via set_text_as_r3table method.
I have done some tests, and sawn in Debugger Time that if I change the parameter MAX_NUMBER_CHARS to 265 when the commentary length is 255, the control displays the text.
Does anyone know what happens or what Im doing wrong?Yeah, that's it.
Here is the code:
EDITOR is declared as follows
data: editor type ref to c_textedit_control .
Here I'm trying to create the Obj. and gv_length is set to 255.
create object editor
exporting
repid = repid
dynnr = '0100'
dynpro_container = 'TEXTEDITOR1'
max_number_chars = gv_length
exceptions
others = 1.
In the next code, I pretend to pass the TEXT written by user.
call method editor->set_text_as_r3table
exporting
table = mytable
exceptions
error_dp = 1
error_dp_create = 2
others = 3
There are more lines of code, but they are not relevant to this problem.
At first, the user can write a comment with 255 characters, but I'm not able to show this same comment although mytable is fulfilled.
Thx -
TEXTEDIT Control in Dialog Programming
Hi,
My requirement is that when i save the long text once in the text editor, next time when i access that texteditor, i SHOULD NOT BE able to change the text which i entered, BUT I SHOULD ENTER THE NEW TEXT.
I am using the method:
CALL METHOD EDITOR4->PROTECT_LINES
EXPORTING
FROM_LINE = 0
PROTECT_MODE = EDITOR4->TRUE
TO_LINE = V_LINES
ENABLE_EDITING_PROTECTED_TEXT = EDITOR4->TRUE
EXCEPTIONS
ERROR_CNTL_CALL_METHOD = 1
INVALID_PARAMETER = 2
others = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
I am able to disable the text which i entered earlier but not able add new text.
Pls suggest.
Thanks,
Raviany ways got the solution...
1) First Append a null row while saving.
Clear : Work area.
Append Work area To internal table.
2) While be in Change mode or view mode.
Get the total lines of table by DESCRIBE data... and do following
DESCRIBE TABLE IT_TEXT LINES V_LINES.
IF V_LINES <> 1.
V_LINES = V_LINES - 1.
ENDIF.
CALL METHOD EDITOR_JUST->PROTECT_LINES
EXPORTING
FROM_LINE = 1
* PROTECT_MODE = TRUE
TO_LINE = V_LINES
* ENABLE_EDITING_PROTECTED_TEXT = false
EXCEPTIONS
ERROR_CNTL_CALL_METHOD = 1
INVALID_PARAMETER = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
and you are done.. -
Copy & Paste Data to htmlb:textEdit
Hi,
when I Copy & Paste Data from MS Office to <htmlb:textEdit> the following occurs:
1) In the <htmlb:textEdit> note, the content is displayed without formatting. (OK)
2) Saved content is displayed without formatting in the backend. (OK)
3) Printing the content via SmartForms/Adobe pdf, #-signs are appearing. For example, spaces created with the tab key are displayed as ###. (PROBLEM!)
Are there anybody who knows how I can solve this problem. Basically, I just want to print what I see in my web application.
I suspect that the <htmlb:textEdit> control is not completely removing all formatting from MS Office.
What do you think?
Any help is greatly appreciated.
/ElvezHi Elvez,
I experienced, that the textedit uses '##' to identify a carriage return. We simply remove the placeholder, if we have to use the value of a textedit in other contexts.
I don't think that it is related to the copy from MS Office, since the textedit takes erverything as plain text.
Regards -
Problem while populating RFC table into HTMLB tableView control
Hi, We are trying to populate some data from R/3 into the front end. For this we are using tableView control in HTMLB. But the problem is, one particular field is behaving strangely where as all other fields are displayed correctly. This value is sometimes displayed correctly and sometimes not. The FM if executed at the back end is giving correct result always. In Java there is a single line code i.e. table.getString("FIELD_NAME_IN_RFC");. Please guide us to find out the problem if somebody has already faced this before.
Hi, We are trying to populate some data from R/3 into the front end. For this we are using tableView control in HTMLB. But the problem is, one particular field is behaving strangely where as all other fields are displayed correctly. This value is sometimes displayed correctly and sometimes not. The FM if executed at the back end is giving correct result always. In Java there is a single line code i.e. table.getString("FIELD_NAME_IN_RFC");. Please guide us to find out the problem if somebody has already faced this before.
-
Maximum characters in textEdit field
Hi all,
I am using TextEdit control. now i want to set the maximum character for the control. for example 100 characters.
how to achieve this.
Regards,
Shanthakumar.Hi,
You should use LengthValidator to set the maximum character for the control.
Check this:
Client-side Input Validation with HTMLB - Intermediate
Regards,
Praveen Gudapati -
How to show long text in TextView control in formatted form?
Hi,
I have requirement to show long text from backend text edit control to WD application. I am using READ_TEXT Fm to read the long text and passing it to text view UI element.
The text is shown in simply one long line but I want it to show in the same format as stored in backend textedit control.
If I take textedit UI control then it shows the text in formatted form.
Could you please let me know how to achieve these for TextView control? My requirement is that I have to use only TextView control.
Thanks,
ChandraHi,
The Problem solved to some extend but still the exact formatting is not happening though i am using cl_abap_char_utilities=>newline.
for eg. if the long text is as below.
"To display the external component, you can now embed an interface view of any window of this component in a window of your current embedding a view of oneu2019s own component. By setting up navigation from one outbound plug of a view of your inbound plug of the inter external component, you enable the external component to be displayed. New line ."
and if in backend the Last line " New line ." is on next line, on WD it is not displayed on next line.
Thanks,
Chandra -
Total sum to be displayed in a table view control ?
Hi,
I am unable to display the total sum of a column in a table view control( using HTMLB ). How should one display the sum of a column ?
THanks in advance,
VaraPrasadHi,
it should work once you are restricting the capacity of the out put port then it should provide that much rows only otherwise its a Bug.
Alternativily you are tellin to disaply using sorting then add a Sort operator to the output port and the display ur output port in down order.
But first option should work just check it again.
On which SP u r working?
Regards,
Govindu -
To display Total sum of a column in a table view control ?
Hi,
I am unable to display the sum of a column in a table view control ( using HTMLB ). How should one display the sum of a column in a table view control ?
Thanks in advance.
Vara.Hi there, do a search in this forum for TableView Iterator. Then check out these weblogs:
/people/thomas.jung3/blog/2004/09/15/bsp-150-a-developer146s-journal-part-xi--table-view-iterators
/people/brian.mckellar/blog/2003/10/31/bsp-programming-htmlb-tableview-iterator
An Iterator is the way to go for you -
Hi SDN, Rich Please respond ..! <b>ITS VERY URGENT</b>
i need a longtext in one of the table contol of my customised screen. the purpose of the screen is to create RFQ's where in user can enter LT ( just like the transaction IW32 - > Operations Tab - > LT Column. actually the LT in that table control is a button, pressing on which will take the user to an editor like SAP Script editor )
<b>how do i save this into my customised tables so taht i display the LT in the display screen for RFQ's</b>
This same LT created in RFQ Creation screen should be displayed to the users in another customised screens of RFQ Display / Change where the same functionality is needed.
Please help me in achieving this, i have been struggling from past few days, and this is very urgent.
i have been tryin the same with the fm's edit_text and read_text, but am not clear on these fm's related to HEADER in the importing parameters of the fm.
is this wrong? or is there any other way to achieve my requirement?
Please HELP
PratyushaHi,
Check this code..To display the text in a text editor control..
First you have to create a custom control in your screen painter and name it as CONTAINER1..
Then apply this code..
TYPES: BEGIN OF type_text,
line(70),
END OF type_text.
DATA: t_texttable1 TYPE STANDARD TABLE OF type_text.
DATA: custom_container TYPE REF TO cl_gui_custom_container,
editor TYPE REF TO cl_gui_textedit,
repid LIKE sy-repid.
repid = sy-repid.
CALL SCREEN '0100'.
*& Module STATUS_0100 OUTPUT
text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
PERFORM delete_container.
*- Container franchise codes
IF editor IS INITIAL.
repid = sy-repid.
CREATE OBJECT custom_container
EXPORTING
container_name = 'CONTAINER1'
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
create_error = 3
lifetime_error = 4
lifetime_dynpro_dynpro_link = 5
others = 6.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CREATE OBJECT editor
EXPORTING
parent = custom_container
wordwrap_mode = cl_gui_textedit=>wordwrap_at_fixed_position
wordwrap_mode = cl_gui_textedit=>wordwrap_at_windowborder
wordwrap_position = '38'
wordwrap_to_linebreak_mode = cl_gui_textedit=>true.
*- Eliminate toolbar
PERFORM toolbar.
ENDIF.
PERFORM load_data.
Load TextEdit control with texts
CALL METHOD editor->set_text_as_r3table
EXPORTING table = t_texttable1.
IF sy-subrc > 0.
Display an error message
EXIT.
ENDIF.
CALL METHOD cl_gui_cfw=>flush.
ENDMODULE. " STATUS_0100 OUTPUT
FORM delete_container *
FORM delete_container.
IF NOT editor IS INITIAL.
CALL METHOD editor->delete_text.
CALL METHOD cl_gui_cfw=>flush
EXCEPTIONS
OTHERS = 1.
IF sy-subrc > 0.
Errormessage: Error in flush
ENDIF.
ENDIF.
ENDFORM. " delete_container
FORM toolbar *
FORM toolbar.
DATA: lv_toolbar_mode TYPE i VALUE 0.
CALL METHOD editor->set_toolbar_mode
EXPORTING
toolbar_mode = lv_toolbar_mode.
CALL METHOD cl_gui_cfw=>flush.
IF sy-subrc > 0.
Errormessage: Error in flush
ENDIF.
ENDFORM. " toolbar
*& Form LOAD_DATA
text
--> p1 text
<-- p2 text
FORM load_data.
DATA: gwa_line TYPE type_text.
gwa_line-line = 'HELLO HOW ARE YOU!!!!!'.
APPEND gwa_line TO t_texttable1.
ENDFORM. " LOAD_DATA
*& Module USER_COMMAND_0100 INPUT
text
MODULE user_command_0100 INPUT.
DATA: T_SAVE_TEXT TYPE STANDARD TABLE OF TLINE.
DATA: S_SAVE_tEXT TYPE TLINE.
DATA: S_TEXT TYPE TYPE_TEXT.
Load TextEdit control with texts
CALL METHOD editor->get_text_as_r3table
IMPORTING table = t_texttable1.
ENDMODULE. " USER_COMMAND_0100 INPUT
Hope this helps...
Thanks,
Naren -
I've a question depending the textEdit Field of htmlb Extension:
Is there any possibility to define a maxlength for this field as it is with InputField?
I need kind of a textarea with limitation of 2048 signs...
Thanks in advanceYes, of course:
What solved my problem was:
/people/sap.user72/blog/2005/02/07/bsp-howto-show-a-progress-bar-for-limiting-text-input
in coordination with
http://www.mediacollege.com/internet/javascript/form/limit-characters.html
Message was edited by:
Matthias Stangl -
How to handle double click event in a text control
Hi,
Will u please send me information on handling double click events inside text control and also about locking and unlocking of DB tables for updation.
Regards,
Praba.Hi Prabhavathi,
Here is how you handle double click events in Textedit control.
1)Create a custom control in screen (say TEXT_CONTROL)
2)In main program,
a) Declarations:
data: obj type ref to cl_gui_custiom_control.
text type ref to cl_gui_textedit.
b) Create the instance of custom container
c) Create the instance of textedit control.
3)Now to handle double click events , create a local class as follows.
class shail_event definition.
public section.
methods:
handle_doubleclick for event dblclick of cl_gui_textedit .
endclass.
class shail_event implementation.
method handle_doubleclick .
here do the coding for handling the double click.
endmethod.
endclass.
4) Create an instance of the handler class(ie.ZSHAIL_EVENT).Let it be named hand.
5) Define varibles for event.
DATA: i_events TYPE cntl_simple_events,
wa_events TYPE cntl_simple_event.
SET HANDLER hand->handle_doubleclick for text.
wa_events-eventid = cl_gui_textedit=>event_double_click.
wa_events-appl_event = 'X'. "This is an application event
APPEND wa_events TO i_events.
6)
CALL METHOD texte->set_registered_events
EXPORTING
events = i_events
EXCEPTIONS
cntl_error = 1
cntl_system_error = 2
illegal_event_combination = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
These are the basic steps needed for handling events in Textedit control.You can go to SE24 and type CL_GUI_TEXTEDIT to find the associated events of the class.
If you want the program, kindly send your mail-id so that I can mail it to you.
Regards,
Sylendra. -
Hi,
I have a value node Objectives with a value attribute called Objective type string where user can enter multiple lines and some other attributes also. I want to get multiple values from the user.
Since TextEdit cannot be used in a table, I have put an add button in the view. When user clicks on Add button each time, I create the TextEdit Control dynamically in the view which is bound to the value attribute Objective of value node Objectives and create a blank record in the value node Objectives.
My problem is if user clicks on the Add button multiple times and enter some values in the TextEdit Control, How do I update the correct record of the node Objectives?
I would appreciate any help in this matter
Thanks.
Regards,
Suresh.Hi,
I am working on a requirment where i am using textEdit as a cell in tableView.
Every thing is working fine except i am unable to capture the data from textEdit.
I have to store the multiple lines entered by user into a z-table column of type
XSTRING. For that i am trying with
column_index = 8.
lv_lines = tv_event_data->get_cell_value( row_index = ws_selectedrows-index column_index = column_index ).
concatenate CL_ABAP_CHAR_UTILITIES=>cr_lf space into lv_translate.
translate lv_lines using lv_translate.
concatenate CL_ABAP_CHAR_UTILITIES=>newline space
into lv_translate.
translate lv_lines using lv_translate.
condense lv_lines.
But still after this i find some characters in the string, so i am able to store only partial string. not compelte string(which is multiple lines).
If anybody has expereinced the same and solved can help me.
I really appreciate and alot points for suitable answer.
thanks for the help.
Regards,
Pra
Maybe you are looking for
-
Public Folder Migration from Exchange 2007 to 2013 fails RelinquishedWlmStall budget limitations
I have been trying to migrate approx 50 public folders from Exchange 2007 to Exchange 2013 for several months. I have followed every link I can find on how to do the migration properly. It will stay in a queued state for hours until the MRS is rest
-
iPhone 4 went into recovery mode when trying to restore it. Now the only option iTunes allows is for "restore & upgrade", it is not offer an option to restore from a backup, says that must first do the upgrade, when attempting to do the upgrade the i
-
My laptop won't turn on and other questions about it...
This isn't a problem that is mostly described in imediate forum discussions. My laptop is 5 years old this summer and since day 1 I have had issues with it, especially with the over heating.... Well starting very recently, my computer has decided tha
-
Hi Guys, I have some clarification in Invoicing . 1) . In MIRO we have given wrong pice , How it will be changed ? 2) In MRKO transaction Consignmetn settled .How it will be cancel led or modify the changes in taxcode. Please help us to solve this
-
Does anyone know how to get a photo card out of the cd slot. I accidentally put the chip in the cd place above the photo card reader. Help it is stuck inside.