About displaying images in web dynpro

Hi experts,
I hav a scenario..in which der's one table..whch has links for all images...and afta clickin on a lick..dat image will b displayed on side of it..
Now..where from dis links wll b comin..hw r images strd in WDABAP...where from i can get da path for dis images...
I hope u understood ma query...
Please help me out...
Thks and Regards,
Runali.

Hi Runali,
If there are large number of images, then you need not upload all the images as MIME object in your component. You can create a context node with a context attribute of type string.
Place an image UI element in the iview and bind its source property to that string attribute.
Now when you click on the link in your table, populate that context attribute with the location of the image (url).
In some of the organizations, images are stored in separate servers and there are webservices which talks to those servers. These webservices return the urls for the images. These urls can be used as above.
Regards,
Gaurav

Similar Messages

  • Displaying streamed images in Web Dynpro

    Hi All,
    I have following scenario to programme.
    - The DB have "images" stored as BLOB.
    - I need to read the images (stream) and make them visible in Web Dynpro UI.
    Problem is i only one way to providing images in Web Dynpro. The images are picked from url that points to Resource either at temporary location of permanent position Sap Images pool or contribution under mimes folder.
    I see temporary location as one option here but still not able to figure out where to store it !
    Can anybody help in this.
    Thanks and Regards,
    Ashwani Kr Sharma

    Hi ,
    Use
    WDWebResource.getPublicCachedWebResource(byte[] webResource,
                                                                  WDWebResourceType resourceType,
                                                                  WDScopeType scopeType,
                                                                  WDDeployableObjectPart deployableObjectpart,
                                                                  String key)
    Regards
    Bharathwaj

  • Display data in Web DynPro table from database via EJB

    I have a JavaBeans model which has a method populateDataToTable()to retrieve data from database via Session bean (calling entity bean, returning ArrayList of data) and the data needed to be display in the Web DynPro table.
    User Interface (Web DynPro) <-> JavaBeans Model <-> Busineess Logic (session bean) <-> Persistence (Entity Bean)<-> DB table.
    The context bindiing and table part is ok. How do i load the data to the table ? what the coding to put in wdDoInit() ?
    Any help would be appreciated.

    in wdinit(),
    Collection col = new ArrayList();
    try{                    
      MyCommandBean bean = new MyCommandBean();
      col = bean.getDataFromDbViaEJB();
      wdContext.nodeMyCommandBean().bind(col);
    } catch (Exception ex) {
       ex.printStackTrace(ex); 
    in your JavaBean model class, MyCommandBean getDatafromDbViaEJB() method:
    Collection col = new ArrayList();
    Collection newcol = new ArrayList();
    //include your own context initialization etc...
    col = local.getDataViaSessionBean(param);
    // if your returned result also a bean class, reassigned it to current MyCommandBean
    for (Iterator iterator = col.iterator(); iterator.hasNext();) {
        MyOtherBean otherBean=(MyOtherBean)iterator.next();
        MyCommmandBean bean = new MyCommandBean();
        bean.attribute1 = outBean.getAttirbute1();
        // get other attibutes
        newcol.add(bean);
    return newcol;

  • Create image of XSTRING data and display it in Web Dynpro

    Hello,
    I am trying to dynamically display an image in a Web Dynpro ABAP Image-Control. The problem is that the data is stored in the DB as XSTRING and I can't find a Method for example to create a new object in the MIME-Repository of the data which is read out of the DB at runtime.
    I have already converted the XSTRING into w3mime-Format with the function module RSFO_XSTRING_TO_MIME, but the Control needs a string of a url to display the image (for example to a MIME-Object of the component or a link to a file on the ITS).
    Is there somehow a possibility to do this?
    Thanks for your help,
    Kolja
    Solved this way: See /people/brian.mckellar/blog/2003/09/30/bsp-in-depth-writing-an-http-handler
    Message was edited by: Kolja Ewering

    Hi you may go through the below post to find what could be a better way to do that.
    http://forum.java.sun.com/thread.jspa?threadID=5163829
    REGARDS,
    RaHuL

  • About Adobe Form and Web dynpro Java development

    Hello experts,
    We had  a requirement to display different Adboe Forms dynmaticlly in Web dynpro Java application.
    There is only one Web dynpro Java application, but 10 Adobe Forms . If user "a" access the application ,display form 1 ; if user "b" access the application , display form 2 ;  if user "c" access the application , display form 3.... just like this.
    There are about 30 fields in BAPI which Web dynpro Java application called . Form 1 mapping to field 1 to field 3, Form 2 mapping to field 4 to field 6, Form 3 mapping to field 7 to field 9 ....
    Is it possible ? If it is possible , could you please give me a solution ?
    Thank you in advance !
    Best Regards,
    Louis

    Siva,
    I referred to the website, but still having issues with generating tables in Adobe Form. I can get all the table rows in the adove form, but the pdf doee not add new pages to display all the table rows. It just createa one page with the table inside it, display few of the rows and truncates rest of the table data.
    Here is the heirarchy of the page with the properties set
    Master Pages ---
            ||--> Page 1
                     ||--> content area
                     ||--> subfrom (properties:: Content - Flowed / Flow direction - top to bottom...pagination tab is greayed out completly)
                                ||--> Table
                                          ||--> HeaderRows (Object: Row - Type: Header Row)
                                          ||--> Row1 (Object Tab/Binding: Repeat Row for each data item - checked)
    Can't make it wor, not sure what's wrong here
    I am using NDS 7.0 SP18 and Adobe LiveCycle 8.0. Does that could be a problem.
    Appreciate your help
    John

  • Display HTML in Web DynPro Java View

    Hi,
    I have a data in HTML code. It is a full HTML code with the body, head, html.... Now in my Web DynPro i have a section whereby it displayed the message that store in the database table. In that column store all the HTML code. So now in my Web DynPro im using a TextEdit to display the message. It will showed all the HTML code in the TextEdit.
    For example
    <html>
    <head>
    </head>
    <body>
    <p>Testing</p>
    </body>
    </html>
    Is it possible in Web DynPro to display the HTML just like a webpage? As it will convert the HTML code to a readable format.
    Thanks.

    Hi Adrian,
    In case you have formatted text that you wish to be rendered on a Web Dynpro view (but not shown as is) then you should use the FormattedTextView UI element.
    Follow these steps:
    1. Insert a FormattedTextView element in your view.
    2. To define the content of the FormattedTextView, select the text property of your FormattedTextView element and bind the text property to the context attribute which has your HTML content
    When the application is run,  the HTML will be shown as a web page.
    Event onAction is triggered when the user clicks on a link (<a> tag) inside the FormattedTextView. The parameter contains the href attribute of the triggered link.
    The TextEdit UI element will not serve your pupose. Hope this helps.
    Best Regards,
    Supriya

  • Safari not displaying images on web pages

    My Safari was working fine and then all of a sudden the images stopped displaying in the web pages. I thought maybe it was because my browser needed an update. I installed Safari 5 but i'm still having the same problem. I read in another forum that one should clear the cashe and trash the Safari preference file (com.apple.safari.plist)). i cleared the cashe but i'm not sure where to find the safari preference file. can someone please help??

    On Vista, the plist file is in a hidden folder, but I don't immediately associate that particular plist with trouble displaying images on Windows systems. (Especially not on Safari 4.0.x installations, when the issue started for you.)
    Can you check something for me? (This isn't going to be a cure in itself, but it will point us towards the most profitable lines of further troubleshooting.)
    Create a new Windows User account with full administrative rights. Log out of your usual account and log into the new account. (Don't use fast user switching to move between accounts.)
    Launch Safari in the new account. Do images display in web pages in the new account?
    (If they do display, we'll focus on preferences and settings files in the usual user account. If they don't display, we'll check on damaged Apple Application Support and Safari program files.)

  • How to display pdf in Web Dynpro Page

    Hi Experts,
    I need to display the pdf file in web dynpro page. I am using  Web dynpro 7.1(CE), in that no ui element like Iframe. With Iframe we can display the pdf file in web Dynpro page in 7.0.
    But My problem is how display pdf with out using Iframe.
    Please any one tell how to display with any other UI elements.
    Regards,
    Sunil.

    Hi sunil..
    chk this link..
    <u><b>Pdf</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0401535-f81c-2a10-0192-ffd41e8e8d59
    <u><b>Adobe</b></u>
    /people/achim.hauck/blog/2005/02/04/my-struggles-with-the-adobe-document-services-in-was640
    <u><b>Configuration</b></u>
    http://help.sap.com/saphelp_nw70/helpdata/en/43/8a1a8ece230c8ce10000000a11466f/content.htm
    <u><b>Adobe Document services</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9e4e9afb-0701-0010-f8a8-b8cd093662c2
    <u><b>Configuring Guided procedure of Interactive Forms</b></u>
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b9ea34c2-0701-0010-e2a2-d8e9cd6d85dc
    <u><b>Forum Discussions abt Adobe Document Services</b></u>
    Re: Configuring the Destination URL for the Adobe Document Services
    Hop will this helpful for u..
    Regards,
    GS

  • DISPLAYING IMAGES IN WEB APPLICATIONS

    When we store images in a column, we are having problems reading and displaying it on web applications.
    can somebody help?
    Thomas

    What version of Oracle do you use? What is the datatype of the column where images are stored? What are you using to read and display the images on web applications? Do you get any errors?

  • Remove buttons in ALV grid display in ABAP Web Dynpro

    Hi,
    Sub: ALV grid-->Web Dynpro ABAP.
    Request guidance to prevent display of the buttons "Microsoft Excel" and "Print Version" (which provide options to export the ALV grid output into an Excel format document).
    Is there a way we could hide this from being displayed on the ALV grid in a Web dynpro ABAP component output?
    Thanks very much.
    Best Regards,
    Adi

    Hi Adithya,
    really simple solution is to call cl_salv_wd_model_table_util=>if_salv_wd_table_util_stdfuncs=>set_all( abap_false ). This deactivates all ALV functionality.
    For individual setting cl_salv_wd_config_table if_salv_wd_standard_functions~set_<x>_allowed.
    - Michelle

  • Drop down in allready displaying table in web dynpro

    Hi Experts,
    We have  a requirement where we are displaying the data of the table KNA1 in a table form (Web dynpro) which is editable.for the field NAME1 there must be drop down box which contain some values , so that for any row user can select one of the value and then when press SAVE button the table KNA1 should be updated with the new value of NAME1.
    Can you please let us know how to do this.
    Thanks
    Mahesh

    >Can you please let us know how to do this.
    Which part of what you describe and what exactly are you having problems with.  You can of course change the cell editor of your column to DDLB.  Is that where you are having problems.  Or are you trying to decied between DDLBByKey and DDLBByIndex.  For that I would suggest you read the following:
    http://help.sap.com/saphelp_nw70ehp1/helpdata/en/bb/69b441b0133531e10000000a155106/frameset.htm

  • Showing Image in Web Dynpro using ABAP

    Hi All,
    I am new to Web Dynpro ABAP , basically my requirement is to show a image , could any one please tell me the steps to do that , i have already uploaded the image in application server using T-code smw0 , and in the layout i have taken the element IMAGE.
    I have also made the context node as Image and under that i have made three attributes named as :-
    IMAGE (Context Node)
    source (Attibute type string)
    tooltip (Attribute type string)
    visible (Attribute type WDUI_VISIBILITY)
    In the WDDOINIT  method i have written the following code.
    DATA:
    context_node TYPE REF TO if_wd_context_node,
    context_elem TYPE REF TO if_wd_context_element,
    stru_image TYPE if_image_view=>element_image.
    fill structure with values
    stru_image-source = 'abc.gif'.
    stru_image-tooltip = 'Image Tooltip!!'.
    stru_image-visible = '02'. "=visible
    navigate to <IMAGE> via lead selection
    context_node = wd_context->get_child_node( name = `IMAGE` ).
    get element via lead selection
    context_elem = context_node->get_element( ).
    bind structure to context element image
    CALL METHOD context_elem->set_static_attributes
    EXPORTING
    static_attributes = stru_image.
    But I am getting the error if_image_view does not exist.
    Please help me and guide me if I am proceeding in a wrong way.
    Thanks and Regards,
    Rachit Khanna

    Hi ,
    Its very simple ....
    Dont use any transaction to upload image.
    right click on component and select
    create->mime_object->import
    suppose ur image is on desktop...
    So select the path of desktop select the image and click ok.
    U will see an MIMEs named folder in ur component and under which u will have ur image.
    now add image element into UI and there u will have source name property ...just write the name of ur image file and test ur application.
    U can see the image in output..
    (Also there are different properties of image element to set the position and other things)
    any queries ..feel free to ask
    regards
    panky

  • Display XML in Web Dynpro

    Hello,
    i have a string variable filled with xml. And now i want to display this code in Web Dynpro with an ui element.
    I tried a text_edit but it only shows the text but i want it to be displayed like in an IE.
    Anybody an idea?
    Regards Robert

    Ok, so an Iframe ist not the best solution right now.
    So i did what you said and uploaded the xml content to the ICM cache and generate an URL.
    Now i tried to open the URL with an external Window, but inside the new opened IE i can't see anything.
    Maybe my coding is not complete?
    Regards,
    Robert
    DATA:
            lv_xml_content        TYPE string,
            lo_http_response  TYPE REF TO if_http_response,
            lv_url            TYPE string,
            lv_xfile          TYPE xstring,
            lr_conv           TYPE REF TO cl_abap_conv_out_ce,
            lo_window_manager TYPE REF TO if_wd_window_manager,
            lo_api_component  TYPE REF TO if_wd_component,
            lo_window         TYPE REF TO if_wd_window.
      cl_abap_conv_out_ce=>create( RECEIVING conv = lr_conv ).
      lr_conv->convert( EXPORTING data   = lv_xml_content
                        IMPORTING buffer = lv_xfile ).
      CREATE OBJECT lo_http_response TYPE cl_http_response.
      lo_http_response->append_data( lv_xfile ).
      lo_http_response->set_content_type( 'text/xml' ).
      lo_http_response->server_cache_expire_rel( expires_rel = 500 ).
      lo_http_response->set_status( code = 200 reason = 'OK' ).
      cl_http_server=>server_cache_upload(
        EXPORTING
          url      = 'Test.xml'
          response = lo_http_response ).
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_external_window(
                        url = 'Test.xml'
                        title = 'XML im Internetexplorer'
      lo_window->open( ).
    Edited by: Thalin on Sep 21, 2010 3:45 PM

  • Where to put images in web Dynpro project to have them deployed?

    Hi Brothers,
    I would like to show an image in an <img>-tag within a Formatted Text View UI Element.
    I have created a folder img under src/.../projectname and I have referenced the image in the <img>-tag as follows:
    < img src="/LocalDevelopment~LocalDevelopment~testroadmap~demo.sap.com/src/packages/com/sap/demo/projectname/img/newRow.JPG"; /.>
    However, the image is not shown in the Formatted Text View UI Element.
    Does anybody know where to put images so that they are packed in the .war achieve and deployed and how to referenced them?
    Thanks, Johannes

    Hi,
    place the image in the following folder of application,
    src\mimes\Components\<your component name>.testroadmap.demo.sap.com
    If you store the image file in your Web Dynpro project under src /mimes /Components /<Name of Component>, you only have to specify the file name without a path.
    Regards,
    ramesh
    Edited by: Ramesh Babu V on Sep 19, 2008 1:58 PM

  • PE9 get confused about displaying images

    Been using PE9 for a few weeks and within the past couple of days it seems to get confused about which image should be displayed within the timeline. Have a medium size project with 30-40 jpg's in it and when shown in the timeline (or in the monitor window), PE9 replaces the image associated with a particular file with an image from another file. In the Project list you can get Properties and the path\file name shows up perfectly but PE9 uses the image from another file. Tried closing the project, and PE9 - no help. Tried re-booting Windows 7 (64 bit) - nop help. This seems to get worse as time goes on and I have not been able to find a solution.
    Bob

    My photo's are either 720 x 480 or 720 x 1080 depending on whether they are landscape or portrait.

Maybe you are looking for

  • Ipod nano not rcognized in windows 7 or itunes

    When i plug my ipod into usb on windows 7 machine it is not recognized anywhere. However it does charge. Thank you for any help. OfferHope MB

  • Delete overlapping requests runs for 5+ hours ...This is too long

    We are on BW 3.5 and have a process chain that loads 3 years of data from a cube on the APO Server and AOP data from the BW server into a cube on the BW server.  Each load is in its own infopackage.  This loads happens every week.  We want to delete

  • Spml2 :: Living la vida loca

    Hej, I just installed spml2 on the idm 7.1.1.2 and i runned some examples so far looks pretty nice... but I have no idea how to get information back.... I tried this for example:    String url = "http://--------------/idm/servlet/openspml2";         

  • "IS REQUESTED" keyword

    Hi all,       We are upgrading our ECC system from 4.6 to 6.0.       In one of the Function module we get a syntax warning :"Obsolete statement found IS REQUESTED not permitted" for line   CHECK ABC IS REQUESTED. Here ABC is TABLES parameter defined

  • Convertion of a string to CURR

    Hi all, I have a field of char length 11. Now i have to convert this string and post it to a table where the field is declared as type CURR (no of char = 9 , decimal places = 2 , output length = 12). How can this be done? Regards, Shabarish