cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameters to URL Iview from Webdynpro Java

Former Member
0 Kudos

Hi

I have a URL Iview and a Webdynpro Java component. I need to pass 3 parameters (for ex : Name, Age, Country) from the Webdynpro Component to the URL Iview.

Please sugget me the approach to implement this.

Thanks and Regards,

Sayan Ghosh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Suspended plugs can be used to pass parameters in POST method from WD Java.

Former Member
0 Kudos

I can only propose to use iFrame control within DC iView and set it's source url as you desired,

with all possible params.

other way is really bad :

make parameters of iView of type "User Information":

Doc:

Select this option if you want the parameter value to be based on a dynamic query to certain logical attributes used by the Java application API of the User Management Engine (UME). For more information, see the Attributes Supported by the 'User Information' and 'System Information' Data Types section below.

http://help.sap.com/saphelp_nw04/helpdata/en/8d/8e0c7e477e4239a7ee288d7846a0bb/frameset.htm

so you can get some never used user attributes (from UME!) to URL.

values of this params will be get from user information,

so assign this information from your DC to User, call iView, and clear after call iView.

Former Member
0 Kudos

Dear Sayan

Please check this code, it uses the GET to obtain the URL parameters.

To change the parameters you just need to use the SET instead.


// Store full list of parameters with the inital request
Enumeration parameterNames = WDProtocolAdapter.getProtocolAdapter().getRequestObject().getParameterNames();
	while (parameterNames.hasMoreElements()) { 
		String parameterName = (String) parameterNames.nextElement();
		if (parameterName.equals("eventQueue"))
		continue;
		String values[] = WDProtocolAdapter.getProtocolAdapter(). getRequestObject().getParameterValues(parameterName);

		for (int i = 0; i < values.length; i++) {
			IPublicParametersComp.ISourceElement parameter =
			wdContext.nodeSource().createSourceElement();
			parameter.setName(parameterName);
			parameter.setValue(values<i>);
			wdContext.nodeSource().addElement(parameter);
		}
}	

Kindest Regards

/Ricardo Quintas