on 2007 Mar 29 4:20 PM
Hi All,
Can I use GOTO statement in Webdynpro...? if so, what is the syntax...
I have written a a block of code in WddomodifyView(), which I want to access from another method... as other methods do not support VIEW class....
Pls suggest...
Regards/Guru
Request clarification before answering.
Java doesn't use GOTO statements. You could write a custom method at the end of the Web DynPro code and have the wdDoModifyView and whatever other method you are using both call it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I my custom method I can't use VIEW.....
I have written a custom method as follows:
public void tablecount()
{
IPrivateAuditRepCompView.ICatlistElement ctEl;
for(int i=0;i<wdContext.nodeCatlist().size();i++)
{
ctEl=wdContext.nodeCatlist().getCatlistElementAt(i);
String catName=ctEl.getCatname();
String subCat=ctEl.getSubcatnames();
StringTokenizer st1=new StringTokenizer(subCat,",");
int numTable=st1.countTokens();
for(int j=0;j<numTable;j++)
{
IWDTable table=(IWDTable)view.getElement("Table"+j);
table.setVisible(WDVisibility.VISIBLE);
}
}
}
Now, I want to call this method in Wdmodify....
Hi kumara,
As per your code you just need to know the value of numTable I dont know whether this is the perfect method or not but I will suggest you as soon as you execute the BAPI which will return you these values store it in a global STATIC variable say "a" and then use this value in your static method for looping
<b>Do reward points if it works</b>
Regards
Sid
User | Count |
---|---|
77 | |
30 | |
8 | |
8 | |
7 | |
7 | |
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.