cancel
Showing results for 
Search instead for 
Did you mean: 

How to upload company logo in webdynpro application

Former Member
0 Kudos

Hi,

I need to upload the company logo in the View of a Webdynpro application.

Can someone give me the steps for the same to be done?

Thanks,

Kundan

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

solved

former_member192434
Active Contributor
0 Kudos

Hi Kundan,

follow the below steps;

1. create a webdynpro application.

2. Insert a Image UI element to web dynpro view.

3. Put the image inside Src>mimes>component. location of your project structrue.

4. now go to property of image UI element. and copy the image name and put it there alt and source. property

5. deploye ur application

6. creat ivew out this application.

Hope will solve your problem.

Thanks

Former Member
0 Kudos

Hi kundan,

Store the images in the MIME Directory.

-> Declare a simple type data type in the Java Dictionary.

->Give values and description in the enumeration type.

-> Declare a value attribute of Simple type in View Controller.

-> Add a image UI Element and bind it with two attributes(Ctx1 and Ctx2).

Use the code below to get the name of image and further set it :

String vehicleType = wdThis.wdGetContext().currentContextElement().getCtx1();

wdThis.wdGetContext().currentContextElement().setCtx2(vehicleType+ ".jpg");

Go through the [link|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0e599cc-2862-2b10-54a9-dcf1376b52d7]

Regards,

srikanth

Former Member
0 Kudos

Hi srikanth,

. I am not getting the option once i Right click on the webdynpro component-->CREATE->Mime Object->Import.

Regards,

srikanth

Former Member
0 Kudos

Hi srikanth,

. I am not getting the option once i Right click on the webdynpro component-->CREATE->Mime Object->Import.

Regards,

kundan

Former Member
0 Kudos

Hi kundan,

1)Save the image in .jpeg or .bmp format.

2)Copy the image and Navigate to the Navigator tab there expand the project>src>mimes>components>under ur component and paste here.

3)create a image ui element and in the source property of element paste the name of the image.

4)Deploy and run the application.

Regards,

srikanth