Skip to Content
avatar image
Former Member

How to create radiobutton in webdynpro

In my screen we have to enter the material no in I/O Box and click on Create radio button and press ok button means. It should go to Create View..

How to give action code for create radiobutton and where we have to enter the code..

Please post the sample code for giving action to radiobutton.... Tell in step by step process

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 05, 2012 at 05:26 AM

    Hi,

    create a context attribute for Material number like MATNR type MATNR.

    go to the layout, craeate the input field input field UIelement and bind the VALUE property to the MATNR attribute.

    Create the button in layout and give the name as submit and create the actionto it as SUBMIT.

    There are different types in radio button-> by key and by index..

    create 2 views one for selection screen and other for matieral creation.

    Define the plugs and link them using navigation plugs.

    How many radio buttons are there..in your requirement...what each one does...

    Create a attribute of type CHAR1 ..or any of your defined type

    Create a radiobutton group in the LAyout and add the radibuttons to this group by righ click...and assign that to the attribute.

    As you have specified, one is for CREATE-.

    on the SUBMIT action handler, read the attrinute for matnr and aslo the radiobutton realted one..now you will get the values

    using the code wizard (READ->CONTEXTNODE) you will have the code generated.. and fire the plug..

    Examples -> WDR_TEST_UI_ELEMENTS and WDR_TEST_EVENTS.

    Please specify the requriement clearly...

    Regards,

    Lekha.

    Add comment
    10|10000 characters needed characters exceeded