on 09-30-2008 1:43 PM
Hi,
I have created a layout like GP Runtime Page in a custom application, using ContextualPanel and ViewSwitch. I mapped the ViewSwitch with a node. But at runtime i am not able to switch between views.
The context is always pointing to first element of Node. Is there any option to change the lead selection of context to corresponding ViewSwitch Tab.
Regards
Baby
Hi,
I resolved this with help of some forum threads. I created action handler and pass index as a paramter to it. For this i wrote following code in wdModify.
if (firstTime)
{
IWDViewSwitch myViewSwitch = (IWDViewSwitch) view.getElement("ViewSwitch");
myViewSwitch.mappingOfOnSelect().addSourceMapping(IWDViewSwitch.IWDOnSelect.INDEX, "index");
}
Thanks..
Baby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Armin for your support..
I am also including the action event.
public void onActionswitchview(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, int index )
{
//@@begin onActionswitchview(ServerEvent)
wdContext.nodeControl_Navigation_Tab().setLeadSelection(index);
//@@end
}
Regards
Baby
User | Count |
---|---|
85 | |
10 | |
9 | |
9 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.