cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Timer doesnt Update on Slipstream

jmoeller
Explorer
0 Kudos
627

Hey guys,

we are using a cl_gui_timer to refresh dynpros every 2 minutes.

This works perfectly fine in the SapGui as well as in the WebGui.

But for some reason, the timer doesnt update when we start it with the Slipstream Engine.

Does anybody had similiar issues and can help out?

Accepted Solutions (0)

Answers (2)

Answers (2)

kmagons
Product and Topic Expert
Product and Topic Expert

Hi Julian,

Slipstream Engine does not feature any WebSockets API based push channel communication implementations currently. To receive a new state from the backend, the Slipstream Engine client must pull the server for updates. The feature request has been already registered.

You may be able to work around the limitation by leveraging the SAP Screen Personas Scripting engine and the RFC feature to create a function that utilises a timer to query the backend for updates. Additionally, it may be possible to implement a SAP Screen Personas script that leverages the WebSockets API directly to listen for server messages.

Another possible workaround may be to leverage a GuiHtmlViewer instance that features a content from the same domain that is dynamically updated using WebSockets API. It should be possible to implement a SAP Screen Personas script that listens for a GuiHtmlViewer iframe content update as long as domains are the same to comply with the CORS.

However, such approaches to work around the limitation are generally not recommended and cannot be supported by the SAP Screen Personas team.

Thank you very much!

Best regards,

Krists Magons

jmoeller
Explorer
0 Kudos

Hi Krists,
thanks for the fast reply.

Are there already some tutorials or showcases how to use SP with WebSockets API?

I'm not quit sure how I would start this topic.

Best regards,

Julian

kmagons
Product and Topic Expert
Product and Topic Expert
0 Kudos

Please try the following simple steps:

- Render the DYNPRO screen that features cl_gui_timer based updates in Slipstream Engine

- Wait the timeout interval and simply resize the Slipstream Engine browser window to 'manually' request a new screen state

Do you see the update rendered?

MartinSommer
Participant
0 Kudos

Dear Krists Magons,

can you kindly provide a link to the feature request? We are eagerly waiting for support of function module SAPGUI_PROGRESS_INDICATOR in slipstream engine 😎

former_member184223
Participant
0 Kudos

Dear Jullion,

In SAP GUI -> CL_GUI_TIMER is working fine to update data in container displayed using class cl_dd_document but not in SAP WEB GUI , In SAP Web GUI it is not refreshing the data once time ends as defined for the timer but in SAP GUI its working fine.Kindly advise do we need to make some add on code in ABAP to fix this issue in Web GUI.

Kindly advise.

Thanks

Gaurav