cancel
Showing results for 
Search instead for 
Did you mean: 

SUP 2.0 Workflow App - working with images

former_member185875
Contributor
0 Kudos

Dear sup developer,

I am doing a workflow application in SUP Workspace using webservices as data source for mbo.

Now I need to show a image, which is coming as a URL from webservice.

is it possible? could you please guide me to do it.

and also

If you have any sample document to work with images or attachment in workflow app. please share to me.

Regards,

Lakshman Balanagu.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member185875
Contributor
0 Kudos

Dear sup developer,

I did some analysis and I find a way to do it.

But still I need your help to complete it.

I found a custom.js file in "Generated Workflow code" folder.

where I can write Image URL to MIME conversion logic

but I need to get URL from workflow app from key (MBO operation return keys) and also I need to set the value to key (attachment UI element). I do not have any API to do it.

Could you please help me.

Lakshman Balnagu

Edited by: lakshman balanagu on Aug 19, 2011 7:57 PM

Former Member
0 Kudos

Hello Iak,

To insert images into the WF, u should insert this code into your HTML,

htmlOutput += '<img src="./images/' + "avatar.png" + '" class="ui-li-thumb">'; or img src="./images/' + "avatar.png" ;

All your images shall be inside the HTML Folder/images {maybe you shall create this folder}

There are some examples using images, like Time-Off Approval and Inventory-Lookup.

This link help you with more information: http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/f0118416-5062-2e10-9e93-8cca742da350 [original link is broken]

Thx,

Fernando.

Former Member
0 Kudos

HI Everybody

I am too facing the same image problem. I have followed some example which is available in the url http://www.sdn.sap.com/irj/sdn/index?rid=/webcontent/uuid/f0118416-5062-2e10-9e93-8cca742da350 [original link is broken] , and i am also implementing the same but image is not displaying for me(this is code which iam using in my project

img src="./images/default.png" ).

Plz can anyone suggest me what will be the eaxct syntax for displaying the images in listview.When am using the above syntax in html page it is displaying without any problem but same syntax when am using in javascript to display images it seems to have problem getting the image path properly.Plz suggest what will be the exact syntax while diaplaying images in listview through javascript .

Thanks and Regards

Siva.