Skip to Content
0
Apr 18, 2008 at 09:50 AM

get text from textEdit

82 Views

hello experts,

i have a textEdit field on the page and a button, when i write something to the textEdit field and press the button, it goes to the OnInputProcessing event, and the event handler is;

IF....

.....................................

ELSEIF button_event->server_event = 'myAppButton'.

data ?= cl_htmlb_manager=>get_data( request = runtime->server->request

name = 'textEdit'

id = 'myComment').

IF data IS NOT INITIAL.

gv_text = data->text.

ENDIF.

ENDIF.

.....................................

here is the definition of textEdit in the layout

.............

<htmlb:form>

<htmlb:textEdit id = "myComment"

cols = "120"

text = "<%=gv_text %>" />

</htmlb:form>

...............

but the data->text is empty, i cannot get the text i wrote into data, what is wrong here, what should i do?