Skip to Content

Load Event and Automatic Dynpro Refresh

Hi Gurus,

I'm implementing a web dynpro with some traffic lights icons, when I load for the first time this dynpro I've to read from a custom table the status of my traffic lights, for example yellow for a process that is running in that moment or green for a completed process, for example if I open the dynpro and the traffic light of a running programm will be yellow, after 5 seconds the process ends. I have to automatically update the status of my traffic light to green and repeat this operation for example every 10 seconds and I can't to associate the refresh to any user event.

I should implement a method called the first time I open the dynpro and another one automatically called every 10 seconds for example, but user have to use the dynpro normally.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Nov 02, 2015 at 03:30 AM

    Hi Antonio,

    1. create 2 methods.

    2. call the first method in standard method WDMODIFYVIEW  of view with condition

        if  FIRST_TIME = 'X'.

    3. create a TIMEDTRIGGER element in view.give the value '10' ( time in sec) to the DELAY property.

    4. Create a On Action event for it and call the second method in it.

              So first method trigger one time and second method trigger for every 10 seconds.

    Add comment
    10|10000 characters needed characters exceeded