Image disappears - WebDynpro Java

Hi All,
     I have a WebDynpro Java application, which has image, and other UIs. There is a image displayed in the image UI. When there is some actin in the UI, by clicking any of the UI, the image disappears, after other action it comes back again. Where could be the problem ?
Thanks,
Prabhakar.

I am giving here the hierarchy of the Layout.
RootUI
   |___TransparentContainer_1 (child of RootUI)
            |___ImageUI_1 (child of TransparentContainer_1)
   |___TransparentContainer_2 (child of RootUI)
            |___ScrollContainer (child of TransparentContainer_2)
                     |___ImageUI_2 (child of ScrollContainer)
There is a drop down which has values 'Fit to Window' and '100 %'. Either one of the UI's 'ImageUI_1' or 'ImageUI_2' will be visible based on the drop down value.
Regards,
Prabhakar.

Similar Messages

  • Image in Webdynpro Java Application

    Hi All,
    I have created a webdynpro application
    i kept imaage Lotus.jpg in src/mimes/components/component
    created a value node image attached this node to image ui source property
    in implementation
    weContext.currentcontextelment.setImage("Lotus.jpg");
    i am not abel to see image
    where am i going wrong
    Regards,
    Murali

    Hi Murali,
    I hope the above mentioned answers have solved ur problem. If yes then please close this thread else in webdynpro to show an image is very easy. As you mentioned you need to copy the image and paste it at Project>src>components>application copmponent>paste it. now you just need to got to the properties of the particular UI element in which you want to show the image. Then go to the imagesource property give the name exaclty similar to that of your pasted file for example if it's Lotus.jpg then give Lotus.jpg or if its Lotus then need not to add .jpg only add Lotus. This will definately work.
    Warm regards,
    Gaurav

  • How to add an image to an IMAGE control in Java WebDynpro

    hi
    How to add an image to an IMAGE control in Java WebDynpro.
    Please give me the steps to assign an image to an IMAGE control.
    Advanced Thanks
    brahma

    Thank You Mathan MP,
    i tried these steps, but whenever i selected the source property of image UI control, it opens a context window, but this context window does't contain any thing for selection.
    so how to solve this problem ?
    the link whatever u provided is not opened, please send the correct link.
    http://127.0.0.1:1284/help/index.jsp?topic=/com.sap.devmanual.doc.user/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm
    Thanks in Advance
    brahma

  • How to add table in SAP Non interactive forms in webdynpro java

    Hi Experts,
    I have a requirement in webdynpro java.I have a print button.On clicking print button a pdf will be opened.
    This pdf will have data from the webdynpro view.I want to know how to add table in the adobe pdf.The webdynpro view will have many rows of table(rows will keep changing as per the size of the data output).How to send this data to adobe.How do we bind the node to the table in the adobe.How to automatically
    Please suggest.
    Thanks,
    Rajani
    Edited by: Rajani Nandagiri on Dec 26, 2008 8:58 AM

    Rajani,
    Take a look at below links, it will help you.
    [Handling Dynamic Length Tables in Adobe Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669]
    [Integrate tables & Images in Adobe Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/dynamic%20non-interactive%20pdf%20form.pdf]
    [How to Handle Table Input and Output|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/7.0/adobe/how%20to%20handle%20table%20input%20and%20output.pdf]
    [How Tou2026deal with Table input and display in Interactive Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00c4041d-188d-2910-6ea2-b4d5155f56e0]
    Chintan

  • How to display a image in webdynpro view using a bytearry

    Hi Frndz..
    How to display an image in a view using webdynpro java ..i have bytearry object in context ..like
    *byte[] img = wdContext.nodeYywwwdataImport_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();*_
    by using this i need to show image in view..
    Kindly help me ....
    Thankas in Advance
    Regards
    Rajesh

    Hi,
    byte[] img = wdContext.nodeYywwwdata_Import_Input().nodeOutput().nodeOutMime().currentOutMimeElement().getLine();
    use this code to create resource and you need to set this value to the context created to display the image suppose in the image UI and set the source property with this attribute:-
    IWDResource res=WDResourceFactory.createCachedResource(b,"MyImage",WDWebResourceType.JPG_IMAGE);
    IPrivateAppView.IVn_ImageTabElement imageEle=wdContext.createVn_ImageTabElement();
           imageEle .setVa_Name(res.toString());
    wdContext.nodeVn_ImageTab().addElement(imageEle);
    Hope this may help you.
    Deepak

  • Dynamic table in Webdynpro Java

    Hi Colleagues,
    I need to develop a table dynamically in webdynpro(Java), the table should not contain scrollbar, header, lines and border...Actual requirement is to group 12 elements in the from of a table
    could anyone please help me here?
    Thanks & Regards
    Swetha

    Hi Armin,
    In a window i have to develop a part of window which looks like this
    Image             URL                      Description
    Image             URL                      Description
    Image             URL                      Description
    Image             URL                      Description
    I have tried doing this using Flow layout for each line
    But when i follwed that the last column "description" is not alligned in a straight line(for all rows)
    structure is not even as shown above
    (varying depending upon the length of the URL)
    Here i have attached the piece of code i  used
    IWDTransparentContainer MainContainer1 = (IWDTransparentContainer)view.createElement(IWDTransparentContainer.class);
           IWDFlowLayout flowlayout1 =  (IWDFlowLayout)MainContainer1.createLayout(IWDFlowLayout.class);
    ////For adding Image 
           IWDImage image = (IWDImage)view.createElement(IWDImage.class);
           image.createLayoutData(IWDFlowData.class);      
           image.setSource("~sapicons/s_b_alet.gif");
    /////for Adding URL
           IWDLinkToAction link1 = (IWDLinkToAction)view.createElement(IWDLinkToAction.class);     
           IWDTextAccessor link1text = wdComponentAPI.getTextAccessor();
           link1.setText("Collaboration Window");
           IWDAction Action1  = (IWDAction)view.getAction("Openlink");
           link1.setOnAction(Action1);
           IWDFlowData linkdata1 = link1.createLayoutData(IWDFlowData.class);
           WDLayoutCellDesign rightpad = WDLayoutCellDesign.R_PAD;
           WDLayoutCellSeparator seperator = WDLayoutCellSeparator.LARGE;
           linkdata1.setCellDesign(rightpad);
           linkdata1.setVGutter(seperator);
    ///for adding description      
           IWDTextView text1 = (IWDTextView)view.createElement(IWDTextView.class);
           text1.setText("Testing");
           IWDFlowData textdata1 = text1.createLayoutData(IWDFlowData.class);
           textdata1.setCellDesign(rightpad);
           textdata1.setVGutter(seperator);
           MainContainer1.addChild(image);
           MainContainer1.addChild(link1);
           MainContainer1.addChild(text1);
           IWDGridData maincont1 = MainContainer1.createLayoutData(IWDGridData.class);
           maincont1.setPaddingLeft("10px");
           maincont1.setPaddingTop("20px");
    I found that this static way of adding rows is not the right way( Keeping in mind the future enhancements)
    So thought of trying it through table
    i have used IWDtable ...but the look does'nt meets the requirement at all(it has header....border..scrollbar..rows and colums are seperated by lines---> which are not needed)
    Could you please let me know is there a approach to do this?
    Thanks & Regards
    Swetha
    Edited by: Swetha Nellore on Feb 18, 2009 12:32 PM
    Edited by: Swetha Nellore on Feb 18, 2009 12:33 PM
    Edited by: Swetha Nellore on Feb 18, 2009 12:34 PM

  • Inserting data into a file in Webdynpro java

    hi,
    My requirement is, i am using html code in my webdynpro application. i want to send the html code to a file(.txt file) .can any body help me how to send the data to file in webdynpro java.
    thans,
    kishore

    Hi,
    For export file in format XML, TXT, ...
    continue steps
    1) create node with name  FileResource and type binary
    2) create view and add control filedownload and properties control set data binding node FileResource
    3) create following code
      //@@begin javadoc:wdDoInit()
        /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
            IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateExportListView.IContextElement.FILE_RESOURCE);
            IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();  
            binaryType.setFileName(ExportListView.FILE_NAME);
            binaryType.setMimeType(WDWebResourceType.TXT);
            try {
                String resourcePath = WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), ExportListView.FILE_NAME);
                wdContext.currentContextElement().setFileResource(this.getByteArrayFromResourcePath(resourcePath));
            } catch (WDAliasResolvingException e) {
                wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(), true);
            } catch (Exception e) {
                throw new WDRuntimeException(e);
        //@@end
    and add following code
      //@@begin others
        private byte[] getByteArrayFromResourcePath(String resourcePath) throws FileNotFoundException, IOException {
            FileInputStream in = new FileInputStream(new File(resourcePath));
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            int length;
            String Prueba = "hola esto es una prueba" + new Date().getSeconds();
            //byte[] part = new byte[10 * 1024];
            byte[] part = Prueba.getBytes();
            while ((length = in.read(part)) != -1) {
                out.write(part, 0, length);
            out.write(Prueba.getBytes());
            in.close();
            return out.toByteArray();
        // store image file name in constant FILE_NAME
        private static final String FILE_NAME = "doc.txt";
      //@@end
    4)Create file ext(txt,xml,...) in following dir of the project
    ...\_comp\src\mimes\Components\com.prueba.ReporteComp
    regards from colombia-medellín

  • How to change the font size of Column Heading  in webdynpro java

    Hi,
    I have a table with 4 columns, Can any one tell me how can i increase the text size and apply different fonts in webdynpro java application.
    Thanks
    Satish J

    Hi Satish,
    To expain it bit more clearly.
    Copy the images you need to use in the application
    Open your application in package explorer<Navigator>
    Now Expend node  src -> mimes -> components -> your application name with full package now right click on it and paste all the images here.
    Now go to web Dynpro prospective and use the  image name  (full name of image like columnName.jpg )to assign it to imageSource  property of the  Table_Header (Caption Header). The image will be seen.
    Hope this will clarify.
    Regards
    Narendra

  • Uploading Image in webdynpro View.

    hi,
    I am new in Webdynpro Java. I want to upload image ( for ex. A company Logo).
    Any inputs how to proceed for that ?
    Thanks in advance.

    -> Store the images in the MIME Directory.
    -> Declare a simple type data type in the Java Dictionary.
    ->Give values and description in the enumeration type.
    -> Declare a value attribute of Simple type in View Controller.
    -> Add a image UI Element and bind it  with two attributes(Ctx1 and Ctx2).
    Use the code below to get the name of image and further set it :
    String vehicleType = wdThis.wdGetContext().currentContextElement().getCtx1();
    wdThis.wdGetContext().currentContextElement().setCtx2(vehicleType+ ".jpg");
    Thanx.

  • How to upload images on WebDynpro(ABAP) screens

    Hello All,
    Could any one please help on how to create/change the image (jpeg/any file) dynamically on WebDynpro screen. I have seen couple of examples for uploading the text files in WDR_TEST_EVENTS, WDR_TEST_WEB_ICONS, but not found any standard program that explains about uploading images.
    Requirement: User has to select any image/thumbnail from local PC and it should be displayed on main screen, it's not only from MIME directory.
    We have the same logic in BSP Application (CFX_RFC_UI) to upload the thumbnail but am not sure whether we can use the same logic in WDC or not?
    I have seen the same logic for WebDynpro (JAVA) here: 
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00062266-3aa9-2910-d485-f1088c3a4d71
    I would really appreciate if you could provide me the code/process ASAP.
    Thanks & Regards,
    Hari.

    Hi,
    I have written the code as per given logic with no errors, after selecting jpeg file from local PC when I click on 'upload' button it is giving a following short dump.
    Could you please let me know how to rectify it.
    Error when processing your request
    What has happened?
    The URL http://rocpld02.wwwint.corp:8000/sap/bc/webdynpro/sap/zms_image_01/ was not called due to an error.
    Note
    The following error text was processed in the system PLD : Exception condition "CNTL_ERROR" raised.
    The error occurred on the application server rocpld02_PLD_00 and in the work process 1 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: CONSTRUCTOR of program CL_GUI_CUSTOM_CONTAINER=======CP
    Method: ONACTIONONBUTTONCLICK of program /1BCWDY/1I6RRYQYFWRI2HBZ5MAK==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/1I6RRYQYFWRI2HBZ5MAK==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_VIEW========CP
    Method: IF_WDR_ACTION~FIRE of program CL_WDR_ACTION=================CP
    Method: DO_HANDLE_ACTION_EVENT of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW_PHASE_MODEL=====CP
    Method: PROCESS_REQUEST of program CL_WDR_WINDOW=================CP
    Method: EXECUTE of program CL_WDR_MAIN_TASK==============CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Regards,
    Hari.

  • How to create a calender view in webdynpro java EP 7.0

    Hi ,
    I want to create a calender view in webdynpro,
    Requirments are
    1. it should be current month view
    2. Below each day i want to show office in-time and out-time in two cloumns(these values will be coming tru RFCs).
    ie
    1
    10am | 4pm
    Is this possible in webdynpro java EP 7.0 ?
    Please help me
    Thanks
    Kumar

    Hi Kumar,
    If you are using EP7.0, there is no calendar UI element in webdynpro development. There is only date navigator UI element. This is demonstrated in the below article.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c059344a-1930-2d10-6e8a-dcec5f94993e?quicklink=index&overridelayout=true
    Regards,
    Ganesh N

  • Problem while deploying a webdynpro java application in NWDS 7.1 version

    HI All,
            I got the below error when i deploying the  webdynpro java application in NWDS 7.1 version..help me out...........................................
    Exception:
    com.sap.ide.eclipse.deployer.api.APIException: ConnectionException,cause=[Ecc]
    NameNotFoundException.The SAP J2EE ENGINE service 'tcbldeploy_controller' is not available
    because of deployment or down engine( service ).
    Reason: Object not found in lookup of
    tcbldeploy_controller.
         at
    com.sap.ide.eclipse.deployer.dc.ComponentManagerImpl.getDeployProcessor(ComponentManagerImpl
    .java:64)
         at com.sap.ide.eclipse.sdm.threading.DCDeployThread.run(DCDeployThread.java:118)
    Caused by: com.sap.engine.services.dc.api.ConnectionException: [ERROR CODE DPL.DCAPI.1118]
    NameNotFoundException.The SAP J2EE ENGINE service 'tcbldeploy_controller' is not available
    because of deployment or down engine( service ).
    Reason: Object not found in lookup of
    tcbldeploy_controller.
         at
    com.sap.engine.services.dc.api.session.impl.SessionImpl.createCM(SessionImpl.java:320)
         at
    com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.<init>(DeployProcessorImpl.ja
    va:136)
         at
    com.sap.engine.services.dc.api.deploy.impl.DeployProcessorFactoryImpl.createDeployProcessor(
    DeployProcessorFactoryImpl.java:26)
         at
    com.sap.engine.services.dc.api.impl.ComponentManagerImpl.getDeployProcessor(ComponentManager
    Impl.java:46)
         at
    com.sap.ide.eclipse.deployer.dc.ComponentManagerImpl.getDeployProcessor(ComponentManagerImpl
    .java:58)
         ... 1 more
    Caused by: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Object
    not found in lookup of tcbldeploy_controller.
         at
    com.sap.engine.services.jndi.implserver.ServerContextImpl.lookup(ServerContextImpl.java:649)
         at
    com.sap.engine.services.jndi.implserver.ServerContextRedirectableImpl.lookup(ServerContextRe
    directableImpl.java:80)
         at
    com.sap.engine.services.jndi.implserver.ServerContextImplp4_Skel.dispatch(ServerContextImplp
    4_Skel.java:555)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:319)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:200)
         at
    com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:136
         at
    com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.pro
    cess(ApplicationSessionMessageListener.java:33)
         at
    com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

    First check is Java stack is running ?
    make sure J2EE_ADMIN user not locked.
    Ans please check password in secure area. check password in secure store should be correct.
    may be you can try with restart of SAP and DB.
    All the best
    regards
    nag

  • Image Processing in Java (E-Book) Request

    Can anyone post the links for this e-book
    i think this e-book is helpful.so,iam requesting all of you.
    Image Processing in Java
    by Douglas A. Lyon
    Publisher: Prentice Hall PTR; Bk&CD-Rom edition (March 1, 1999)
    Language: English
    ISBN: 0139745777

    Check ebay, amazon or your local seller for a copy. Or if you want a free copy, write the author (maybe he's a generous fellow), but don't bother people on this forum with posts like this.
    - Travis

  • Image processing in JAVA

    I m working on an image processing project and I want to know how JAVA supports image processing. Does it have proper API's for image handling and etc... And also about the performance, as JAVA would be slow for high processing jobs.
    Any suggestions as to wat should be the best platform for working on it.

    Some good books on this topic:
    Digital Image Processing: a practical introduction using Java.
    by Efford
    Building Imaging Applications with Java Technology.
    by Rodrigues
    Image Processing in Java.
    by Lyon

  • Hi I have been having a problem with Bridge in CS4 recently. So uninstalled CS4 and Lightroom 4.4 and reinstalled them on my Desktop PC. When I turned on Bridge through CS4, My thumb nail images disappeared and a thumb nail icon with CR2 appeared. Now som

    Hi I have been having a problem with Bridge in CS4 recently. So uninstalled CS4 and Lightroom 4.4 and reinstalled them on my Desktop PC. When I turned on Bridge through CS4, My thumb nail images disappeared and a thumb nail icon with CR2 appeared. Now some of my images have disappeared from Light room 4.4, but I can find them in CS4 and Bridge now shows some thumb nails as images and some as an icon with CR2. I have spent two weeks going through preferences etc. to find how to resolve my problem. Please can you Help? Meany thanks in advance
      Derek Randall

    I don't use LR and rarely use the bridge so I can not answers about thumbnails in them,  However thumbnails in windows file explorer and windows dialog for CS2 files will only show if you have installed codec into windows that will produce them. Windows does not do CR2 thumbnails on its own. I use FastPictureViewer Codec package for RAW File and PSD files thunbmail support.

Maybe you are looking for