cancel
Showing results for 
Search instead for 
Did you mean: 

MC-BSP-MVC: Passing contents of HTMLB-TextEdit control from view to control

Former Member
0 Kudos

Hello Experts-

I am trying to pass an HTMLB:TextEdit control from a view to my controller.

I can pass a string field from the view [HTMLB:InputField] to a class attribute in my controller class through the 'DO_HANDLE_DATA' method. Unfortunately the same syntax is not working when I am trying to pass the contents of the HTMLB:TextEdit control from my view into a class attribute with the same table type as in the HTMLB:TextEdit field on my view.

What is the correct syntax/technique for passing a muti-line text edit field (which I am assuming is handled by the view as an internal table) from the view to the controller?

Your help will be appreciated.

Thanks,

- Vik.

P.S.: The syntax in the controller class' 'DO_HANDLE_EVENT' that I use for passing strings from my view to my controller is:

field-symbols: <field> type ihttpnvp.

read table form_fields with table key

name = 'selapprover' assigning <field>.

me->selapprover = <field>-value.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Many thanks to: Venky Varadadesigan.

Venky posted the solution to this question in response to a different question on this very forum -> "BC-BSP-MVC: How can I pass text in table format from view to controller?".

-


Hi Vik,

Please note that the 'text' attribute of htmlb elements 'textEdit' and 'textView' is simple "String" and not an internal table.

Regards,

Venky Varadadesigan

SAP NetWeaver consulting.

-