Skip to Content
avatar image
Former Member

how to add images in a table in web dynpro

how can i add an image in a table at some coordinates? the table has data from BAPI'S and i need to put some images in all the rows based on the data there...how to go about it?

thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 22, 2005 at 03:55 PM

    Hi Kamal,

    You want to display Images in one of the table columns.Is that your question ?

    If so , you can do the following.

    1. Insert Column in the webdynpro table.

    2. Insert TablecellEditor and select Image from the list.

    3. Bind the Source and Alt properties of the Image .

    You can change the bindings at runtime so that depending uopn the result you can change the image.

    Regards,

    Anilkumar

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      No, you don't change the <i>binding </i>at runtime. The displayed image is determined by the content of the corresponding <i>element </i>in the table's data source node.

      Armin

  • avatar image
    Former Member
    May 24, 2007 at 05:53 PM

    Greetings,

    Just to clarify, store the images to:

    <YourWebDynproProjectFolder>/src/mimes/Components/<YourComponentPackageName>

    The Web Dynpro Editor should have created the <YourComponentPackageName> when you created your Component, so you should see this package in there. This is the actual package you've given your Component.

    Also, another way to move your image files to that location is do an import and select the 'file system' option.

    Once you've successfully move them, make sure that the images are loaded in the project, so then I suggest do a project 'reload' (right click on project name to see reload option). You'll save yourself some headache, believe me.

    Lastly, you do not have to refer to the full path of the image to access it. Just use the image file name in your code and you should be good to go.

    I hope this helps more..

    Christian Nuesa

    <><

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 22, 2005 at 04:23 PM

    hi Anil,

    yeah u got the question right, but how do i bind an image to the context . To be able to display the image in the table , we need to bind the image to the context, but i see that i can just bind either value nodes and value attributes which are some data types.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      hi Pablo

      The images are to stored in the src/mimes/components/component name.

      Just copy the images and then paste it in that folder. Choose the navigation explorer perspective while doing that.

      I hope i have answered your question

      Regards

      Srikant

  • avatar image
    Former Member
    Mar 22, 2005 at 04:23 PM

    or u mean to say i do it programmatically?

    Add comment
    10|10000 characters needed characters exceeded