cancel
Showing results for 
Search instead for 
Did you mean: 

Image with a Link to an URL

Former Member
0 Kudos

Hi,

I have an easy question. I would like to have a little question mark-image on my view. And this image has an link to an url. So I would like to push this image, and a new browser-window opens.

I only found the Layout-element "LinkToUrl". But with this element I don't have an image.

How does it works in Webdynpro? In HTML it is very easy...

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

I have changed the Layout type to gridLayout, but I have to change the Layout Data to "GridData". And this Layout Data still has the type FlowData, if I change the Layout Type to Grid Layout

gill367
Active Contributor
0 Kudos

Hi,

Change the layout to grid type and then scroll down. You will find "layout[GridLayout]" set col count here to the number equal to total number of buttons + 2.

Then click on link and in the properties scroll down and set col span = 2.

and hAlign = right.

this will do the required.

and the flowdata is coming in your container's properties because this container is also present in one of the transparent container which is having layout as flow layout.

Regards,

Sarbjeet.

Former Member
0 Kudos

Ok now it works. But I have the image only local. Do I'm thinking right, that the image must be online (http://xyz.com/image123.jpg)? Because if I deploy the Application, a local image would not be deployed too?

And I have another Question. The LinkToUrl-Element is inside a container with some buttons. Now the LinkToUrl-Element is displayed next to the buttons, but I want this element on the right. How can I position the elements (Buttons on the left, LinkToUrl on the right)?

Edited by: stefan1983 on Jan 4, 2010 11:11 AM

gill367
Active Contributor
0 Kudos

HI put your image in src>mimes>components--><component name> and then image willl be available always. Then the image is not required to be online.

and use padding to move the link away from buttons. or use grid layout to easily align it according to the requirement.

In the properties of the container, you can change the layout type to grid layout and then use colspan and other properties to align the elements properly.

Thanks,

sarbjeet

Former Member
0 Kudos

Hi Stefan,

You can do this in WebDynpro with an equal ease. In The Link To URL, there are properties, viz, Image Source and Image Alt. Save the images in the mime folder and give the values of Image Alt and Inage Source. You will see the image along with the icon.

I hope it helps you. I f you are looking for something else, please revert.

Cheers!!!!

Umang

Former Member
0 Kudos

Of course you can have an image in a LinkToURL. Just set the "imageSource" property accordingly (image file name or icon alias or URL).

Armin

Former Member
0 Kudos

Hello,

You can try using the IFrame element I guess. Basically to hold the html containing the image with a link.

Hope that helps!

Regards,

Jan