on 06-08-2005 10:00 AM
Hi all,
We are using standard WebDynpro applications (as an example Leave Request as part of ESS).
Are there any functionalities in a standard WebDynpro to set a specific field initially (default value for a dropdown list for example) via the url?
To be more concrete:
On a specific portal page I would like to call the Leave Request application with the Leave Type set to the parameter I passed via this url (e.g. http://mywasserver:50000/webdynpro/dispatcher/sap.com/ess~lea/leaveRequest&leavetype=Exceptional%20L...
Any thoughts are welcome.
Regards,
Noel
In WebDynPro
we have wdWebContextAdapter to read the URL Parameter
WDWebContextAdapter web = null;
String upid = web.getWebContextAdapter().getRequestParameter("LeaveType");
so u can read that paramter Value and set it as selected in your dropDown
by saying
wdContext.currentContextElement.set<ValueAttributeName>>(<<Value u retrived>>);
Wishes
Krishna kanth
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
At the default inplug of your interface view create a parameter that you need to access for e.g LeaveType in this case.
The variable will recieve the value automatically from the url.
Set the value in the context variable of the component controller and then access it from the view.
Hope this link would be helpful
Message was edited by: Noufal Kareem
This feature (passing URL-parameter-values to startup plug event handlers in component interface view controllers) is described in a special sample application:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on inter-application navigation.htm
The Portal Scenario is described here: /people/jochen.guertler/blog/2004/11/23/web-dynpro-best-practices-how-to-navigate-between-different-web-dynpro-applications
Regards, Bertram
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.