Want to add Image Dynamically...

I want to add image dynamically in my output screen..so is there any code that i can use..Please help with this...

Can you please be more specific about what you want to do dynamically.  Do you just want to dynamically control which image appears in an image UI element (which can be done by data binding a context attribute to the image Source property) or do you want a dynamic number of images (which can be done with a row repeater or multipane UI element and inner Image UI elements).

Similar Messages

  • How to add Image dynamically in Webdynpro ABAP

    Hi Experts,
    How to add Image dynamically in Webdynpro ABAP.
    My requirement is i maintain all the images in a table.
    image source has to pick the table URl dynamically and display.
    is that possible in webdynpro?
    and also please give the suggesion,
    without using MIME objects is that anyway to get images?
    Thanks in advance.
    Regrads,
    Jeyanthi

    Hi,
      are those icons wou want to display then. he following code will be useful.
    data : lo_IMG type ref to CL_WD_IMAGE.
    LO_IMG = cl_wd_IMAGE=>new_IMAGE( id = img_id SOURCE = 'ICON_BW_APD_TARGET' tooltip = sts_tltp ).
    lo_cont->add_child( the_child = lo_img ).
    here lo_cont is the container where you want to add the image dynamically and source is the attribiute through which you can change the ICON image. this thing you can getit from data base table and change accordingly.
    Regards,
    Anil kumar G

  • Add images dynamically

    Hello eperts,
                        can any one tell me how to add images dynamically in webdynpro. i had loaded the image in mime,and inside the method wdmodifyview i had written the coding ,
    data: lr_image      type ref to cl_wd_image.
    data: lr_container  type ref to cl_wd_transparent_container.
    data: lr_flow_data       type ref to cl_wd_flow_data.
        lr_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
        lr_image = cl_wd_image=>new_image( source = 'new.jpg'l view = view ).
        lr_flow_data = cl_wd_flow_data=>new_flow_data( element = lr_image ).
        lr_container->add_child( lr_image ).
    where 'new.jpg' is my mime object name.
    what other steps i have to follow to get the image while running.... thanks in advance.

    hi,
    if you want, you can modify the layout, just using your coding:
    lr_container->set_layout_data(lr_flow_data).
    In addition, make sure that your JPG is the MIME object of this WD component, otherwise, you should add "WD name" as the prefix of JPG's name..
    Best wishes.

  • I want to add image in column is it possible then how to add image in data base what data type we need to do

    I want to add image in column is it possible then how to add image in data base  what data type we need to give we required any casting  please show me one example
    jitendra

    Hi again,
    Several points that can help more:
    1. If you are working with Dot.Net, then I highly recommend read the first link that you got! This is nice and simple coding. Another option is this link which is even better in my opinion:
    http://www.dotnetgallery.com/kb/resource21-How-to-store-and-retrieve-images-from-SQL-server-database-using-aspnet.aspx
    2. As i mention above both link use the column's type image. There are several other option of working with Files. In most of my applications architecture I find that it is better to use a column which let us use any type of file and not an image column.
    In choosing the right column's type for your needs basically your fist question should be if if you want to store your data inside relational database environment or outside relational environment. It is a good idea to look for blogs on this issue. Next
    if you chose to store your data inside then you need to chose the right column type according to your server version. I highly recommend to look for blogs on the differences between those column's types: IMAGE, 
    Check those links:
    To BLOB or Not To BLOB: Large Object Storage in a Database or a Filesystem
    http://research.microsoft.com/apps/pubs/default.aspx?id=64525
    FILESTREAM feature of SQL Server 2008
    http://msdn.microsoft.com/library/hh461480
    FileTables feature of SQL Server 2012
    http://technet.microsoft.com/en-us/library/ff929144.aspx
    Compare Options for Storing Blobs (SQL Server)
    http://technet.microsoft.com/en-us/library/hh403405.aspx
    Binary Large Object (Blob) Data (SQL Server)
    http://technet.microsoft.com/en-us/library/bb895234.aspx
    Managing BLOBs using SQL Server FileStream via EF and WCF streaming
    * Very nice tutorial!
    http://petermeinl.wordpress.com/2012/02/20/managing-blobs-using-sql-server-filestream-via-ef-and-wcf-streaming/
    [Personal Site] [Blog] [Facebook]

  • I want to add image name with the extension to db after upload, Can any body help?

    Hello there,
    Earlier in the week I created PHP photo/image upload form so clients will be able to upload to my site, it worked very well uploading image to designated directory to the C:/path/ but there is more that I would like to do with the form, and that is to write the image name with the extension, “Joplateau.jpg” for example in the database after upload. I wanted to use hiddenField but it's not working for me, may be i am not doing it right. If any one has an idea how to do this please let me know, and thanks in advance.
    Thanks in a lot.
    Joplateau.

    Server-side coding questions are best answered in the Application Developers forum:
    http://forums.adobe.com/community/dreamweaver/dreamweaver_development?view=discussions
    Nancy O.

  • I want to add image name with the extension to db after upload in PHP, Can any body help?

    Hello People!
    Earlier in the week I created PHP photo/image upload form so clients will be able to upload to my site, it worked very well uploading image to designated directory to the C:/path/ but there is more that I would like to do with the form, and that is to write the image name with the extension, “Joplateau.jpg” for example in the database after upload. I wanted to use hiddenField but it's not working for me, may be i am not doing it right. If any one has an idea how to do this please let me know, and thanks in advance.
    Thanks a lot.
    Joplateau

    Server-side coding questions are best answered in the Application Developers forum:
    http://forums.adobe.com/community/dreamweaver/dreamweaver_development?view=discussions
    Nancy O.

  • Add Image to Jasper Report with Struts 2 and Hibernate

    Hi I want to add image to jasper report[pdf] in the environment of Struts 2 framework and hibernate. I am trying
    this for last couple of days, but i am unable to get the work done. if any body know the steps to add image to
    jasper reports, please help me or if u have any tutorials please let me know. I am using iReport-nb-3.5.0 to generate jasper files.
    Thanks in advance

    Finally i found a way to add image to jasper report. It is pretty simple, just give the exact image location to the image expression. In your web application, the image location may vary so, dynamically set the image location from your model class. Also, make sure that your lib folder contains itext-1.3.1.jar. If your lib folder contains itext-1.3.1.jar and iText-2.1.3.jar u will get like: java.lang.NoSuchMethodError: com.lowagie.text.Image.plainWidth()F
    So remove the iText-2.1.3.jar and keep only itext-1.3.1.jar, try this will work

  • How do i add images in the header and footer to a PDF using iText

    Hi ,
    I want to add images to the header and footer of every page while i am genrating a pdf i have created a separate class called EndPage which i am instanceiating its default constructor in another class 's button action method.
    The above code genrates a PDF for me however it genrates a file with file size zero bytes and does not open it following is my sample code
    //**********Any Help would be appreciated
    Thank You
    public class My_Class
    public String pdf_action()
    EndPage ep=new EndPage();
    return null;
    }//My_class Ends
    class EndPage extends PdfPageEventHelper
    * Demonstrates the use of PageEvents.
    * @param args no arguments needed
    public EndPage()
    try {
    com.lowagie.text.Document document = new Document(PageSize.A4, 50, 50, 70, 70);
    PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("D://proposals/endpage.pdf"));
    writer.setPageEvent(new EndPage());
    document.open();
    String text = "Lots of text. ";
    for (int k = 0; k < 10; ++k)
    text += text;
    document.add(new Paragraph(text));
    document.close();
    catch (Exception de) {
    de.printStackTrace();
    public void onEndPage(PdfWriter writer, Document document) {
    try {
    Rectangle page = document.getPageSize();
    PdfPTable head = new PdfPTable(3);
    for (int k = 1; k <= 6; ++k)
    head.addCell("head " + k);
    head.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
    head.writeSelectedRows(0, -1, document.leftMargin(), page.height() - document.topMargin() + head.getTotalHeight(),
    writer.getDirectContent());
    PdfPTable foot = new PdfPTable(3);
    for (int k = 1; k <= 6; ++k)
    foot.addCell("foot " + k);
    foot.setTotalWidth(page.width() - document.leftMargin() - document.rightMargin());
    foot.writeSelectedRows(0, -1, document.leftMargin(), document.bottomMargin(),
    writer.getDirectContent());
    catch (Exception e) {
    throw new ExceptionConverter(e);
    }

    Hi,
    Thanks for the quick response.
    The problem is that when I keep the logo as a watermark, the pdf is not adjusting itself to include the logo as header.
    But if I add a header text via Tools -> Headers and Footers, the pdf is adjusting itself so that the header text is at the beginning , not overlapping with the contents of pdf.
    But while using logo as watermark, some times overlapping of the pdf contents and logo is happening.
    Is there any way to add a logo in the Header and Footer via the option in Tools -> Headers and Footers
    Thanks,
    Vidhya

  • Add image to SharePoint Survey for multiple questions??

    Hi,
    How can i show a particular picture for group of questions in sharepoint 2010 survey? From following link i was able to add image for one question. so what i need to do if i want to add more questions with the same image?
    http://robdevereaux.wordpress.com/2013/08/09/how-to-add-pictures-to-a-survey/
    Thanks

    If you want to add images to multiple questions using the code at that link do something like:
    elements[e].innerHTML = elements[e].innerHTML
    .replace('CAR_IMAGE','<img src="/PATHTO/IMAGE/CAR.jpg"></img>')
    .replace('BOAT_IMAGE','<img src="/PATHTO/IMAGE/BOAT.jpg"></img>')
    .replace('PLANE_IMAGE','<img src="/PATHTO/IMAGE/PLANE.jpg"></img>');
    Also, if you would like to add a picture, text or formatting to every survey page in a survey with page breaks you will typically need to edit both the NewForm.aspx and EditForm.aspx pages using SharePoint Designer or by adding a Content Editor Web
    Part to both pages.
    Here's some of the other things like this I have done with surveys:
    http://techtrainingnotes.blogspot.com/2013/02/add-content-editor-web-part-cewp-to.html
    http://techtrainingnotes.blogspot.com/2010/07/sharepoint-add-instructions-and-color.html
    (and there's a chapter on surveys in my customization book.)
    Mike Smith TechTrainingNotes.blogspot.com
    Books:
    SharePoint 2007 2010 Customization for the Site Owner,
    SharePoint 2010 Security for the Site Owner

  • Add Image in the navigation bar of Help page

    Hi,
    I wanted to add image next to to the Search in the Help page navigation bar as in snapshot below:
    I wanted to add an image i.e the the logo next to above button in navigation bar. I tried adding , howevr could only add as Header, not right in the navigation pane. Correct me if I m wrong, the navigation control can be configured while generation web output. I coudnt find any other option to do this.
    Please let me your inputs on this.
    Thanks,
    Pallavi

    Hi all
    Sorry Colum, I think you are wrong. That looks exactly like a WebHelp Search dialog.
    Pallavi, I am thinking the answer for you may be a simple one. Use the WebHelp skin editor. There you should see an option to choose the image used for the Go button.
    I'm not exactly sure what version you are using. But I'll insert a screen capture of RoboHelp 7 below.
    My thought here is that you could create an image that includes your company logo along with the Go button. Then use that image for the Go button. Sure, both the company logo as well as the Go button would be clickable, but it should do the job, no?
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to add image at background of video

    I have one image and one video .
    i want to add image in video so that it looks like the part of the video.
    i don't want to add it at the backgroundView of MPmoviecontroller.
    I also don't want to add at the top most layer.

    Hello Clay,
    Click on the browse button at the bottom of your posting and
    ->browse to the image,
    ->select the image
    ->click Upload
    Now your image will be attached to your posting after you click submit.
    Hope this helps...
    The image below was added by doing a print screen, then pasted the image to the posting.

  • How can i add Image or Picture Column to Matrix

    Hello Experts,
    I want to add Image or Picture column on my Add-on form matrix
    I am working on 8.81 PL5
    Please help out.
    Regards,
    Bhavank

    Hi Bhavank,
    Try This.....
          ocolumn = ocolumns.Add("CoGS", SAPbouiCOM.BoFormItemTypes.it_PICTURE)
            ocolumn.Editable = True
            ocolumn.Width = 60
            oitem.FromPane = 9
            oitem.ToPane = 9
            ocolumn.TitleObject.Caption = "COGSProfitCenter"
            ocolumn.DataBind.SetBound(True, "", "Folder")
            ouserdatasource = oOrderform.DataSources.UserDataSources.Item("Folder")
            omatrix.AddRow()
            omatrix.GetLineData(1)
            ouserdatasource.ValueEx = "c:\41224_128614427186464_128584050522835_146624_537710_s.jpg"
            omatrix.SetLineData(1)
    Thanks
    Shafi

  • I would like to add Image in the calendar on an event

    Hi
    I want to add image in the calendar view of the sharepoint along with the event.
    some thing like this
    Which type of column should i create to get an image on the calendar.
    Paru

    Hi,
    Through customization, its possible
    http://blogs.technet.com/b/meamcs/archive/2012/09/27/adding-a-publishing-image-field-to-a-sharepoint-2010-calendar-list.aspx
    https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-Validate-Business-Day-in-InfoPath-Date-Picker.aspx
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • HOW DO I MAKE IMAGES DYNAMIC USING DREAMWEAVER & MySql

    Hi there,
       I wanted to make images dynamic in that the images would be stored in my database and then use dreamweaver to pull the images from the database using a recordset. But how do I get to store the images in MySql now that dreamweaver doesn't support BLOB and also how do I make dreamweaver pull the images from that database? PLZ somebody help

    To pull the image from Database on to your page
    1. Open your php page
    2. put your cursor where you want the image to show on the page
    3. insert>image>Select File Name From: Data Sources>select record from recordset> click ok
    4. View in browser
    In Mysyl the image was stored as a "longblob" type with "binary" attributes
    but my system is Dreamweaver CS3.
    Hope this helps. Let me know.

  • Want to add Custom text after Product Branding Image for application

    Hi
    Can we add any text after Product Branding Image for application
    By default it will show the responsibility function name
    My requirement is after company logo I want to add Text at the top of application
    with center align
    Need suggestions
    Regards
    Krishna

    Hi Anoop
    If I done what u suggested then the function responsibilty name will also come
    and the application will be disturbed
    Is their a way to edit the text at the top
    Regards
    Krishna

Maybe you are looking for