Skip to Content
0
Former Member
Jul 24, 2009 at 06:42 AM

Setting default view dynamically

367 Views

Hi All,

I have a requirement wherein I have 5 different views and 1 window in single Webdynpro component. None of the view is set as default statically in the design, i.e, the window is empty, it will not hold any view statically.

Now I need to set the views as default dynamically based on some condition.

i.e,

When a person clicks on the URL of this application in portal then it needs to check whether a URL parameter is passed with value.

If yes, then the user id should be checked against user master table and the role should be fetched.

Based on the role of that particular user, the view should be embeded dynamically inside the window.

The point here is I should not set any view as default view in window statically. When the application opens in the explorer then dynamically the view should be assigned at the time of window initialization itself.

Please let me know if it is possible to achieve this requirement.

Thanks

Subathra