on 02-01-2016 12:53 PM
Hi all, i am working image upload ui element i am getting image in xstring format can i get the file path of uploaded image in web dynpro, if possible means kindly give solutions. Now iin file name attribute am getting the exact file name only not full path.
Hi Nandha,
Hope you are doing well!
Could you please check if the solution works. If no, please inform and if yes, close the thread by marking the right answer.
Regards
Mohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, Please try below-
Get reference of the UI element, let us say your UI element name is 'ABC' then in the view method you may write below code-
DATA: lr_image TYPE REF TO CL_WD_IMAGE. "Ref of the UI element
lr_image ?= wd_this->get_element( ID = 'ABC'). "Get the specific view UI element (image in ur case)
* Get Path
DATA: lv_path TYPE string.
lv_path = lr_image->get_source( ).
I hope lv_path contains fully classified file name (name and path).
Please let me know of the feedback.
Thanks
Mohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.