on 05-24-2011 7:21 AM
Hi experts,
I am attempting to insert an image into a view at runtime, using lines of code.
I know that this code must be present in the WDDOMODIFYVIEW method of that particular view.
However I am not sure about the lines of code which can do this. Can anyone please help me out with this........
Thanks in advance,
Adithya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI ,
Try somthing like this.
DATA lo_image type ref to cl_wd_image.
lo_image ?= view->get_element( id = 'ID of the image UI element').
lo_image->set_source( 'mime_object_name').
Make sure you write the code in WDDOMODIFY view and also make sure to add a Image UI element on the view.
Thanks,
Aditya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.