Skip to Content
0
Jan 23, 2009 at 10:27 AM

How to simulate button click in the WdDoInit

93 Views

Hi Expert,

I would like to simulate the "buttton click" in the wdDoInit ?

I have this action :

public void onActionRetour(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

//@@begin onActionRetour(ServerEvent)

wdThis

.wdGetWDCompInterfaceWinInterfaceViewController()

.wdFirePlugTo_Menu(

wdContext.currentS9521Element().getZnigend(),

1);

//@@end

}

When I excute it by clicking on the button, it's Ok, but if I want execute it into the wddoInit method, I have an error : "com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Instance of interface view controller WDCompInterfaceWinInterfaceView does not exist. "

Could you help me ?

best regards

Tony

Edited by: Tony MORELLET on Jan 23, 2009 11:27 AM