Using programmatic windows copy and paste functions within a form

Hi All,
My client is using the "mouse navigation limit" set to item, which is creating some interesting challenges.
I'm using copy_region and paste_region to copy to and from the paste buffer. However, there does not seem to be an easy to use "highlight all text in the field" function, which you can use prior to the copy.
Also if you wish to append the pasted text to the end of the field, but can't use the mouse to move to the end of the field, you need to programmatically put the cursor at the end of the field.
The code I am currently using on a non-navigable button, to paste is:
declare
     current_field varchar2(100);
begin     
     current_field := name_in('system.current_item');
     go_item('big_text');
     paste_region;
     go_item(current_field);
end;
Any help gratefully received.
thanks
Tony
Edited by: Tony Grigg on Aug 25, 2008 11:33 AM

put an item from a control block onto the canvas and give it a height of zero. then try this:
declare
  current_field varchar2(100);
begin
  current_field := name_in('system.current_item');
  --go_item('big_text');
  go_item('control.item');
  :control.item := null;
  paste_region;
  :big_text := :big_text||:control.item;
  go_item(current_field);
end;Edited by: u3 on Aug 25, 2008 12:40 PM
Navigating to the control block will cause the record to be validated, so you might need the control item to be a non-database item on the same record.

Similar Messages

  • Cannot use copy and paste function in PSE10?

    Today i went to copy and then paste an image onto another one,i could not use the copy or paste function(in pse 10). Only the paste function was usable  and when i hit it it pasted the picture of an eagle onto the image. This eagle i had copied from a particular website(unrelated to photoshop) amd pasted it to a folder in windows live photo gallery. I tried deleting this eagle from the windows gallery,but still i could paste the eagle onto the other picture.  And it created another layer with the picture of the eagle.This is very strange. How can this be corrected. Also as usual my lassoo tool is malfunctioning in pse 10?  Maybe uninstalling  and re-installing pse 10 would solve the problem  and if so can you give me instructions on how to do this safely or refer me to a link.  Would appreciate a quick reply. Thanks!!

    Thanks Barbara for your help  and your nice explanation as to how the copy and paste function works. Never had a problem before but now it functions normally!
    Irwin Lakin
    <mailto:[email protected]> [email protected]
    508-866-4250

  • I am trying to edit my website using the copy and paste function and am getting an error message that says my browser will not allow this function.. what do I do? thanks!

    I am trying to do a simple copy and paste function while editing my website and I am getting an error message that says that my browser will not allow this function.. how can I override this?
    thanks
    Doug Snyder

    You need to set Copy'n'Paste security policies for that domain in Firefox.
    AllowClipboard Helper will help you do that. <br />
    https://addons.mozilla.org/en-US/firefox/addon/allowclipboard-helper/

  • Copy and paste function not stable

    i have problems using copy and paste function. the copied stuff SOMETIMES would not paste after i either Ctrl + C or right click to copy the stuff. does anyone here experience the same problem or have the solution? thanks in advance.

    you might want to check whether you can copy the contents or not.. try to use the copy and paste function by right click the mouse to test..

  • Multi copy and paste function

    Copy and paste is second nature.
    Does anyone know if its possible to have several open copy and past functions.
    Often one needs to carry more than one thing one needs to copy.
    Thx
    <Edited by Host>

    Which is as good a reason for using something else!
    Try ShoveBox, works for me:
    http://www.tuaw.com/2009/04/06/shovebox-for-mac-and-iphone/

  • Copy and paste function stopped working?

    The copy and paste function stopped working on my laptop (ibook g4, OSX 10.3.9). It does not work in any applications, tried MS word, safari, preview.
    How do I recover this function?
    Thanks.

    Hi Magno2002
    Your Finder may have lost contact with the clipboard, so try this.
    In ~/library/preferences locate these two files and trash them
    com.apple.finder.plist
    com.apple.sidebarlists.plist
    To re-establish them, log out and log back in again.
    You will need to reset your finder and sidebar as you had them before.
    regards roam

  • Disable copy and paste function in jtextfield

    I wish to disable the copy and paste function (CTRL+C and CTRL+V) of the data in the jtextfield... anybody can help?

    I think you can add a KeyListener to listen to those keys and when you get such an input just do nothing. Not tested though.

  • Really slow copy and paste function

    I'm having alot of trouble with the copy and paste function in Numbers on my Mac.  I work from home and have to copy and paste alot of spreadsheets and numbers but when I copy a large set of numbers from one spreadsheet to another it takes FOREVER to paste and it constantly freezes my computer.  Does anyone else have this problem and have you found a solution?

    Have you upgraded SQL server from 2000?  You may also check this thread:
    SQL 2005 with database compatibiltiy level set to 80

  • My Copy and Paste Function is not working

    I recently upgraded to Firefox 16.02 and everything worked fine for a while but last night out of the blue my copy and paste function stopped working. As far as I know I have not done anything different. My copy paste function still works in Chrome and IE.
    I have uninstalled/reinstalled Firefox and that did not solve the problem. As we speak I am running an AV scan and I also cleared the web cache and what not in Firefox. Ran it in safe mode... nothing seems to work!
    Interestingly though, when I went to Copy and Paste the "trouble shooting info" from the clipboard to here on this page it worked fine.

    For problems copying the results of Google translations, see these threads:
    * [https://support.mozilla.org/en-US/questions/940979 i can't copy translate from google traslator, ctrl-c ctrl-v don't work]
    * [https://support.mozilla.org/en-US/questions/940871 Can't copy translated text from Google Translate web page?]

  • My copy and paste functions are not working properly since iOS 8 update

    Ever since I updated to iOS 8 on my iPhone 4s the copy and paste function isn't working. It'll work the first time but any time I copy something else it pastes the first thing I copy. The only fix I've found is rebooting the phone but that is a pain to do every time I want to copy something and should be very unnecessary. I updated to 8.0.2 but that didn't fix it.

    Have you tried rebooting?

  • Jsut update the adobe reader to version xi but why when I try to typing, no copy and paste function?

    jsut update the adobe reader to version xi but why when I try to typing some information, no copy and paste function available?

    What is your operating system?
    "type some information" into where - a form field?
    "no copy and paste function available" - what exactly does that mean?

  • Copy and pasting a page in an existing document? Copy and paste functions are greyed out? Also tried extracting the page to copy but am alerted that an incorrect structure was found in the PDF file?

    copy and pasting a page in an existing document? Copy and paste functions are greyed out? Also tried extracting the page to copy but am alerted that an incorrect structure was found in the PDF file?

    What do you mean by "copy and paste a page"? What tool have you selected? Or are you just assuming you can select stuff and copy/paste as in Word?

  • After the most recent firefox update I can no longer copy and paste. the fuinction only works in Windows and I HATE usign it. Any suggestions on how to restore the copy and paste function while using Mozilla?

    I have been unable to use the copy and past command while using mozilla. the fucntion does work in windows IE, but I don't want to use windows. How do I restore or fix this function? I varies, works some days and not others.

    See http://kb.mozillazine.org/Clipboard_not_working
    Try to use the keyboard if the buttons on the web page aren't working.
    * Copy: Ctrl+C or Ctrl+Insert
    * Paste: Ctrl+V or Shift+Insert
    * Cut: Ctrl+X or Shift+Delete

  • Cut,copy and paste functions using the mouse

    Hi.
    I'm a new mac owner and have read that I should be able to do the above. Is that correct, and if so how can I get my mouse to cut, copy and paste text. I can do it through edit but am unable to do so by right clicking.
    Thanks for any help in advance.

    Works fine in TextEdit and Pages - select text by clicking-and-holding and dragging the mouse across it, releasing, then right or control-clicking to bring up the contextual menu which includes these functions. (If you just right-click in TextEdit it will highlight just that word and bring up the menu). It doesn't work in, for example, Safari when entering text as in this forum or reading a web page.

  • How do I use snapshot or copy and paste an image in Adobe reader with windows 8?

    Two things:1) how do I copy and paste images from a PDF into an email?  It will not let me do it anymore.  Also, how do I save a PDF document with all it's content?  Now when I save a proof  part of the content is not there when opened in CS6.

    Check the document properties; is copying allowed?

Maybe you are looking for