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

timer in webdynpro

Former Member
0 Likes
658

hi i want code for running timer in webdynpro

it should be in hh:mm:ss

format

thank u

View Entire Topic
Former Member
0 Likes

Hi Vani,

Are you talking about the TimedTrigger control

Maybe you can try the following code:


public static void wdDoModifyView(IPrivateView3 wdThis, IPrivateView3.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
  {
    //@@begin wdDoModifyView
	IWDTimedTrigger timeTriggered = (IWDTimedTrigger)view.getElement("TimeTriggered");
	if(wdContext.currentContextElement().getContextAttribute()){
       if(i<10){
    		timeTriggered.setEnabled(false);   	
       }
       }
    //@@end
  }

You also get an action with this which gets called per the delay time.Where your can write the code.

Regards

Amit