on 09-06-2011 7:52 AM
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
Suspended plugs can be used to pass parameters in POST method from WD Java.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.