cancel
Showing results for 
Search instead for 
Did you mean: 

Which Event is fired when Applet.refresh() is called

Former Member
0 Kudos

Hi,

I have a SAP mXII applet OrderList.

When the applet refresh is completed by calling document.OrderList.refresh();

I want to update a UI parameter.

Can you please tell which event is fired when the refresh completes.

Or suggest a way to achieve it?

Thanks,

Arti

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Manoj,

Yes, I am refreshing only the grid, not the complete page.

The usecase is like, the user selects something from a dropdown and clicks a Button Search.

On click of the button, the query parameters are set in the template and Applet.refresh() is called to update the values on grid.

But the time it takes to update the grid with the newly retrieved values is clearly observed even

after the associated event completes, resulting in the parameter to be set long before it is required to.

Hope this clears your doubt.

Thanks,

Arti

Former Member
0 Kudos

Hi,

Some additional information, there are other methods that differ from the refresh() method for updating a grid (and other applet types):

update<appletType>(true): reruns the query, also updates any changes to the grid, chart, etc. applet's display elements

update<appletType(false): only updates changes made to the applet's display elements

refresh(): updates both query and display changes, but with an important difference - if the query is time-based (for example, a tag query), this method will updated the start and end dates of the query based on the current time, less the duration/duration units.

Kind Regards,

Diana Hoppe

Former Member
0 Kudos

Hi,

Thanks for the response.

Update event is in place.

Just that even after the update event completes, data is not rendered on screen.

there is a time difference between the update event completion and screen updating.

and it is more prevalent in IE 7.

My usecase wants the parameter to be updated only after screen is rendered.

Thanks,

Arti

Former Member
0 Kudos

Hi Arti,

You want to update a parameter after update/refresh event of grid is that right?

I got confused with screen as per my understanding you are going to refresh grid only not the irpt page.

can you please elaborate more.

Regards,

Manoj Bilthare

Former Member
0 Kudos

Hi Arti,

I will suggest following solution

Please write your function on update event. when you refresh your grid update event is called.

<PARAM NAME="UpdateEvent" VALUE="Test">

Test will be your function in which you can fetch value for your UI field from grid.

Hope this helps!!!!

Regards,

manoj Bilthare