on 2016 Nov 21 9:52 AM
Hi,
We have a requirement of retrieving the URL parameter from the WPMF framework. In the activity maintenance we have the URL defined for the activity in the Class/Program section as
%PROTOCOL%://%SERVER%:%PORT%/com/test/mes/pod/transfer/web/inventorytransfer.jsf?ACTIVITY_ID=MDT_INV_TRANSFER&PRINTER=XRXGWY075
Now from the java code we need to retrieve the value associated with the PRINTER. Is there any way within the WPMF framework which will provide us the same like we do in standard jsp as request.getParamater("PRINTER")
Thanks
Anirban
Request clarification before answering.
Hi Anirban,
I would try the following code:
import javax.faces.context.ExternalContext;
import java.util.Map;
import com.sap.me.wpmf.util.FacesUtility;
ExternalContext eContext = FacesUtility.getExternalContext();
Map<String, String> map = eContext.getRequestParameterMap();
String printer = map.get("PRINTER");
Oksana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.