on 05-09-2007 6:57 AM
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....
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kalpana,
Where do you want to show these two UI.
Regards
Sid
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.