cancel
Showing results for 
Search instead for 
Did you mean: 

How to Refresh the portal

0 Kudos

Hi All,

i have a requirement to replace the existing role to the user through webdynpro dynamically based on user input.

This i am able to do successfuly but here i am facing the problem. the added role is not displaying until unless clicking on rfresh button in browser.

please let me know there is any way to rfresh the portal in browser through webdynpro java.

Thanks & Regards,

Bhargava Kumar.

Accepted Solutions (0)

Answers (4)

Answers (4)

lokesh_kamana
Active Contributor
0 Kudos

Hi,

Try the following code.


//Obtain the reference to the navigation service:
INavigationService navService = PortalRuntime.getRuntimeResources().getService(INavigationService.KEY);
// Obtain the INavigationCacheManager object from the navigation service:
INavigationCacheManager cacheManager = navService.getNavigationCacheManager();

Note:-Its really risky if you want to do that. Since portal takes the content lot of times from cache. So best way would be please provide the user with a confirmation message after you successfully save the transaction to logoff and login again when we work with this sort of transactions.i.e,prefered language change,Userid change or any new role assignment.

Thanks & Regards,

Lokesh Kamana.

vijay_kumar49
Active Contributor
0 Kudos

I did not expect that you are using portal navigation (navigation between two Ivews) as this information was not clear in your earlier posts.

To achieve this (refreshing the parent ivew) in portal navigation (navigation between two Ivews):

You need to raise an event in the button action of PDFIview as below:


WDPortalEventing.fire ("urn:com.sap.tc.webdynpro.test.portal",  
                       "TestEvent",  
                       "AParameter");

You need to subscribe the same event in parent ivew:


WDPortalEventing.subscribe ("urn:com.sap.tc.webdynpro.test.portal",  
                            "TestEvent",  
                            wdThis.wdGetTestEventAction());

in TestEventAction you can write the code to refresh the table in Parent IView

Go through this below link for more help.

http://help.sap.com/saphelp_nwce10/helpdata/en/d3/3857422d095542e10000000a1550b0/content.htm

Regards

Vijay

Former Member
0 Kudos

This message was moderated.

junwu
Active Contributor
0 Kudos

maybe you can try portal navigation api.

just navigate to the current view using the current window.