Skip to Content
author's profile photo Former Member
Former Member

Refreshing of WebDynpro iView when application is Expired

Hi All,

I am hosting a webDynpro application on Portal using WebDynpro iView.

In the Application, I am passing the portal user who has currently logged in, using an iView property Application Parameter property as follows

pUser =<Login.UserId>

In the pUser variable i am getting the value of currently logged in portal user, which is used beigned used in Application .

When WebDynpro application is getting expire as specified by Expiation property of Application, and when we again click on the link specified at the expiration Link, application gets refreshed but the iView is not getting refreshed and the logged in user is not passed agian.Only when we click on the iView again the portal user is passed to application.

Is there any way by which the we can refresh the iView when application is expire.

Or is there any way by which we can pass the portal Role again WebDynpro application is expire

Thanks in advance.

Regards,

Shruti.

Edited by: Shruti Shah on Jan 7, 2008 5:40 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 05:24 AM

    Hi,

    Portal logged in user can be obtained by using API of IPrincipal in Web Dynpro application. Please check that.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2008 at 05:41 AM

    Hi Shruti,

    You can use the UME APIs to get the logged in user.

    something like the below

    IWDClientUser user=null;

    IUser iuser=null;

    try

    {

    user=WDClientUser.getCurrentUser();

    iuser=user.getSAPUser();

    if(iuser==null)

    msgMgr.reportException("null SAP user",false);

    else

    msgMgr.reportSuccess(iuser.getUid());

    }

    catch(Exception ex)

    {

    }

    Award points if helpful.

    Thanks

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 06:19 AM

    Hi,

    When the application expires, it is always better to refresh the application by refreshing iView. That will initialize the application and thus u will get the roles and id of the user. I can't think of any way for auto refreshin the iView when application expires. But I can tell you there is no way to pass the role automatically unless u get it manually using the application code.

    Regards,

    Harini S

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.