Skip to Content
avatar image
Former Member

Clearing screen fields in web dynpro...

Hello Experts,

I've developed a simple web app for c.r.u.d operations. I need help in clearing the screen fields after any action is performed by the user.

suppose I clicked on create button after performing that action the screen elements should get cleared.

Please help me out.

thanks,

regards,

Nagendra

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jan 07, 2015 at 11:24 AM

    If any one has an Idea please let me know.I'm all ears 😊

    thanks,

    regards,

    Nagendra

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Nagendra,

      please find the below code for clearing a list of screen fieds.

      in on_action_create method.

      clear : ls_str.

        lo_el_str->set_static_attributes(
           static_attributes = ls_str ).

      also do the same in WDDOMODIFYVIEW.

      Thanks,

      Marimuthu.K

  • avatar image
    Former Member
    Jan 07, 2015 at 11:53 AM

    Hi Try with

                         wd_context->invalidate( ).

    or

    just call the  code wizard for setting values to the node ,, before set just clear the  work_area ( Means pass empty values ) .

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for your answer. I just found in one of the threads, anyways I appreciate your help.

      Thank you,

      Regards,

      Nagendra