on 04-24-2009 4:29 AM
Hi , All
I want to navigate to target iview from a WD iview by OBN,My SAP NetWeaver version is 7.11 .
I added a LinkToAction in the view layout, then code it :
boolean isPost = false;
IOBNService obnService = (IOBNService) WDPortalUtils
.getServiceReference(IOBNService.KEY);
OBNFactory obnFactory = obnService.getObjectsFactory();
// Create an IOBNMetadata object for the business object and operation
IOBNMetadata obnMD = null;
obnMD = obnFactory.createOBNMetadata("myBO", "", "myOp", WDClientUser
.getCurrentUser().getSAPUser());
String paramName = "parameterName";
String paramValue = "parameterValue";
try {
IOBNParameterData myParam = obnFactory
.createOBNParameterData(paramValue);
// Add parameter to OBN metadata
obnMD.setParameter(paramName, myParam);
} catch (OBNException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
// Get the OBN URL for the navigtaion
String obnUrl = obnMD.getOBNUrl(false);
// trigger the link
WDPortalNavigation.navigateAbsolute(obnUrl,
WDPortalNavigationMode.SHOW_INPLACE, null, null,
WDPortalNavigationHistoryMode.NO_HISTORY, null, null, obnMD
.getOBNUrlParametersString(), null, isPost, true);
But i found that the variable obnFactory do not have the method createOBNMetadata() , So Could anyone tell me how to create the object of type IOBNMetadata ? And could give me the URL of java docs which contains the description of IOBNService class?
I got it ,. Thx , All!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.