on 04-13-2008 8:06 AM
Hi,
I want to create a method of my own and i want to call this method in wdDoModifyView().
I want the method to be of public static type.
I ve written the method in the "others" as
public static void myMethod(){
//code
//code
}
I want to write a print statement in this method so that i can make sure that this method is getting called in the wdDoModifyView().Can anyone tell me how to proceed?
Regards,
Padmalatha.K
No need to make it public. Just declare the parameters you need to pass from wdDoModifyView() in that method.
Armin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
public static void wdDoModifyView
(
IPrivate<View> wdThis,
IPrivate<View>.IContextNode wdContext,
com.sap.tc.webdynpro.progmodel.api.IWDView view,
boolean firstTime
)
{
myMethod(wdThis, wdContext, view);
}
//@@begin others
private static void myMethod
(
IPrivate<View> wdThis,
IPrivate<View>.IContextNode wdContext,
com.sap.tc.webdynpro.progmodel.api.IWDView view
)
{
...
}
//@@end
Armin
Hi,
ThanQ for the replies.............
But i want to write a print statement so that i can make sure that this method is getting called in wdDoModifyView()
Just as we write..........
wdComponentAPI.getMessageManager.reportSuccess("Success"); in wdDoInit() method
or
IWDMessageManager msgMgr = wdThis.wdGetAPI().getComponent().getMessageManager();
msgMgr.reportSuccess("Success"); in wdDoModifyView().
How should i write the print statement in myMethod() in "Others" . I tried with System.out.println("Success");. It is not working.
Please suggest me.
Regards,
Padmalatha.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
26 | |
10 | |
9 | |
7 | |
6 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.