Skip to Content

how to know which element is selected.

Hi All,

I have a WebDynpro Application where i have two radio buttons.

How could i know that which radio button is selected and upon the selected button

i have to fire the related Plug.

Regards,

Dhruv Shah

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 05:41 AM
    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Dhruv Shah

      Hi Shah

      1)Set the keyToSelect =button_1 for Radio Button 1

      Set the keyToSelect =button_2 for Radio Button 2

      2)Create a context value attribute of type String say PlugFire and bind that to the selectedKey property of both the Radio Buttons.

      onSelect() // radio Button 1

      if(wdContext.currentContextElement().getPlugFire().equals("button_1"));

      wdThis.wdFire<>1();

      onSelect() // radio Button 2

      if(wdContext.currentContextElement().getPlugFire().equals("button_2"));

      wdThis.wdFire<>2();

      Best Regards

      Chaitanya.A

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 09:00 AM

    Hi,

    May I know why you are using Radio Button??

    Best Wishes,

    Idhaya Ramadurai

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.