cancel
Showing results for 
Search instead for 
Did you mean: 

How to Stop the timer in the TimedTrigger UI element when an event occurs

Former Member
0 Kudos

Hi all

I have a webdynpro View where i have many UI elements(which supports an event) along with TimedTrigger UI element.

Now my requirement , i want to check at single line if any event happens in the View then i want to stop the timer in the TimedTrigger UI element.

can you please provide any peace of code related to this??

Thanks

Bindu

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bindu,

From help.sap.com:

http://help.sap.com/saphelp_nw70/helpdata/EN/03/7c6b40dde0980ae10000000a155106/frameset.htm

To prevent events being triggered by UI element TimedTrigger, proceed as follows:

1. Disable the action that is bound to the UI elementu2019s onAction property.

Can be done as:

wdThis.wdGet<Your_TimedTrigger_action>Action().setEnabled(false);

2. Set the value of the delay to 0 seconds

As suggested in previous post to this thread.

3. Disable UI element TimedTrigger

Create a boolean type of context attribute and bind it to the "enabled" property of the Timed Trigger. Set its value to false to disable the timed trigger.

Regards,

Alka.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

create a TimedTrigger UI and a context attribute called delay with data type as integer

and bind it to the delay property of the TimedTrigger , then create a action method and

set the delay as 0 , wdcontext.currentcoontextelement.setDelay(0). this would stop the

timedtrigger. and you can set the wdcontext.currentcoontextelement.setDelay(5) // to the 5 secs

where you can also set the time . with respect to the conditions you require.