cancel
Showing results for 
Search instead for 
Did you mean: 

Radiobutton and Button

Former Member
0 Kudos

Hi Experts,

I have following requirements

1.I have <b>5 buttons(action bu</b>ttons) and <b>2 radio butto</b>ns

2.I have 2 seperate documents.

<b> a) category-1

b) category-2</b>

3.<b>category-1</b> contains some documents

<b> a) s1

b) s2

c) s3 </b>

4.<b>category-2</b> contains some documents

<b> a) T1

b) T2

c) T3 </b>

I have designed <b>2 radio button a) category-1 b) category-2</b>

while 1.selecting the <b>category-1 and s1</b> corresponding page will be displayed

2.selecting the <b>category-1 and s2</b> corresponding page will be displayed

3.selecting the <b>category-1 and s3</b> corresponding page will be displayed

while 1.selecting the <b>category-2 and T1</b> corresponding page will be displayed

2.selecting the <b>category-2 and T2</b> corresponding page will be displayed

3.selecting the <b>category-2 and T3</b> corresponding page will be displayed

How to do that and how to acheive it.

Give ur valuable suggestions

its very urgent

Regards,

P.Manivannan.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Mani

Are T1,T2,T3 S1,S2,S3 are drop down list boxes?

do u want to open those documents in a separate window or ??

Regards

Chaitanya.A

Former Member
0 Kudos

Hi chaitanya,

T1,T2,T3,S1,S2,S3 ARE buttons

while selecting the radiobutton and button the new window will be opened?

Regards,

P.Manivannan

Former Member
0 Kudos

I don't understand the use case. What exactly is the problem?

Armin

Former Member
0 Kudos

Hi Armin,

selecting the both radio button and button the new page will be displayed.

Regards,

P.Manivannan

Former Member
0 Kudos

You have assigned an action to each button? Then, in the action handler, you could check which option is selected (context attribute to which "selectedKey" of radio buttons are bound) and depending on this value, you can open a popup window or an external URL.

Is this what you need?

Armin

Former Member
0 Kudos

Hi Armin,

1. There are 5 buttons..

2. Upon clicking button the corresponding page will be displayed with two radio buttons (category-1 and category-2)

3. By default ‘category-1' will be enabled.

4.Based upon the selection of every button, either category-1or category-2 will be displayed depending upon the Radio Button selection.

Regards,

P.Manivannan

Former Member
0 Kudos

Hi

<a href="https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/clientserver/uielib/standard/api/IWDRadioButton.html">Radio Button Information</a>

There are the 3 preperties maily used in of radiobutton.

<b>KeyToSelect</b>: Unique key which will be identified while selection from a number of radiobutton.s

<b>SelectedKey:</b> This is used set to the key of the radiobutton that is currently selected.

<b>OnSelect</b>: An event that you want to fire when the radio button is selected.

now define Action methods for button and then on select of Radio button fire the corresponding action (opening a window and displaying the document.)

i need small info..is there any use of Radio button in you application..u can directly open ur document my clicking on button..anways u have buttons for each and every document..right

Regards

Chaitanya.A

Former Member
0 Kudos

Hi Chaitanya,

there are 2 seperate documents.

1. document-1 having some list of 5 new pages

2. document-2 having some list of 5 new pages

there r 5 buttons. each button having documents.

each button having document-1 and document-2

thats why i using the radio button

still i didn't get a solution

how to do that?its very urgent.....

Regards,

P.Manivannan.

Former Member
0 Kudos

Hi Mani,

1. set the keyToSelect =key_1 for RB1

2. set the keyToSelect =key_2 for RB2

3. Bind a context of type string to the selectedKey property of both the radiobuttons name selectedRB.

4. Create actions for all the buttons and bind them to their respective buttons.

5. In implementation you can check which radio button is selected using

if(wdContext.currentContextElement().getSelectedRB().equals("key_1"));

or

if(wdContext.currentContextElement().getSelectedRB().equals("key_2"));

Rest each button is having a different action so you can open the document you want just checking which RB is selected.

Regards,

Murtuza

Former Member
0 Kudos

Hi

one more clarification... do u want to open documents or pages inside the document

Regards

Chaitanya.A

Former Member
0 Kudos

Hi Chaitanya,

pages inside the document

Regards,

P.Manivannan.

Former Member
0 Kudos

H all,

Thanks for ur replies. I got a solutions.

Regards,

P.Manivannan.