Using clipboard in webdynpro java 730

Hi Experts,
i have a textedit which contains a text. Now I want to put it onto the clipboard.
How can I achieve this in WebDynpro Java 730? Please post me sample code.
Thanks
guest000

Hello Robin!
After checking in httpwatch, my Text edit is OPGD.MyAppCompView.TextEdit
...<tr><td ct="GLC" lsdata="{}" id="" class="" valign="BASELINE"><textarea class="urScrl urTedWhl lsNoResize urTedWhlEnbl" tabindex="0" ti="0" rows="5" cols="40" wrap="soft" id="OPGD.MyAppCompView.TextEdit" ct="TE" lsdata="" lsevents=",Change:{'urEventName':'TEXTEDITONCHANGE'}}" style="ime-mode:disabled;height:225px;width:500px;">----...
On this forum I can see some workaround using LinkToURL, but I would like to try WebWidget (especially because it is told there not to use this workaround, but after some research afaik WebWidget is exactly to use jscript and html), see this:
Accessing Clipboard
Here a similar hint is mentioned like
javascript:document.getElementById("KFHO.SomeView.InputField1").setAttribute("value",clipboardData.getData("Text"));
I don't know how exactly to use the WebWidget. Can you please give me some more hints? I would like to execute this "copy to clipboard" action once I click on a button.
Thank you very much I appreciate your help!

Similar Messages

  • Accessing SAP DB(Oracle/Max DB) without using RFC in webdynpro java

    Dear Friends,
    I'm developing an application in Adobe interactive Forms using webdynpro java. To retrive the data from R/3 generally we use RFC / BAPI's.
    But i dont want to use RFC / BAPI's which is written in ABAP.
    I want to write one RFC /BAPI using java to store  / retreive the data from R/3. or how to access the data / store the data using JAVA from R/3.
    Can any one guide me on the same.
    Thanks in Advance.
    Regards,
    Gowripathirao.
    Edited by: Gowripathirao on Nov 30, 2009 7:58 AM

    don't do that ( I always wanted to write this since joining SDN )
    If you want to access database tables in general, check the EJB3 tutorial in SAP Help
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/f72761af4020fde10000000a1553f6/frameset.htm

  • How to create CRUD application using bapi in webdynpro java

    Hi All,
          I have implemented the CRUD application using bapi  Now i want to create, retrieve , update and delete the existing table by click on Insert, delete, retrieve ,and update button dynamically. i get null values from database,  Please let me know the logic and procedure for how to create CRUD application using bapi  Please any one help me..
    Thanks in advance

    Hi,
    Hey tell me one thing your BAPI having CURD methods. See you are getting data from BAPI and pull the data in Table in WDJ. So if u can do any action it will comes trough BAPI.
    If your BAPI having CURD methods. You can implement CURD methods in WDJAVA also.
    @ You said you are getting null values from the database. Please let me know what code you have to wrote for CURD. Please tell me.
    Hope this is help full for u
    Best Regards
    Vijay K

  • RFC call in a Webdynpro Java help?

    Hi all,
    I need used in my webdynpro Java a FM that I created in R3. Exactly I need load in a combo box  the results of my function module.
    I do it this but not works correctly. I think thats my code is not correctly..Anybody can help me?
    public void inicializarPrimerAprobadorTarea( )  {
        //@@begin inicializarPrimerAprobadorTarea()
       //Creamos variable para transformar el login en nombre
       String nombre;
       IModifiableSimpleValueSet valueSet = wdContext.nodeCONTAINER().getNodeInfo().getAttribute("AGENT_APPROVAL").getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
        // Obtenemos la primera tarea asociada al los aprobadores
        PP4Model2 pp4model2 = new PP4Model2();
        Z_Hsp_Wf_Gbs_Apro_Pva_Input rfcPrimerAprob = new Z_Hsp_Wf_Gbs_Apro_Pva_Input(pp4model2);
        //wdContext.nodeZ_Hsp_Wf_Gbs_Apro_Pva_Output().bind(rfcPrimerAprob);
        try {
    rfcPrimerAprob.execute();
      wdContext.nodeOutput_1().invalidate();
      if(rfcPrimerAprob.getOutput().getEx_Subrc()!= 0){
       msgmgr.reportException(rfcPrimerAprob.getOutput().getEx_Mensaje());
      }else{ 
       for( int i=0;i<wdContext.nodeLt_Tabla_Pva().size();i++){
        //Transformamos el login en nombre
        nombre = getNombreUsuario(wdContext.nodeLt_Tabla_Pva().getLt_Tabla_PvaElementAt(i).getApprover_Id());
        //Imprimimos mensajes para ver si está correcto.
        msgmgr.reportSuccess(nombre);
        //Metemos el valor en la variable del container.
        valueSet.put(wdContext.nodeLt_Tabla_Pva().getLt_Tabla_PvaElementAt(i).getApprover_Id(),wdContext.nodeLt_Tabla_Pva().getLt_Tabla_PvaElementAt(i).getApprover_Id());  }
    }catch (Exception e) {
       msgmgr.reportException("Error. "+e.getMessage());          
        //@@end
    Any body knows the main steps from call correctly to my FM?
    Regards,
    C. Castillo

    Thank you very much, now my method works correctly:
    //@@begin inicializarPrimerAprobadorTarea()
       //Variable para transformar el login en nombre
       String nombre;
       IModifiableSimpleValueSet valueSet = wdContext.nodeCONTAINER().getNodeInfo().getAttribute("AGENT_APPROVAL").getModifiableSimpleType().getSVServices().getModifiableSimpleValueSet();
       // Obtenemos la primera tarea asociada al los aprobadores mediante la función de PPA Z_Hsp_Wf_Gbs_Apro_Pva
       PP4Model2 pp4model2 = new PP4Model2();
       Z_Hsp_Wf_Gbs_Apro_Pva_Input rfcPrimerAprob = new Z_Hsp_Wf_Gbs_Apro_Pva_Input(pp4model2);
       try {
        rfcPrimerAprob.execute();
        wdContext.nodeOutput_1().invalidate();
        if(rfcPrimerAprob.getOutput().getEx_Subrc()!= 0){
         msgmgr.reportException(rfcPrimerAprob.getOutput().getEx_Mensaje());
        }else{ 
         if (rfcPrimerAprob.getOutput().getLt_Tabla_Pva().size()== 0){
          msgmgr.reportException("No existen primeros aprobadores responsables para esta tarea, por favor póngase en contacto con el Administrador de la aplicación");
         }else{
          for(int i=0;i<rfcPrimerAprob.getOutput().getLt_Tabla_Pva().size();i++){
           //Transformamos el login en nombre
           nombre = getNombreUsuario(rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id());
           if(formInfo.getValue().equals("Inicio")|| formInfo.getValue().equals("Modif")){
            if (nombre.equals(rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id())){
             msgmgr.reportException("El login: "+rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id()+"es eliminado de los valores del primer aprobador por no existir en SAP Portal");
            }else{
             //Metemos el valor en la variable del container.
             valueSet.put(rfcPrimerAprob.getOutput().getLt_Tabla_Pva().get(i).getApprover_Id(),nombre); 
       }catch (Exception e) {
        msgmgr.reportException("Error. "+e.getMessage());          
        //@@end
    If anybody can be improve please let me know,
    Regards all,
    C. Castillo

  • How to access Portal Database ( ORACLE) through webdynpro  java

    Hello experts,
    I  want to <b>access portal database tables</b> ( WCR_USERSTAT,WCR_WEBCONTENTSTAT,WCR_USERFIRSTLOGON )<b> using</b> <b>webdynpro  java</b> application/service . Our portal DB is Oracle , so please tail me some solution for this asap. I had tried using   <u>Portal Activity Report</u> iViews  but that no fulfill  our requirment.
    Regads,
    Laxmi..

    Hi,
    You can use the following link which will help you to resolve the problem:
    /thread/100181 [original link is broken]
    thanks & regards,
    Manoj

  • Webdynpro Java based application performance testin

    Hi Experts,
    could any one of you please provide me step by step guide to use some tool which can be used for profiling webdynpro java based application?
    this is very urgent...... kindly help
    Best regards
    Falgun

    My recommendations:
    - Always use a BufferedInputStream and BufferedOutputStream around the socket streams
    - Increase the socket send and receive buffers to at least 32k if you are on a Windows platform where the default is a ridiculous 8k, which hasn't been enough for about 15 years.
    - Your 2-second timeout is far too short. Increase it to at least 10 seconds.
    - Your strategy of counting up to N short timeouts of S seconds each is completely pointless. Change it to one single timeout of N*S seconds. There is nothing to be gained by the complication you have introduced to this.

  • How to use "Select options" in Webdynpro Java ?

    HI experts ,
    I want know if can be implemented "select options" like the ones used in R3 - ABAP in a webdynpro Java.
    And in case of being possible, how to implemented using Adaptive RFC or BAPI with a R3 backend system?
    Our Portal is EP6.0 SP18 ,J2EE 6.40 .
    Thanks & Regards,
    Jianguo Chen

    Hi Jianguo,
    check these links:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/5f/e5de3f68d48f15e10000000a155106/frameset.htm">http://help.sap.com/saphelp_nw04/helpdata/en/5f/e5de3f68d48f15e10000000a155106/frameset.htm</a>
    You may use 2 EVS to simulate your select option.
    Regards,
    Gianluca Barile

  • Creating webservice using webdynpro java calling bapi from r/3

    hi all,
    as i am new to this area can anyone provide me a guide to create a simple webservice using webdynpro java to call bapi's from r/3?
    i want to consume the created webservice on a .net client.
    Thanks in advance,
    Raghunandan

    You can use the SAP .NET Connector to do it.
    Download from [http://service.sap.com/connectors|http://service.sap.com/connectors].

  • Creating a pdf from Webdynpro iview using "WebDynpro Java"

    Hi everybody,
           I have a requirement like creating a pdf file from the iview content in a web dynpro project.  
           Can any one explain me the procedure as well as code how to create a pdf from the table content using the "WebDynpro Java". 
    Thanks in advance,
    Naveen

    Hi Naveen,
    To be able to use PDF forms in Web Dynproapplications:
    &#56256;&#56442;SAPNetWeaver Developer Studio(minimum SPS 11) is installed
    &#56256;&#56442;Adobe LiveCycleDesigner7.0 is installed
    &#56256;&#56442;Adobe Reader7.0.x is installed
    &#56256;&#56442;SAP NetWeaverWeb AS Java compatible with the DevStudio s installed
    &#56256;&#56442;The Adobe Document Services are deployed and configured on the SAP J2EE Engine.
    &#56256;&#56442;The Active Component Framework(ACF) of the Interactive Forms integration is installed. (not mandatory)
    &#56256;&#56442; Internet Explorer(version 6)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/2b6db1c4-0801-0010-faa5-ff4b4df55b45
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f09fc2-0401-0010-1482-dbf9891e7613
    Web Report to PDF
    /thread/104121 [original link is broken]
    Dynamik PDF
    Create Adobe PDF for user to download and print
    Online PDF
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8d7b9e7d-0c01-0010-2495-947691554cb7
    Regards,
    Mithu

  • How to use HTML Tags in webdynpro java

    Hi,
         Can any body tell me how to use HTML Tags in webdynpro java.
    If u provide me with sample code it will become more usefull.
    Thanks & Regards,
    SN

    HI,
    Please find the steps:
    Create a html file and store in your webdynpro project
    Add the html contents in your file
    & Create a IFRAME UI element and refer you html file
    Now you able to see the html in webdynpro
    Thanks & Regards,
    Ram

  • How to send pdf attachment through mail using Webdynpro-Java

    How can i send the Adobe Interactive Form with data involved as a PDF attachment to mail? using Webdynpro-Java.
    Is there any Adobe API or jar file for generating pdf?
    Helpful answer is highly appreciable and rewarded with points.!

    Hi Sankar,
    try [Offline Interactive PDF Form Using E-Mail|/docs/DOC-8061#49]
    Michal

  • IE11 compatibility of application developed using webdynpro java in NWDS7.01.12

    Hi,
    I have a webdynpro java application developed using NWDS 7.01.12 with jdk1.4. This portal application is not working when accessed using IE11 browser. The action on buttons and selection from a drop down list in this application is not responding in IE11. Its working well with mozila fire fox vrs 31. On click of action the following error is encountered:
    SCRIPT438: Object doesn't support property or method 'attachEvent'
    File: sapUrMapi_ie6.js, Line: 683, Column: 7
    which points to the below piece of code:
    function sapUrMapi_initLinkStatus() {
      var oNodes = document.getElementsByTagName("A");
      for (var n=0;n<oNodes.length;n++) {
        if (oNodes[n].href.indexOf("javascript:void")>-1) {
          oNodes[n].attachEvent("onmouseover",sapUrMapi_resetStatus);
          oNodes[n].attachEvent("onfocus",sapUrMapi_resetStatus);
    Also on selection from the combo box the below error is displayed.
    SCRIPT438: Object doesn't support property or method 'createEventObject'
    File: sapUrMapi_ie6.js, Line: 2193, Column: 2
    Code:
    oComboBoxSCEvent = document.createEventObject( oEvt);
    The above mentioned errors are being pointed to sapUrMapi_ie6.js file.
    Is there any solution to over come these issues other than setting "user agent string" value in the browser?
    Can this be resolved with any changes in the application or is there any SAP provided solution?
    Please help me to resolve this issue.
    Similar issues are also pointed to popup_ie6.js files at "window.attachEvent("onload",sapPopup_init)" and
    "window.document.attachEvent("onmousemove",resetMouseOver)".
    Thankyou.

    Hi Karthika,
    It is mentioned in Ervin's famous doc, that NWDS version must match that of RunTime System.
    NWDI vs. NWDI content
    I thought the NWDS must be updated via update sites, but surprisingly I could find the patch in service market place.
    I do not know how to get the download link directly for you.
    Perhaps you can spare a few seconds and navigate to
    http://service.sap.com/swdc
    Support Packages and Patches
    A-Z Index
    N
    SAP NetWeaver
    EHP1 for NetWeaver 7.0
    Entry by Comopnent
    Developer Studio
    BR, Tom

  • Is it possible to use the JS coding in webdynpro java application!!!

    Hi Experts,
    Is it possible to use the JS coding in webdynpro java application by any means?
    If yes, kindly suggest the procedure or any pointers for the same.
    Thanks in advance.
    Regards,
    Anurag

    Hi,
    I'm not an expert in this matter, but I will post here what I know:
    In NW7 releases (at least 7.01.05) it is possible to run JS, also to capture any WD Event and run your own JS code after that, using IFRAME. I have jQuery running here, it would take some time till you create a "framework" to enable some easy usage. I just want to highlight that is possible, thou I think it's a lot of effort.
    Not sure about CE7.1 it seems iFrame is deprecated. Still, being deprecated should not "block" the usage, thou it's not recommended since this functionality can be removed in next releases.
    I've read that CE7.2 has JS support, and I think you should try having a word with Armin maybe..
    Hope it helps,
    Daniel

  • Some issues when consuming RFC2 model using WebDynpro Java CE 7.11

    Hi Experts ,
    I'm using Web Dynpro for Java to develop our project. I have issues when I use RFC 2 model to call BAPI function . I already create the RFC 2 model successfully to call one PO BAPI function --- BAPI_PO_GETDETAIL. The whole project build and deploy successfully. At run time, it will call the execute() function of the model object. It also works fine and get the return values.
    I just want to get two return objects : PO_Items and PO_Item_Schedules .
    So far, every thing works fine. But when I want to iterate the PO_Items node and get each property value of current element, the following error occurs :
    com.sap.tc.cm.base.exception.BaseModelRuntimeException: Class 'java.lang.String' of new attribute value is not assignment compatible for attribute 'Prnt_Price' of type 'boolean' in model class 'com.sap.demo.localwd.qaspomodel.Bapiekpo'
        at com.sap.tc.cm.base.model.BaseGenericModelClass.setAttributeValue(BaseGenericModelClass.java:306)
        at com.sap.tc.cm.arfc2.model.ARFC2GenericModelClass.unmarshalFromJCoRecord(ARFC2GenericModelClass.java:287)
        at com.sap.tc.cm.arfc2.model.ARFC2ModelObjectCollection.doUnMarshalAt(ARFC2ModelObjectCollection.java:97)
        at com.sap.tc.cm.arfc2.model.ARFC2ModelObjectCollection.get(ARFC2ModelObjectCollection.java:120)
        at com.sap.tc.webdynpro.progmodel.context.ModelElementList.getElement(ElementList.java:1726)
        ... 72 more
    I use the same way to iterate PO_Item_Schedules element. It also works fine. Therefore, I don't know why this error happens?

    Hi Experts,
    I continue this thread because it seems that I have the same problem as the one asked by Wester Wei.
    I'm developping an application on NWDS using CE 7.11 (I've learned RFC2 with the tutorial [here|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0b102ea-efff-2b10-b3aa-d9e84a2c6bb6?overridelayout=true] ). The problem seems to come from the RFC2 Model, but I just import it (and I can't modify it afterwards, because it is a read-only model).
    So, you advise to "declare one boolean variable and assign Prnt_Price to that variable." or to "Explicity convert boolean to string.", I think you are right, but I don't know how to do that in my app (in the component controller ?). Therefore, the attribute that occurs the problem is in the context outputs, to I don't know I will be able to affect it before calling the BAPI.
    Could you tell me how to fix this problem without modifying the model (because it's read-only) ?
    Thank you for advance,
    Louis

  • Error in webdynpro java interactive forms used

    hello,
    I have followed the installation manual to configure ADS wizzard service which is done successfully. I have also made a webdynpro java project where I use very simple smartform with FirstName and LastName as context variables. But when I run the application I see
    java.io.IOException: Cannot connect to http://<server>:50000/inspection.wsil, used user to connect: administrator Check if the valid port is used or the system is not down. HTTP Message : Unable to connect to <server>:50000 - Connection timed out: connect
    If I put this wsil URL it works fine. But I don't know if any thing is missing in configuration. I am quite new in smartform need help.
    I have also downloaded credtional file from SDN but I am new and need help to setup in NWA if this cause the error.
    If any one can recommend me step by step guide would be helpful for me.
    Thanks in advance.
    NK

    Hello Otto,
    well I have no such concrete one source to follow and setup ADS services. But some how from sap help portal, and Tutorial on Installing Credentials and Configuring ADS author Amol Gupta, and ADS configuration guide sourced: http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30a9630b-4f89-2a10-6fab-e311b3ffd9a6
    I have also tested the service in the wsnavigator AdobeDocumentServicesTestVi, but got error level 2 with Entity: ConfigurationService Error: Checking for default credential aliases - failed
    Here I found creditional error. which I have to configure in NWA, I guess.
    I have downloaded creditional from http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70aa75cc-6ac3-2910-c78c-ade192ec861e
    I need help to configure this creditional also.
    And If you have some useful guides then please recommend me.
    Regards,
    NK

Maybe you are looking for

  • How do I fix my audio/video in iChat 4.0.9?  it has worked perfectly until last night.

    How do I fix my audio/video in iChat 4.0.9?  it has worked perfectly until last night.  I have been having video calls iChat with my granddaughter for 4 weeks.  All of a sudden last night I wasn't able to complete the video/audio.  We were able to iC

  • Upgrade Mac OS on my iBook and compatibility with iMac

    Hello, I had an iBook bought around 2002 in the US and it's a G3. I've moved to Thailand and haven't used it a lot due to limited applicability in Thailand. But now, Mac is more available so I'm now considering bought the new iMac. I wonder if I can

  • My iphone wont play through my left earphone

    having problems palying music through my earphones, right side play fine but left side is very quite. also when i plug into my trucks radio it doesnt play through any of my left side of speakers. Anyone have any ideas?

  • Query panel with table not working in taskflow region

    I've created an adf query panel with table(using all queriable attributes criteria) in a page fragment and at design time it's showing properly. But when inside a region in a jspx page, the search, save and reset buttons of the query panel are not re

  • Measuring point wise target value.

    Hi, functionmodule to get Measuring point wise Target value or any db table to get  Measuring point wise Target value --Ganesh