on 08-07-2015 11:05 AM
Hallo everybody,
i want to create a HTML window in the MM03 and combine it with a switch case function. That i have a picture who change by check of the material number.
Switch (check this number)
case (NR.XY)
show in HTML = this picture;
break;
case (Nr.ZB)
show in HTML = another picture;
break;
default:
show in HTML = empty
I try a lot but it seems like my base idea is wrong.
Is something like this possible in that way or know anybody another way how i can create something like this?
with kind regards
I think your idea is fine in principle. So long as you have a URL for your image data you should be able to display it in an HTML control. You can set the control's "url" property if the whole content you want to display comes from the same URL, or you can set the "content" property if you need to wrap the image URL in further HTML to display it properly.
So:
session.findById("HTML control").url = "http://path/to/image/data";
or:
session.findById("HTML control").content = "<html><head>...</head><body>...</body></html>";
Does that help?
Steve.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
also, if you don't want to have HTMl control, switch will even work for image control.
session.findbyid("image_control_id").url = 'SAPR3://GUID';
You can upload some images and make then public from personas admin transaction.
Then get the GUID (resource maintenance screen /personas/resources) of your uploaded images from admin into your script.
Remember, 'SAPR3://' has to be there...
Regards,
Sushant
Hello everybody,
we've an issue on dynamic images changing in "MM03" transaction (see image below).
TEST1: HTML CONTROL
Visualize "shopping basket" image on HTML viewer control box.
where:
TEST2: IMAGE CONTROL
Change dynamically "shopping basket" image with "head" image
where:
SAPR3://020D94509F7F1ED5A58497EB39272161 is the "head" GUID
In Test1 or Test2 no images changing happens.
Images are sets as "Public" on /PERSONAS/RESOURCES personas admin transaction.
Are there some customizing steps for this issues?
Thanks & Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.