Skip to Content
author's profile photo Former Member
Former Member

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

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.

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 12, 2004 at 09:17 PM

    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.

    -


    Add comment
    10|10000 characters needed characters exceeded