cancel
Showing results for 
Search instead for 
Did you mean: 

Need to refresh SAP Inbox(UWL)

vikas_saxena3
Participant
0 Kudos

Hi,

I want to refresh UWL explicitly in java code since it is not getting refreshed immediately once user approve/reject any task, it refresh after around 1 min or need to do it manually to see the updated list.

So it create confusion that task has been approved/rejected or not.

I want piece of java code to refresh Inbox explicitly that I 'll write in my custom java dynpro handler of one event raised by UWL iView.

Thanks,

Vikas

Accepted Solutions (0)

Answers (2)

Answers (2)

siddharth_jain
Active Contributor
0 Kudos

Hi,

i am not sure Whether this will solve your problem but have a look on UWLView Class setRefreshRate Methods:

http://help.sap.com/javadocs/NW04S/current/uw/com/sap/netweaver/bc/uwl/config/UWLView.html

Updation:

Although i dont have Much Experience with UWL Api,and the below mentioned approach is not tested. But while going through the Api i thought Probably to achieve refreshing you can try the following:

Get the instance of UWL portal service in your WD application

Obtains the UWL view manager : IUWLViewManager getViewManager(UWLContext ctx)

Obtain UWLView, This is used to get a view by its ID name which is defined in the system or custom XML files :

UWLView getView(String id, UWLContext context)

After getting the desired view you can set its refresh ret accordingly.

You can give this a thought.

Siddharth

Edited by: Siddharth Jain on Dec 9, 2008 8:35 AM

p_2_5_6_9_6_0
Active Participant
0 Kudos

Hi,

Although I have not tried this myself - I did find something useful during my search on SDN.

Its the API for UWL in 2004s. You may find it useful in your coding.

[UWL JavaDocs|http://help.sap.com/javadocs/NW04S/current/uw/index.html]

Hope it helps.

Thanks.

p256960

vikas_saxena3
Participant
0 Kudos

Thanks for your help!! Same I'd already checked but still didn't encounter solution of my requirement.

I'm looking for java code to do the same.

Thanks,

Vikas

former_member192434
Active Contributor
0 Kudos

Hi

you can use EPCF.doNavigate("PCD URL") or use a javascript function

window.location.href ("Full URL of the UWL Role).

if you do not know the proper role to navigate. this is the simple way to find.

when you are in the UWL main screen save that screen in favorites using the portal button on the top right corner.

then go to the favorites page and see its URL in properties

I hope it helps,

Thanks

anup