cancel
Showing results for 
Search instead for 
Did you mean: 

Nagigation when i select a Radio button

Former Member
0 Kudos

Hi All,

I have two Radio buttons say R1, R2 in a <b>dialog box</b>. When i select one of the Radio button(R1) and press on OK on dialogbox i need to display Tabstrip and i f i select R2 need to display some table. how can i achieve this....

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Kalpana ,

At the action event of button, you can show a pop up window , This pop u window is possible by creating another window object in your DC.

Then in this new window you can show two radio buttons .

Attach action event to it and there in you write code for creation of tab strip and table display.

I hope this helps

Note: reward if useful

Former Member
0 Kudos

Hi Kalpana,

This will let you display the Table and Tabstrip in the same View

i). Create a <b>context</b> attribute say "<b>visib</b>" and assign its <b>type</b> property as <b>com.sap.ide.webdynpro.uielementdefinitions.Visibility</b>.

ii).Select the <b>TabStrip</b> in the ViewLayout.In the properties assign the Visible property to the created context attribute "<b>visib</b>".

iii). In your wdDoInit Method make this visibility as false i.e.,

<b>wdContext.currentContextElement.setVisib(WDVisibility.BLANK);</b>

This will make the TabStrip invisible when screen comes for the first time

iv). In the onSelect of the Radio Button set the visibility as true i.e.,

<b>wdContext.currentContextElement.setVisib(WDVisibility.VISIBLE);</b>

Repeat the same thing for Table using another context attribute say "<b>TableVisib</b>"

Regards,

Mathan MP

Former Member
0 Kudos

Hi ,

Radio button has a onSelect event. Assign an action/event handler for it.

Create two value attributes , tabVis and tableVis.. of type type

com.sap.ide.webdynpro.uielementdefinitions.Visibility.

Capture the current selected radio button .. (varies for RB by Key and byIndex.. )

It its RB ByIndex it s the current element of the node..

for RB byKey , when a simple type is used.. getXXX() would give you the value..

So depending on the selected radio button..

use..

wdContext.currentContextElement().settabVis(WDVisibility.VISIBLE);
 wdContext.currentContextElement().settabVis(WDVisibility.NONE); 

<a href="http://help.sap.com/saphelp_nw04/helpdata/en/55/084640c0e56913e10000000a1550b0/frameset.htm">Parent and Pop window Interaction..</a>

Regards

Bharathwaj

Message was edited by:

Bharathwaj

sid_sunny
Contributor
0 Kudos

Hi Kalpana,

Where do you want to show these two UI.

Regards

Sid

Former Member
0 Kudos

Siddarth

If i click on some button it would popup(dialog) window with two raidio button.If i select one of the radio button on the dialog box it should display tabstip in the current page.

Message was edited by:

Kalpana

sid_sunny
Contributor
0 Kudos

Hi Kalpana,

First of all sorry for late reply. I saw some of the replies to your thread both of them are correct just to suggest you one more in case you have not define the table and Tab UI at design time and want them to be created on runtime then you can write that peice of code in wdDoModify into two IFs with respective conditions i.e the choose radio button value.

Do reward points if you feel your question is answered.

Regards

Sid