cancel
Showing results for 
Search instead for 
Did you mean: 

Check Web Dynpro application running environment

Former Member
0 Kudos

Hi.

I created a Web Dynpro application and I want it to show diferent layouts based on the enviroment it is running.

If its running with the sap portal some UI elements should became invisible, if its running in a browser solo all elements should stay visible.

How can I check the application running environment?

Regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Create a configuration for the component and hide all elements that need to be invisible in the portal , then assign the configuration to application.In the iview of portal pass this configuration name ,so that the elements will be invisible .For running application in the browser just trigger the application that was not assigned to configuration.

Still you need to work on disabling end user personalization and this can be used as workaround.

Regards

karthiheyan M

Former Member
0 Kudos

Thats for your soluctions.

It works but it kinda goes arrow a bit.

I need do know the enviroment so I can control the layout.

Regards

former_member184578
Active Contributor
0 Kudos

Hi.,

While Creating iview Pass Application Parameters., Now in your Web dynpro Component Read the Parameter., If the Parameter Contains the Value It is running from Portal., Else it is running in normal browser.

based of the parameter You play around with Show / Hide or Enable / Disable UI Elements.

For reference How to create Application Paratemers check my article here: [How To Integrate WDA in Portal|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/008fc414-997f-2e10-3899-fd895ec8eb5e]

hope this helps u.,

Thanks & Regards,

Kiran

Answers (0)