cancel
Showing results for 
Search instead for 
Did you mean: 

Something about OBN

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I got it ,. Thx , All!