cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro Tabstrip

Former Member
0 Kudos
58

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks Armin

Thats where I am struggling, in the event , I am not able to

find a method which will reset the view composition.

If you know the mthod that will be great help.

Thanks a lot.

Bhanu

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

Thank you Armin

I solved my problem

Regards,

Davood