on 2005 Feb 01 9:02 PM
Hi
I have a Tabstrip which contains a ViewContinerUIelement.
I have embedded an interface view from another web dynpro component to the tabstrips ViewContinerUIelement.
The interface view is a view set with 2 cells.
cell(1,1) has one view (navigationview)
cell(1,2) has two views - view1 and view2
view one is the default view.But based on a Button event on view1 I navigated to view2.
so now cell(1,1) has navigationview
and cell(1,2) has view2.
When I click on Tabstrip , I want to go to the original
configuration.
cell(1,1) - navigationview
and cell(1,2) - view1.
Not sure how to achieve this. I was thinking is it possible to reload the interface view, so that it takes view1 as default view or Is it possible to change the view of cell(1,2) dynamically.
Regards
Bhanu
I did not try it out, but it should work:
Attach an action to the TabStrip.onSelect event. In this action, check if the correct tab is selected and call a component method that resets the view composition of the embedded component.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Define a navigation link from "navigation view" to "view1".
In the action handler, call a component method that navigates along this link. This should populate cell(1,2) with "view1".
From view: "navigation view"
via outbound-plug: "OutDisplayView1"
to view: "view1"
wdThis.firePlugOutDisplayView1()
Perhaps there is also a simpler way.
Armin
Hi
I have a Tabstrip which contains a different ViewContinerUIelement on two different tabs(same tabstrip).I have embedded an VendorView,DetailsView to the tabstrips ViewContinerUIelement.
In VendorView i have table contains list of vendors, by clicking one of the vendor in table, i want to navigate to details tab which contains Detailsview.
This my requirement, wht i have done is in the "onLeadSelect" event of Table , i written the following code ..
public void onActionShowVendorDetails(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
{
//@@begin onActionShowVendorDetails(ServerEvent)
wdThis.wdFirePlugToGeneralData();
//@@end
}
but it is not navigating to DetailView
Please help me in this context.
Regards,
Davood
Navigating to the details view does not change the selected tab automatically.
Bind the "selectedTab" property of the tabstrip to a context attribute "selectedTab" of type "String" and set the context attribute value to the ID of the details tab after the firePlug call.
//@@begin onActionShowVendorDetails(ServerEvent)
wdContext.currentContextElement().setSelectedTab("ID-of-details-Tab");
wdThis.wdFirePlugToGeneralData();
//@@end
Armin
User | Count |
---|---|
67 | |
11 | |
10 | |
10 | |
9 | |
9 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.