cancel
Showing results for 
Search instead for 
Did you mean: 

image as a background of a view

Former Member
0 Kudos

hi friends,

everyone would have come up with using the image Uielement in a webdynpro application..Did anyone of you try to use the image as the background of a view..? If u have a solution for the same please reply to this thread..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

Check this URL https://www.sdn.sap.com/irj/sdn/appserver-forums

i think you get an idea for your solution

Regards

Chandran

Former Member
0 Kudos

thank u very much chandran..but i cant find any solution to my query through the link which u sent...

Former Member
0 Kudos

Hi,

You can try this out (I haven't tried this, but theoretically this should be it):

1. Open the themes folder under "<Drive name>:\sap\<instance name>\JC<>\j2ee\cluster\server0\temp\webdynpro\web\sap.com\tcwddispwda\global\SSR\themes".

2. Select a theme that you want to modify (let's say sap_chrome).

3. Open the css file (let's say ur_6.9_ie6.css) in edit mode. You can find the css files in the "ur" folder.

4. The first line of the css file contains the styles for a class called "urBodyStd".

5. Add the following to the styles of this class:

background-image:url('fileName.extension');

6. Save and restart the server.

7. Use the "sap-cssurl" URL parameter for your application and pass the URL of this css that you have just modified. Note that this URL will be of the format

http://<server name>:<port>/webdynpro/resources/sap.com/tc~wd~dispwda/global/SSR/themes/<theme name>/ur/<cssFileName>

Regards,

Satyajit.

Former Member
0 Kudos

hi,

Have a look at this thread :

Thanks and Regards

Pradeep Bhojak

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

I think you cannot directly set the image as a background for the view.

Instead create a view container with Gridlayout and colcount 1.

Add a image UI Element and set the height and width in the layout data and not for Image UI element.

Former Member
0 Kudos

hi shriram,

in tat case u cant embed any UI elements on the image..understood..

i am asking about the background.

Former Member
0 Kudos

Hi,

Then i dont think that is possible, because the background color of the view is a theme in the webdynpro.

If you try to change the theme, you can change the colour.

i am not sure if you can set the theme to a image.

Even if you can then every view will have this image as background.