Skip to Content
avatar image
Former Member

Dynamic handling of Subforms

Hi Gurus,

I am working on a Interactive form using webdynro abap.

My scenario is , I have 4 radio buttons in a subform, whenever I select any radio button and click on save(which is a webdynpro action and not pdf save button), the selected radio button text will appear as the text in another field which is a read-only , which i have handled in webdynpro and the radio-button subform is hidden, which I have handled in the form using javascript.

My problem is when I click on 'EDIT' button(which is another webdynpro action), the radio-button subform should be displayed on screen with the last selected radiobutton. Please let me know how to handle this in the form.

Thanks,

Bharathi.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Aug 23, 2010 at 09:39 AM

    You need to create a hidden variable, where you will store the mode "EDIT" or "DISPLAY" and test this extra value in your scripting: both in JS in form scripting and in your backend, if necessary.

    Regards Otto

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Otto Gold

      Thanks guys!! it worked.

      I included both the subforms in a parent subform and made the parent subform "flowed", it works even though the child subform is "positioned".