Skip to Content
avatar image
Former Member

get current iView name

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    May 09, 2006 at 08:40 AM

    hi!

    never tried this in WebDynpro but

    String PCDLocation = componentRequest.getComponentContext().getContextName();

    returns iView property PCD Location

    regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I really appreciate your suggestion. Can't passing iview name as application parameter during every iView creation be avoided? Is there any option in the API for fetching the current iView name? solution pls.

      Srinivasan T.

  • avatar image
    Former Member
    May 09, 2006 at 07:23 AM

    Hi Srinivasan

    String viewName = wdThis.wdGetAPI().getName(); should give you the current view name.

    Regards,

    Kushagra.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi,

      I need to get the current portal iView name in my web dynpro application and not the view in NWDS. Any suggestion?

      Srinivasan T

  • avatar image
    Former Member
    May 09, 2006 at 02:30 PM

    hi!

    there has to be something like

    IPortalComponentRequest request

    for WebDynpro, maybe this thread helps you...

    Authentication at iview level??

    regards

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      you can use IHttpRequest object instead of IPortalComponentRequest

      as following :

      IHttpRequest request =(IHttpRequest)WDProtocolAdapter.getProtocolAdapter().getRequestObject();

  • avatar image
    Former Member
    May 10, 2006 at 09:40 AM

    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

    Add comment
    10|10000 characters needed characters exceeded