cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh UWL

joseidrobo
Explorer
0 Kudos

Hi,

I want to refresh the UWL automatically when the user finishes his task. For example I have a BSP application to approve or reject a document, when the user finishes, the BSP application returns to UWL, but the UWL is still showing the same records and the user must click on the refresh button for the record to disappear.

Any ideas?

Jose

Accepted Solutions (0)

Answers (4)

Answers (4)

tonistender
Explorer
0 Kudos

Hello Chuckie,

the ')' problem could i solve with the following code:

<htmlb:button id = "button_refresh"

text = "Refresh"

onClientClick = "portalFireEvent('urn:com.sap.netweaver.bc.uwl.ui','refreshUwlBackend', null, null )" />

The javascriptfunction has 4 paramters.

best regards

Toni

joseidrobo
Explorer
0 Kudos

Hi Markus,

I'm using the following code to back to UWL.

<%@page language="abap" %>
<%@extension name="bsp" prefix="bsp" %>
<%@extension name="htmlb" prefix="htmlb" %>
<htmlb:content design="design2003" >
  <htmlb:page title=" " >
    <htmlb:form>
      <bsp:portalNavigationAbsolute navigationTarget="ROLES://portal_content/[...]/com.sap.netweaver.coll.uwl.uwl_iview" />
    </htmlb:form>
  </htmlb:page>
</htmlb:content>

How I can fire the event before or after jump to the UWL?.

Best Regards

MarkusKlein
Active Contributor
0 Kudos

Hello Jose,

not sure if you can process code after you have triggered a navigation. But if you can, you should raise the event "after" you have triggered the navigation. The reason is, the UWL application (a JSP page) subscribes to the "refreshUwlBackend" event at the end of its own code.

This means only after the UWL is fully loaded it does recognize any raised refreshUwlBackend-Events.

cheers

Markus

Former Member
0 Kudos

I am still trying to get an icon for UWL to refresh and have given up on getting it on the UWL iview itself.

So now I thought why not have a BSP on the page say int he dynamic navigation area which when clicked would fire the Event.

So I created a BSP Application with the following code, but as I have not integerated BSP with firing events in EPCF before... can someine have a look at it and see why it didn't work.

I was hoping just to and the iview to the same page as the UWL and when a button is clicked it will fire the portal event, but it isn't working. We are on EP7 and ERP 2005

-


start of code -


<%@page language="abap"%>

<%@extension name="htmlb" prefix="htmlb"%>

<htmlb:content design="design2003">

<htmlb:page title = "Default Page ">

<htmlb:form>

<htmlb:textView text = "Refresh UWL"

design = "EMPHASIZED" />

<htmlb:button text = "Push Me"

onClick = "portalFireEvent('urn:com.sap.netweaver.bc.uwl.ui','refreshUwlBackend')"

/>

</htmlb:form>

</htmlb:page>

</htmlb:content>

-


end of code -


by the way the code has an error when testing in the workbench saying it is missing a ) but I don't see how.

Thanks

MarkusKlein
Active Contributor
0 Kudos

Hello Chuckie,

try this BSP code for your Portalevent:


...
<bsp:portalEvent name="refreshUwlBackend" namespace="urn:com.sap.netweaver.bc.uwl.ui" />
....

The code i have posted earlier is JavaScript.

MarkusKlein
Active Contributor
0 Kudos

Hello Jose,

you could try to raise a EPCF Event from your BSP-Page.


portalFireEvent(  'urn:com.sap.netweaver.bc.uwl.ui','refreshUwlBackend');

havent tried it yet tho.

cheers,

Markus

Former Member
0 Kudos

what about refreshing the UWL list every minute?

Personalize View --> Data Properties --> Page Refresh Rage -> 1 Minute

Regards

Andreas