Skip to Content
0

how to get image using custom bo? if any one knows please help me!

Dec 07, 2016 at 06:48 AM

356

avatar image
Former Member
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

6 Answers

Horst Schaude
Dec 07, 2016 at 01:17 PM
0

Hello Koteswara,

I suggest to use the DO AttachmentFolder for storing the image and mapping it to a binary object on the UI.

HTH,
Horst

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Horst,

I created attachment folder .

If you don't mind tell me how to mapping it to binary object on UI.

This answer was great help to me.

Thanks & Regards,

Koteswara Reddy C.

0
avatar image
Former Member Dec 08, 2016 at 06:27 AM
0

Hi Horst,

Thank you for reply.I am new to SAP cloud application studio.

If you don't mind! Can you just tell me the steps to create attachment folder for storing images.

Thanks & Regards,

Kreddy.

Share
10 |10000 characters needed characters left characters exceeded
Johannes Schneider Dec 08, 2016 at 03:53 PM
0

Hello Koteswara,

if you want only one picture in the UI there is another way to display the image. On the UI Designer in the ToolBox there is a Field named "Image"

Just drag and drop this to your UI. In the properties of this image you have to bind the source against a datafield of you custom BO.

This for example can be a field of datatype string. In this field you save a Link to the raw image you want to use ( Examples:

http://www.freeiconspng.com/uploads/christmas-star-png-1.png)

Have a nice day,

Johannes


toolbox.png (48.9 kB)
properties.png (16.3 kB)
Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Dec 09, 2016 at 08:56 AM
0

Hi Johannes Schneider,

Thank you for your reply.I tried,

But it's not working.

Thanksℜgards,

Kreddy.


image1.gif (30.1 kB)
Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hello Kreddy,

could you please show me the propeties of your image?

If you still have issues with it, try to set the link to the image via some absl script triggered by a button or initialization.

For me this worked perfectly fine.


Kind Regards,

Johannes

1
Former Member
Johannes Schneider

Hi Johannes Schneider,

Thanks for your reply! A very good morning.

If you don't mind Share me that absl script you used.

Thanksℜgards,

Kreddy.

0
rabbani khan Dec 12, 2016 at 05:29 AM
0

Hi Johannes Schneider,

Thank you For giving Reply to me, here i did n't get any answer

IS it possible to share the screen shots which i do easily and Give me Reply ASAP.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Kreddy,

with a new created BO/Screens i face the same issues like you. I'll give further feedback if I know more.

Kind Regards,

Johannes

1

Hi Kreddy,

in an Embedded Component this worked for me:

The properties of the image:

The properties of the image source:

The result:

uidesing.png (31.4 kB)
uidesing2.png (31.6 kB)
uidesing.png (71.5 kB)
1
rabbani khan Dec 13, 2016 at 06:25 AM
0

hi Johannes Schneider,

which field you took in bo and which data type you mentioned in Bo

Please give me bo Screen shot

Show 5 Share
10 |10000 characters needed characters left characters exceeded

Hi rabbani khan,

it in fact doesnt matter, it only has to be long enough to save the whole link in it.

Some script which could be executed via a button.

this.imgsrc = "http://www.freeiconspng.com/uploads/christmas-star-png-1.png";

Btw, could you trry this:

  1. Add an indicator type element to your BO with default value = false
  2. Bind the image visibillity to the indicator element you added
  3. Add to the code above that the indicator of the visibillity = true after setting the link
this.imgsrc = "http://www.freeiconspng.com/uploads/christmas-star-png-1.png";

this.indicator = true;

Maybe this solves the problem, could be an UI behavior of SAP C4C

Kind Regards,

Johannes

element.png (1.7 kB)
0

Hi again,

i checked if it has something to do with the visibillity on the UI and it doesnt matter too.

Kinf Regards,

Johannes

0

HI Johannes Schneider,

Thank You For Giving Awesome Explanation To US.

Is It Possible to take Image in Our Local System? If It's Possible How Should I Take

0

Hi rabbani khan,

it doesn't seem that there is a way to do so when using my solution. If you want to keep this way i would recommend using puush.me for manually uploading files and getting a link to them.

If you want files from your pc showing on the UI i would recommend using the solution of Horst.

Kind Regards,

Johannes

0
Former Member
Johannes Schneider

Hi Johannes ,

I solved that iisue.

Thank you for your help.

Now I am able to get all the Secure Images(http) from web.

Thanks & Regards,

Koteswara Reddy C.

0