EditField does not support the cut/copy/paste?

I added a simple EditField to a screen and can not pull the text selected by the user.  The following code displays the message 'Not copyable' every time.  Yes, the text is selected in the user interface when this code is executed. I use the JDE 4.7 and the behavior is the same on the Simulator and the device (storm).

' Public Sub fieldChanged (field field, int context)

{
If (! ef.isSelectionCopyable ())
{
Dialog.Alert ("not copied");
return;
}
                   
Clipboard cb = Clipboard.getClipboard ();
ef.selectionCopy (cb);
Object salt = cb.get ();
If (salt! = null)
{
controller.updateCurrentField (sel.toString ());
}
on the other
{
Dialog.Alert ("no text is selected.");
}
}

One rookie mistake.  The EditField was loses focus before the Manager listed in my original post was called.  It seems that the selection is lost when the EditField loses focus.  I solved by overridding the method of 'onUnfocus' of the EditField and pull the selected text and place it in the Clipboard.

Tags: BlackBerry Developers

Similar Questions

  • Mr PRESIDENT, MY WINDOWS 7 32 BIT PC does not support to open 'Copy trans drivers install' to copy doc, to the iphone

    Mr PRESIDENT, MY WINDOWS 7-32 BIT PC does not support to open 'Copy trans drivers install' to copy doc, to the iphone

    Please help me solve this problem.

    Hello

    Thanks for posting the query on Microsoft Community. I'm happy to help you on this.

    I appreciate if you could answer a few questions to refine the question and provide you with better assistance.

    • Did you change the system before this problem?
    • Do you receive an error message when you try to open it?
    • Have you checked in uninstalling and reinstalling the application?

    If this isn't the case, I suggest you to uninstall the 'trans driver install' and reinstall it again and check if it helps.

    Meet us with information, so that we can better help you.

    Thank you.

  • "Windows Media Player cannot play the DVD. The disk has been created in a way that does not support the player. »

    Hi all

    I copied a video to holiday on a Virgin DVD + RW but when I try to play on the same laptop where it was copied from, I get the message "Windows Media Player cannot play the DVD. The disk has been created in a way that does not support the player. "Any ideas please? I can normally play DVD pre-recorded ok.

    Thanks in advance.

    Hi all

    I copied a video to holiday on a Virgin DVD + RW but when I try to play on the same laptop where it was copied from, I get the message "Windows Media Player cannot play the DVD. The disk has been created in a way that does not support the player. "Any ideas please? I can normally play DVD pre-recorded ok.

    Thanks in advance.

    =====================================
    DVD Maker might be worth a try:

    Windows 7 - burn a video DVD with Windows DVD Maker disc
    http://Windows.Microsoft.com/en-us/Windows7/burn-a-DVD-video-disc-with-Windows-DVD-Maker
    (Windows 7 Home Premium / Professional / Ultimate / Enterprise)

  • After Effects does not support the Quadro K4200

    Effects CC 2014 runs on Windows 7 64 bit.

    I installed the latest driver... After Effects does not support the Quadro K4200

    Here is a copy of the parameter of GPU in AE.

    You can solve this problem?

    AE CC-2014 GPU setting -K4200 unsupported.jpg

    Quick project: available

    Texture memory: 2048,00 MB

    Ray-tracing: GPU (not supported)

    Not support GPU enabled for CUDA acceleration

    OpenGL

    Provider: NVIDIA Corporation

    Feature: Quadro K4200/PCIe/SSE2

    Version: 2.1.2

    Total memory: 3.93 GB

    Shader Model: 4.0 or later

    CUDA

    Driver version: 6.5

    Features: 1 (Quadro K4200) (not supported)

    The current usable memory: 3.67 GB (at the launch of the application)

    Maximum usable memory: 4.00 GB

    Do you mean that After Effects is not using your GPU to accelerate the raytraced render engine even when you check the box?

    Or are you simply ask the AE team to add official support for your GPU for the ray-traced rendering engine?

    If it's the second, nevermind. The AE team has stopped all development on the ray-traced rendering engine. She is considered to be obsolete. They are working on better integration with C4D: Details of CINEMA 4 d with After Effects integration the fact that it comes free with AE is pretty cool.

    However, if this is the first very well; We're going to solve! What number of exact version of AE are you using? (13.0.1? 13.1.0? 13.1.1?) How much time does it take to render when you switch the CPU, and then how much time does it take when you switch GPU with the box checked?

  • The document _ is on a volume that does not support the permanent version storage.  You will not be able to access older versions of this document once you close.

    I recently started getting this strange message, usually when a Pages document is closed:

    «The document _ is on a volume that does not support the permanent version storage.»  You can access older versions of this document once you close. »

    All my research (apple.com and on the internet) have not enabled all the information on this message.

    Hi Larry,

    The 'volume' is a hard disk, a partition on a hard drive or a storage as a USB device.

    OS X automatically saves your document frequent while you work on it. If the volume of the device / it records on a summer formatted to allow 'versioning', you will be able to use Time Machine to open previous versions of your document. If it has not been formatted like that, you get the message see you, and only the current version of the document will be saved.

    Kind regards

    Barry

  • 'webplugin' does not support the maximum safety level of safari plugins

    Last night, I got connected to my Svat security system using Safari and left the computer with the browser showing all the security cameras. Early in the morning about 3 or 04:00 I was awake by restarting the computer I noticed that the OS has been updated.

    For now, I am trying to connect to my security system and Safari can not access the server. I went into properties and noticed the ['webplugin' does not support the maximum safety level of safari plug-ins] my security system stop working in windows because of the plugins for a long time so my only option is to use my mac-mini to access the system and now what happens.

    The name of the plugin in the security system is called HiDVRPlugin.dmg and the system is Svat. I tried to go to Safari preferences and enabling the plugin, but it still does not work.

    Any ideas on how to re activate or difficulty this plugin?

    Thank you

    Go back to an earlier version of Mac OS X is not an option? Or may be using a different browser?

  • Could not load the doc Pages to iCloud. Said does not support the docs in packages. Why?

    When I try to drag a page to icloud file when it is opened in Firefox, I get the comment:

    Firefox does not support the download documents saved as packages
    Please use Safari

    What does that mean? What are packages?

    Hi Royden1,

    What is a page file and the template that you used to and what are you trying to use? Please research what the .pages file is compatible with, that means that Firefox does not support this file type. http://www.Macworld.com/article/20633.../how-to-work-with-iWorks-new-file-formats.html

  • Unlocked Iphone a1549 does not support the Turkish GSM Carrier

    Hello

    I bought an Iphone 6 128 GB a1549 renovated factory unlocked from amazon, while I was in the United States. I came back to Turkey last Thursday and bought a sim card to use here. But my Iphone says it does not support the sim card. What do you think could be the problem and how can I solve it? Thank you.

    senyavuzselim wrote:

    What do you think could be the problem and how can I solve it?

    The phone is not unlocked.

  • The new 5.0 does not support the functionality of the tab fox I love and I need a compatible similar add on - who do you suggest?

    I just downloaded firefox 5.0, which does not support the feature of best sites I've used so happily. Is there a similar add on that works with 5.0? I feel like I'm blind!

    Large. You may mark this issue as resolved.

  • Norton AntiVirus 2005 does not support the repair feature

    Hello

    I ask for help I always get this message error/dialogue:
    "Norton AntiVirus 2005 does not support the repair feature, please uninstall and reinstall"
    along with
    "Please while Windows configures Norton AntiVirus 2005"

    Use the product Recovery CD from TOSHIBA L20? This will affect other tools than Norton?
    Just for mentinon, I have a dual boot linux/Windows.

    Thanks for your reply.
    Kind regards
    Eliyah

    Hello

    I recommend to check the tips on the Symantec Norton:
    http://Service1.Symantec.com/support/NAV.nsf/docid/2004090712504306?OpenDocument&LG=en&CT=UK&SEG=HHO& src = eu_hot

    > Use the recovery CD to the L-20 TOSHIBA product? This will affect other tools than Norton?
    The use of the recovery CD will set your laptop to original settings.
    I mean, the recovery CD will format the whole HARD drive and will delete all your files

  • Does not support the Iphone 4

    I have an Iphone 4 and I was about to download this new app called Kylie and Kendall. I scrolled down to see what IOS, it supports and it says it's compatible with the IOS 7 Ipad, Iphone or Ipod so I was really excited to download and play. Long story short, after I downloaded it, I opened the app, and it started to load, but then he said "does not support the Iphone 4. I was really disappointed and sad, I was wondering why it says it's compatible with the IOS 7 and later, but apparently not. Because when I clicked on it says that it is not. That actually makes the loose money app and glory because owners of the Iphone 4 can be the game. Please someone tell me why he cannot support Iphone 4 or an expert in this company help us users of the Iphone 4. This isn't the only time where it happened to me happens to me in several applications, but I don't really understand this situation. Please help someone!

    This has nothing to do with Apple or iphone.

    You will need to contact the developer of the app and ask them what the issue is, or look at their support site.

  • Selected physical channel DAQmxCreateAIVoltageChan OR-USB-9237 VB6 does not support the type of action required

    I have a VB6 program with code that correctly reads the analog inputs of a NOR-USB-6008.

    I tried to re - use the code in a module of extensometer OR-USB-9237, but at the stage of DAQmxCreateAIVoltageChan, I get the following error:

    "Measurements: physical channel selected does not support the type of measure required by the virtual channel you create."

    Create a channel to a type of measure that is supported by the physical channel, or select a physical channel that supports the type of measure. »

    Should I call one function other than DAQmxCreateAIVoltageChan?

    If so, what is it, or where can I find the reference for these functions?

    Or - if it of the right function, should I pass different arguments?  Currently, I'll call you:

    DAQmxErrChk DAQmxCreateAIVoltageChan(taskHandle, "Dev1/ai1", "", DAQmx_Val_Cfg_Default,-10, 10, DAQmx_Val_VoltageUnits1_Volts, "")

    Thanks in advance for your help

    -Alas

    I thought she 372251a. PDF

    Firstly, the correct function is DAQmxCreateAIVoltageChanWithExcit

    Second, you can't just ask for a sample single channel - ask for 2 samples instead.

    -Alas

  • Why the new cRIO-9076 does not support the scanning engine?

    I spec'd a new chassis cRIO-9076 spiffy but learned that, despite its impressive capabilities, it does not support the analytical engine.

    I'm curious as to why this is.  I hope that this is not an indication of support OR away from the scan engine and perhaps NSV technology as well.

    OK, uninstalled and reinstalled OR RIO 4.0 and now all is well, guess it was just one of those inexplicable installation problems.

  • Does not support the Lenovo S650 Usb otg cable

    I bought the new lenovo S650 and I connect the usb otg cable for read my USB but it does not support? Why? Please help me

    S650 hardware does not support the OTG. Regardless of the cable.

    The micro-USB port to charge the phone only.

  • error message indicates that the new 450 turbo label printer does not support the type of paper 119

    error message indicates that the new 450 turbo label printer does not support the type of paper 119

    Contact the society of the printer.  There is nothing that Microsoft or Windows, can do to force the printer to accept a type of paper, though it says it will not accept it.

Maybe you are looking for

  • Re: How to disable the function and the combination of the space bar key?

    How can I change the combination Fn + space?If I hit him, it changes the resolution of the screen. terrible :( p.s. I asked this question ten minutes ago, and now he's disappeared from the forum Board. does not pass the prior restraint?

  • Path of collapse after edit

    I do a voice on the track.  I went through and removed all the mess ups, covers and unwanted noise.  There are still gaps across the track.  Is it possible the collapse of the track to remove the space published automatically without having to manual

  • Need to convert a local 'digital' to a type value string using the browser of the expression.

    I'm trying to convert a local "numeric value" to a string via the browser of the expression to provide a string argument.  I'm currently looking through the options of expression browser, but I can't find any type of function 'ToString()' Number.

  • n047cl 15 user's Guide

    Where can I find a user guide / manual for my new laptop computer?  I understand the hard copy is no longer included, but I think a downloadable version would be readily available.  Model 15 n047cl is not recognized, so I have to look in the wrong pl

  • What is up with Appworld?

    Seems like nobody treats of new applications, I submitted my application there is almost a month and no action. Sent suport there is 2 weeks and no response.  Does anyone else have this problem?