cancel
Showing results for 
Search instead for 
Did you mean: 

Hide button in Embedded View

former_member187452
Contributor
0 Kudos

Hello All,

I have 2 webdynpro applications. In mt first webdynpro application I have a view in that I have used View container UI element and in that I have embedded my 2nd webdynpro application. This view contains the button called "back" to 1st application.

In my 2nd webdynpro applications there are 2 views Main view and details view.

My requirement is that the "Back" button should be invisible when user goes to the details view of 2nd webdynpro applcation.

Please suggest some solution for this.

Thanks,

Bharat

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You need to have a context linked to the visible field (properties of your button) of your button BACK. The attribute will be of WDY_BOOLEAN. When the user enters the details screen you need to set the attribute of that context to be false. That will make the button disappear.

Edited by: edmorrissey on Jul 6, 2011 11:24 AM

former_member187452
Contributor
0 Kudos

Hi,

The problem is of Embedded view.

Back button is on 1st application where as details view is of 2nd webdynpro application.

So when user goes to 2nd webdynpro application in its details view the back button should be invisible.

-Bharat

Former Member
0 Kudos

The first webdynpro will need to have a node which is an 'interface' . The context node that you will create ( to turn of the visibility of the button ) will then be accessible in the 2nd dynpro. It is here then that you set the visible property of the button to false. ( and thus invisible )

The node in the first will need the isInputElement property on to be available in the second. ( to my recollection )

The Internal Web Dynpro component is used by the Embedder Web Dynpro component. The original data is stored in the component controller context of Embedder. To be able to access this data from within a Web Dynpro component of type Internal, the corresponding context elements must first be declared as u201Cmappableu201D in the context of the component interface controller. To do this, the element property isInputElement is set to true

Using External Context Mapping

http://help.sap.com/saphelp_nw2004s/helpdata/en/d7/e551cf896c3a49bb87bb4ce38c99c8/frameset.htm

saravanan_narayanan
Active Contributor
0 Kudos

do the following

in the second application

1. in component controller create a Node of caridnalit 1..1 and an attribute (button_visible) of type WDUI_VISIBILITY and expose it to the interface. Set the default value of this attribute to 02 (VISIBLE)

2. whenever the navigation to Details view happens set this value to 01 'None'

in the first application

1. bind the interface attribute BUTTON_VISIBLE to the visible property of the BACK button

the back button wont be visible once the user navigates to 'Details view.

BR, Saravanan

Answers (0)