on 01-31-2008 11:47 AM
Hi all,
i was wondering if it is possible to insert a url to an image field so that the respective image will appear each time the user inserts a specific article in an ABAP program.
Or a respective sollution maybe..
Is it possible to pass a url through a program to the form??
Thank you in advance !
Hi all,
i wanted to inform the ones still intrested for an answer that we have achieved this by using FormCalc.
The script goes like these:
$.value.#image.href = $record.TABLE[0].FIELD
, where table is your structure and field is the field where i pass my exact URL.
Thaank you all for participating
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear All
I have a requirement to display the image after calling my web service program. Web service is fine and am returning the xstring with image data but how do i convert it to image in abap web service. Please assists me i really need this requirement to work because its urgent.
Regards
William Mutero
Not answered
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
in my application it's the same behaviour. I see the image in the PDF Preview but not if I run the application. Did you solved the problem?
Best regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think your functionality can be achieved with Image Field Object.
These image fields are standard object in the libraray.
Please check the ALD help for detail.
Cheers
Satya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I hope this post will definitely help you to solve your problem.
I am also attaching the sample java script with this post.
Steps to be followed
1. You have to use ImageField for dynamically displaying images
2. You have to write the following code in the initialise event of the image field
this.value.image.href = <URLof the Image>;
Dynamically you can populate this URL from the context. This URL can be a hidden field on the form and you can access that through java script.
Javascript sample code
if condition 1 -
this.value.image.href = "
<MachineName>
RED.GIF";
else
this.value.image.href = "
<MachineName>
GREEN.GIF";
Note : This is just the code template not complete code.
Cheers
Satya
Well,
i pass the exact url i want from my abap program into a field of the structure i use at the form.
Then, i use the following javascript :
this.value.image.href = URL.rawValue;
But still, the image does not appear although it has the proper url..
Any suggestions ?
EDIT: As far as i can see the PDF Preview tab (in the designer) shows me the image, but when i run my program i cannot view it neither after printing or print preview..
Now We are at the last stage of solving the issue. This will work fine, just missing some minor step. First of all how are u sure that URL has correct.
Can you please hard code the URL in this.value.image.href
for example
this.value.image.href = " the URL u r passing";
If this is working then there is a problem in accessing the URL value.
Cheers
Satya
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
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.