cancel
Showing results for 
Search instead for 
Did you mean: 

How to update UI from backend

Former Member
0 Kudos

Hi all,

I would like to implement a WebDynpro-UI which should be updated automatically by some backend-process. No user-interaction should be neccessary. Is there any possibilty to realize such a scenario?

Thanks for each hint,

Christoph

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Which UI you need to be updated..

Place this background process in one method , and call it in wdDoInit() method.

So it'll get updated when init methos is called..

Remember for a view, wdDoinit() method called only once for a Roundtrip.

Regards

LakshmiNarayana

Former Member
0 Kudos

Hi,

thanks for this hint. But it doesn't meet my question completely. When calling a backgound process in wdDoInit(), this process ouf course could poll at regular intervals for new data. But this has some disadvantage: When the UI runs on several machines, all these machines will ask my backend-process for new data at regular intervals. I would like instead that the backend-process (located on the server) informs the running sessions about new data. If I'd had a fat client this could be performed e.g. using RMI. But I think this is not applicable for a Web-UI.

Regards,

Christoph

Former Member
0 Kudos

Hi,

To get data into WebDynpro UI from backend, we need to call.

Declare a method in ComponentController which calls the background process..

If you keep the method call in ComponentController, we can share this method

among other views..

wdThis.wdGet<Component ControllerName>Controller().<methodName>

Regarrds

LakshmiNarayana

Answers (2)

Answers (2)

Former Member
0 Kudos

If available in your release, you could use the MessageBasedTrigger UI element. Or if polling is an option, you can use TimedTrigger.

Armin

Former Member
0 Kudos

Hi,

Try with Timer control in WD

Regards

Ayyapparaj