on 05-09-2006 8:11 AM
Hi All,
I want to get the current iView name in the web dynpro application. If possible, can any one provide the code snippet?
Srinivasan T
Hi!
In WD you can access the request with WDWebContextAdapter
but I think you can only access URL parameters with:
String name = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("parameter");
so I think you will have to pass the parameter like Satyajit suggested before
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi!
never tried this in WebDynpro but
String PCDLocation = componentRequest.getComponentContext().getContextName();
returns iView property PCD Location
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
There's a workaround for this only if you have access to the portal content. If you have then open the properties of the iView in question and select the property category "Content - Web Dynpro".
You'll see a property "Application Parameters". In the inputfield next to it, enter something like "iViewName=<this iview name>".
Now when you run your webdynpro application, you can read the URL parameter iViewName.
Regards,
Satyajit.
Hi Srinivasan
String viewName = wdThis.wdGetAPI().getName(); should give you the current view name.
Regards,
Kushagra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.