on 06-03-2008 5:56 PM
Hello Friends,
In my component controller a method has created twice and it showing a error like duplicate method and when am trying to delete it, it doesn't delete.can anybody help me how do i delete it.
Hi,
Please note that when you are deleting a method, select "All" option but not "Yes" option.
Because, Yes option will delete method from Methods tab but not the implementation part, whereas if u press All... it will delete the method from Methods tab and the corrosponding implementation of the method will get commented and this commented code you can find at the end of your implimentation....
Regards,
S.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey guys get rid of dat..revert back to my backup..Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Priyaranjan
Could you clarify if you have created this method on Methods tab in component controller or you use some other way to create it?
And please provide the code snippet of both methods in your component controller. I think it may help to solve your problem.
Regards
Ivan Dulko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
public void refresh( )
{
//@@begin refresh()
IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
try
{
wdContext.currentGlobalTypesElement().setPageHeader("");
wdContext.nodeGlobal_AP_Header().invalidate();
wdContext.nodeGlobal_AP_Item().invalidate();
wdContext.nodeLocal_AP_ItemDetail().invalidate();
wdContext.nodeLocal_AP_ItemMoreDet().invalidate();
wdContext.nodeLocal_UserAction().invalidate();
wdContext.nodeFileAttachments().invalidate();
//Invalidates the Node to clear the previously selected Document date and company code
wdContext.nodeLocal_PayTerm_F4().invalidate();
}
catch (Exception e)
{
msgMgr.reportException(e.getMessage(),false);
logger.errorT("Error in method refresh");
}
public void refresh( )
{
//@@begin refresh()
//@@end
}
And the second (Bold) refresh method is duplicated and there is only one method in my method tab...its not removing by just remove the tab..so could u plz help me out
Open your View / Component Controller and click on the tab "Methods". Select the method you want to delete and right click to see the option "Delete"
Cheers,
~kranthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.