on 08-16-2009 11:40 AM
hi ,
im working on webdynpro. when the agent executes the workitem it has to open one form designed with webdynpro screens. here i have to get the workitem id from workitem and basing on the workitem id , i will get other data , that i have to dispaly in the lay out of a view..
how to pass this work item id to my view and how to display this...?
Raghu
Hi,
Application parameters can be used for this accessed directly only in the Window. Follow these steps;
1. get the application url using the following code,
2. Now pass the required parameter ( i.e in this case Workitem id ) to this URL
3. In your webdybpro applicatio, Goto Application parameters and create a parameter for workitem id with the same name as used in the URL.
4. In the HANDLEDEFAULT method of the window, create Importing parameters with same names as that of your application parameter.
5. Now this variable will contain your workitem id.
If you want to acess the variable in your views;
2. create a attribute in the Component Controller( Component Controller->Attributes Tab; mark it as public )
3. Now in the HANDLEDEFAULT method of the window, assign your application parameter values to the component controller attributes directly as shown below,
wd_comp_controller->g_wrkitm = par_wrkitm
Regards,
RadhikaData: my_url TYPE string.
*Get the URL of the Application
CALL METHOD cl_wd_utilities=>construct_wd_url
EXPORTING
application_name = 'ZWDRC_NEW_APP'
IMPORTING
out_absolute_url = my_url.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From where will the agent be opening the workitem? UWL? if fromt the UWL then you can get the http parameter wi_id
Thanks,
GLM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.