How to implement copy paste functionality with IE

Hi Experts,
I am working on jdev 11.1.1.6.0, I have requirement to implement copy & paste functionality with IE Browser in ADF table. I have followed below link to implement the functionality.
http://one-size-doesnt-fit-all.blogspot.com/2011/04/aftable-restoring-basic-browser-copy.html
But copy&functionality is working fine, but when table loading I lost vertical/horizontal scroll bar. Can any one suggest me what is wrong here/what i am missing here.
My logic:
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
          xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:c="http://java.sun.com/jsp/jstl/core"
          xmlns:sni="/SNIDeclarativeComponentLib">
  <c:set var="tumuiBundle" value="#{adfBundle['sni.tum.view.TestUIBundle']}"/>
  <af:resource type="javascript">
    var globalLastVisitedField = null;
    function captureTableFieldName()
      return function (evt)
        evt.cancel();
        globalLastVisitedField = evt.getSource();
    function copyMenu(evt)
      if (globalLastVisitedField == null)
        alert("copyMenu() Error: No field could be
                                 identified to be in focus");
      else if (navigator.appName != "Microsoft Internet
                                 Explorer")
        alert("Copy function is only
                                 supported in Microsoft Internet Explorer");
      else
        var txt = globalLastVisitedField.getProperty("ItemValue");
        window.clipboardData.setData('Text', "" + txt);
      evt.cancel();
  </af:resource>
  <af:subform id="f1" defaultCommand="srchcb">
    <af:panelStretchLayout id="psl1" topHeight="auto" bottomHeight="auto"
                           styleClass="AFStretchWidth">
      <f:facet name="center">
        <af:panelCollection id="tab" styleClass="AFStretchWidth">
          <af:table value="#{bindings.TestVO.collectionModel}"
                    var="row"
                    rows="#{bindings.TestVO.rangeSize}"
                    emptyText="#{bindings.TestVO.viewable ? 'No data to display.' : 'Access Denied.'}"
                    fetchSize="#{bindings.TestVO.rangeSize}"
                    rowBandingInterval="1"
                    selectionListener="#{bindings.TestVO.collectionModel.makeCurrent}"
                    rowSelection="multiple"
                    id="Table" styleClass="AFStretchWidth"
                    contentDelivery="immediate">
            <f:facet name="contextMenu">
              <af:popup id="pMenu" contentDelivery="lazyUncached">
                <af:menu id="mMenu">
                  <af:commandMenuItem text="Copy" id="cmiCopy">
                    <af:clientListener method="copyMenu" type="action"/>
                  </af:commandMenuItem>
                </af:menu>
              </af:popup>
            </f:facet>
            <af:column sortProperty="Name" sortable="true"
                       headerText="#{bindings.TestVO.hints.Name.label}"
                       id="c33">
              <af:outputText value="#{row.Name}" id="Nam">
                <af:clientListener method="captureTableFieldName()"
                                   type="contextMenu"></af:clientListener>
                <af:clientAttribute name="ItemValue"
                                    value="#{row.Name}"></af:clientAttribute>
              </af:outputText>
   </af:column?
   </af:Table>
-Thanks.

Hi,
I can't tell. What I can tell is that the code in the sample you reference for sure doesn't cause this - but it doesn't help you I guess.
Btw.: Here is a solution that works on all browsers. The solution in the blog (Chris - please forgive me) is a bit awkward to be honest.
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/012-copy-table-cell-values-169137.pdf
http://www.oracle.com/technetwork/developer-tools/adf/learnmore/tablecellcopypaste-168499.zip
Frank

Similar Messages

  • How to implement copy functionality in advanced table

    hi all, i have a advanced table with some data populated, all the rows has a checkbox where the user can select the rows which he wants, my requirement is how to implement copy functionality, i,e i need to show the same set of rows which the user selected in the same advanced table. can any one give me an idea of how to do this

    You can copy the key of the selected rows to the copy page and based on those keys render the rows. On this copy page, once user commits after any modification to data, read those rows and save with new keys.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to add cut,copy,paste functionality ?

    Hello everybody,
    I have to add cut,copy,paste functionality to my RichTextEditor for which I have already added
    buttons to editors toolbar,Now I want to add these three functionalities to my editor.
    Can anyone tell me or provide me some code sample for it ?
    Thanks

    Well Thank you for your response,What I am looking for is ,the user should be able to copy,cut and paste the selected text anywhere,
    (e.g.If user selects the text and clicks the COPY button on the RichTextEditor , he can copy that selected text into notepad or any other editor or any other place in the system)
    I have written the code for copy and its working properly
    System.setClipboard(richTextEditor.selection.text);
    I was wondering how to write the code for cut and paste.
    many thanks again

  • Calling Javascripts with a panel then prevents copy/paste functions in Photoshop CS5

    Hi,
    I have a simple panel in Photoshop that calls a Javascript when a button is pressed.
    I have a simple script that does some Duplication of layers and a bit of simple image manipulation.
    I run the script from the Extended Toolkit and eveything works fine.
    I run the same script from the Panel and the script runs fine; but then the copy / Paste functionality of Photoshop is broken.
    I have to close the Panel window or run the script from the toolkit to get the functionality back.
    EDIT:  I have not narrowed this down to simple interations with the Panel can casue this issue - clicking on icons, switching `Tabs` etc...
    Does anyone know why this is happening?
    Cheers,
    Pete

    Hi,
    I created a simple panel that only had a button that calls an external JavaScript.
    Even if I simply click on the panel a few times, move it around etc without executing the script, I can get the copy paste error.  It happens 90% of the time and interestingly it only happens on the currently active document.
    The only way to get the functionality back is to close the panel.
    It seems to be a focus issue,  but as I'm not calling any script in this case - where could I put the Bridge Talk command? 

  • Excel copy / paste function does not work with Smartview

    We recently upgraded to latest version and this is the first tiime we are using Smartview. None of our users can use Excel copy / paste function between worksheets in a file or between files. The function only works within an active worksheet. What is the fix here?

    Try THis
    Disable the Transition formula evaluation and transition formula options.
    In Office 2003:
    1. Point to Tools -> Options...
    2. Select the Transition tab
    3. Deselect the following entries:
    - Transition formula evaluation
    - Transition formula entry
    4. Choose OK
    5. Repeat the above steps for each worksheet in the workbook, by selecting each one in turn adn repeating steps 1-4.
    In Office 2007:
    1. Point to the Office button
    2. Choose Excel Options
    3. Select Advanced (at the left)
    4. In the right-hand pane, scroll to the bottom
    5. Under Lotus Compatibility Settings for..., deselect:
    - Transition formula evaluation
    - Transition formula entry
    6. Select the next worksheet in the drop-down menu
    7. Repeat steps 5-6 until all worksheets have been processed
    8. Choose OK.

  • Preventing PrintScreen and Copy+Paste Function on Portal Pages

    Hi,
    There are some javascript codes available over internet which can be implemented on ordinary web pages to prevent PrintScreen and Copy+Paste functions.
    We tried to implement the same codes by putting into MasterHead but no success.
    We need to know if this is not possible, if possible how?
    regards

    Download and run Leopard Cache Cleaner and do a deep cleaning of all the cache files.  reboot.

  • How to Implement custom share functionality in SharePoint 2013 document Lib programmatically?

    Hi,
    I have created custom action for Share functionality in document library.
    On Share action i'm showing Model pop up with Share form with addition functionality.
    I am developing custom share functionality because there is some addition functionality related to this.
    How to Implement custom share functionality in SharePoint 2013  document Lib pro-grammatically?
    Regards,
    - Siddhehswar

    Hi Siddhehswar:
    I would suggest that you use the
    Ribbon. Because this is a flexible way for SharePoint. In my project experience, I always suggest my customers to use it. In the feature, if my customers have customization about permission then i can accomplish this as soon
    as possible. Simple put, I utilize this perfect mechanism to resolve our complex project requirement. Maybe we customize Upload/ Edit/ Modify/ Barcode/ Send mail etc... For example:
    We customize <Edit> Ribbon. As shown below.
    When user click <Edit Item>, the system will
    render customized pop up window.
    Will

  • How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values?

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

  • Copy/paste function not working in Firefox 22. Always good in previous versions

    Copy/paste function not working in Firefox 22. Always good in previous versions editions

    Well I've uninstalled FF22, thanks for the suggestion.
    Chrome works perfectly with ZA and C&P.

  • How do I copy & paste from an email to another web site?

    How do I copy & paste from an email to another web site?

    Hello, not quite sure what it is you want to do.
    In Mail you can copy something by highlighting it & CMD+c, or Mail>Edit>Copy, but whether you can paste it to a website, not sure, but you could say paste in in a Reply here...
    Re: Grey Screen with spinning gear
    reply from duwatucan in Mac mini - View the full discussion
    Congratulations, your post has solved duwatucan's question.
    Learn more about the Apple Support Communities Reputation System
    Did this help? Go to the message, sign in, and reply
    Start a new discussion in the same community

  • How can i copy,paste an Object ?

    How can i copy,paste an Object which i define by myself?

    implements Cloneable and define a clone method, for example
    public class ObjectA  implements Cloneable {
       // Data member
       String data;
       public ObjectA() {
       public void setData(String data) {
          this.data = data;
       public Object clone() {
           ObjectA tempObject = new ObjectA();
           tempObject.setData(this.data);
           return tempObject;
    }

  • Copy paste function no longer works on my mac pro, copy paste function no longer works on my mac pro

    My copy paste function no longer works on my mac book pro. How can I reinstate it?
    Thank you

    Try restarting the computer.

  • How to implement a back functionally like the back of the browser

    Hi, I have a commandImageLink("go back") in a template jspx. How to implement the back functionally like the back of the browser with a managed bean method??. For know I m not using task flows.

    I think you can use a javascript method to go back to the previous browser page.
    http://javascript.about.com/library/blback.htm
    http://www.pageresource.com/jscript/jhist.htm
    http://www.w3schools.com/jsref/met_his_back.asp
    Perhaps you find something useful and related to backing beans here:
    http://adfdevelopers.blogspot.com/2009/04/some-handy-code-for-backing-beans-adf.html
    NA
    http://nickaiva.blogspot.com

  • Copy & Paste Functioning Incorrectly

    All of sudden, the copy & paste functionality within Dreamweaver has gone crazy. Each time I try to highlight some lines of code to copy to my windows clipboard, the entire file gets selected. Or if I am finally able to get to a couple lines of code selected, once I hit Ctrl + C the entire document gets highlighted and copied to the clipboard.
    How do I fix this issue and revert back to normal copy & paste behavior?
    All other windows apps work fine. This is only happening in dreamweaver.

    Well the only way I have figured to overcome this is to do a "find" on any string immediately after downloading the document. For what ever reason that action relieves my mouse-drag and my directional keys from doing weird things. DW is a really nice tool

  • User presets for copy/paste function.

    User presets for copy/paste function? 
    During an edit session, I am constantly switching to, and from copying: crop (only), and copying everything except "local adjustments" and "basic tone".  I use a few other combinations as well. Switching between these involve a lot of tedious (& error prone) checking and unchecking of boxes. A preset option of some sort would help here.
    What I do is edit one photo (in a string of similar photos), then copy it.  Then select similar photos and auto sync them with the paste command,  In an action sequence, the crop often needs to be done separate.  Also the lens profile & calibration needs to be pasted separate if I happened to be switching between two camera/lenses.

    Hi Per,
    The below article will be helpful
         Copy And Paste Data Between Excel Sheets Does Not Work When Smart View Add-In Enabled (Doc ID 1313584.1)
    Thank you,
    Charles Babu J

Maybe you are looking for

  • With Lion, Mac no longer recognizes flash drive or Kindle.

    I am using a 13-in unibody Macbook (late 2009) running OS X Lion 10.7.1, and I am having trouble using flash drives and my Kindle.  USB-connected printers still work, and my USB-connected tablet also works as normal.  Flash drives and my Kindle show

  • Response in BPM

    Dear All I am doing a scenario where I am receiving an asynchronous message in BPM and sending it Synchronously to the external system A. When I get a response from the external system I have to check a condition in BPM and based on that either have

  • TouchScreen Monitor + mac mini = don't work

    There is a big monitor with TouchScreen. It works fine connected via USB with any computer with Windows XP or Windows 7. But it doesn't work with mac mini. What I have to do to force it to work normally?

  • HT5312 How do I recover my security question answers?

    Please help I can't remember my security question answers and I don't know how to recover them.. Please help!

  • Naming Standards for SAP's Component Model Objects....

    In using SAP's Component Model, Scenario 3, there's a great deal of confusion in trying to version tracks, sc's, dc's, etc. Since SAP does not currently have Best Practices for the use of the NWDI and the Component Model, can someone else provide me