Overriding drag functionality on lists

We've got great info on how to use built-in list D&D, and
how to do it manually on custom components. But I can't find how to
do what I want:
I have a TileList linked to an array of objects, with an item
renderer displaying a small image based on the data. When I start
dragging from this list, I need proxy image to be a different
image.
When I manually do dragging on my tile list, I'd have to
manually figure out which item is being selected. Or I could do the
dragging on the item renderer objects, but now anywhere that uses
that particular item renderer class will support dragging, which
isn't wanted...
Any ideas?

I would log a bug report HERE.

Similar Messages

  • Calling function from list of values section?

    can i call a function from list of values(LOV) section as well? I know we can sql query but udf is supported?

    See this recent thread: Display as Text (LOV) or join
    Scott

  • Using javascript to override  pressing function keys (f1,f3,f6,f7,....)

    hi all i wonder if there is a way to to override pressing function keys(f1,f3,f6,f7,....) in adf page for all of the page not just for an input text .
    in another way can i make a client listener for a <f:view> or <af:document> so the javascript function will be called when i preses any button in keyboard without focusing in inputtext or a command button
    Edited by: user554540 on 22/06/2010 03:03 ص

    Hi,
    the problem is that keyboard events are only raised from input components. client listeners can only added to ADF Faces components and af:document does not accept keyboard entries. However, I tried
    af:document > panelStrechtLayout (center facet) > panelGroupLayout (scroll) and assigned a clientListener. At runtime has the desired effect
    Frank
    Edited by: Frank Nimphius on Jun 22, 2010 6:27 PM

  • How to override the functionality of a method which is embedded in an swf

    Hi,
    I have an swf for my application for which i do not have the source code. Now i want to override the functionality of a method (say doIt()) in a class (say MyClass.as).
    Is there any way to achieve the classloader functionality that similar to the tomcat classloading functionality for java files.
    i.e Tomcat's classloader searches the WEB-INF/classes directory before the WEB-INF/lib/*.jar. That means my original code is in lib folder, and the orerriden code is in the classes folder. In this case, tomcat will see the classes folder first, if my class does not exist in this folder, then it looks for the lib folder.
    Can we achieve the same class loading functionality in Flex. The overall idea is to change the functionlity of a feature without touching the original swf and by creating an external swf and by calling it.
    Regards,
    Sangeeta Kalyani

    Sangeetha Kalyani,
    Use SWF de-compiler.. and get the source of your SWF.. i think this will simplyfy your JOB...!
    Thanks,
    Pradeep

  • [svn:fx-trunk] 10600: Adding drag support to List - dragInitiator.

    Revision: 10600
    Author:   [email protected]
    Date:     2009-09-25 13:38:22 -0700 (Fri, 25 Sep 2009)
    Log Message:
    Adding drag support to List - dragInitiator. Currently can't drop the dragged items yet.
    - ListItemDragProxy class - default drag proxy for List (through a new style "dragIndicatorClass")
    - Added dragEnabled, dragMoveEnabled properties to List
    QE notes: Dragging from List is now possible. Dropping to different containers will come with subsequent check-in.
    Doc notes: None
    Bugs: None
    Reviewer: Ryan
    Tests run: checkintests
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/defaults.css
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as
        flex/sdk/trunk/frameworks/spark-manifest.xml
    Added Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/supportClasses/ListItemDrag Proxy.as

  • Error when overriding mx_internal function in mxml file

    Hi,
    I'm having difficulty overriding an mx_internal function inside an mxml file. I get an error:
    1004: Namespace was not found or is not a compile-time constant. StackRenderer.mxml /Layouts/src/example line 12 Flex Problem
    <?xml version="1.0" encoding="utf-8"?>
         <s:ItemRenderer
                xmlns:fx="http://ns.adobe.com/mxml/2009"
                xmlns:s="library://ns.adobe.com/flex/spark"
                xmlns:mx="library://ns.adobe.com/flex/mx">
                <fx:Script>
                      <![CDATA[
                            import mx.core.mx_internal;
                            use namespace mx_internal;
                            override mx_internal function drawBackground():void{
                       ]]>
                </fx:Script>
    </s:ItemRenderer>
    What am I doing wrong?

    Sorry for missleading information: I missed the error after I removed "use namespace mx_internal;". However I think I have found a problem. For some reason you get the error in MXML file (probably there are some restrictions for using namespaces in MXML files but I'm not sure). I have created an ActionScript component and it now compiles (for sure):
    package
       import mx.core.mx_internal;
       import spark.components.supportClasses.ItemRenderer;
       use namespace mx_internal
       public class CustomIRAS extends ItemRenderer
          override mx_internal function drawBackground():void {
    So I suggest creating ActionScript component instead of MXML.
    Michael

  • Api Function to list port in use

    Hi!I'm looking for an Api Function to list a ports in use in a Essbase Serve.

    Although there is currently no Api function to check the ports in use, if you are using Essbase 6.5 there are a couple other methods that could be used. (Might work in 6.2 but I didn't check).Check out the following functions in Maxl:- display system- display session all "Display system" displays how many ports are available - if you know how many you have then you know how many are in use. "Display session all" displays the users and their tcpip address - allowing you to determine the number of ports in by counting the number of unique user id + tcpip addresses. A worse case scenario to capture this information would be a program that runs the Maxl script to output a file that is then parsed.Hope this helps,- Jay---------------------------Jay NishSenior Business Intelligence ConsultantClarity SystemsEmail: [email protected]: www.claritysystems.com

  • Loss style when overriding the function 'set data' for a TileList

    Hi!
    In a TileList, I set the itemRenderer for a components from
    where I override the function set data like in this example:
    but, by doing this, I'm loosing all the built-in CSS
    behavior. The onMouseOver effect the change the backgroundColor and
    the hand pointer. I try to set it programmatically but without
    success.
    An idea?
    Thank you

    "FlexBin" <[email protected]> wrote in
    message
    news:gdaj4r$noj$[email protected]..
    > Hi!
    >
    > In a TileList, I set the itemRenderer for a components
    from where I
    > override
    > the function set data like in this example:
    >
    > but, by doing this, I'm loosing all the built-in CSS
    behavior. The
    > onMouseOver
    > effect the change the backgroundColor and the hand
    pointer. I try to set
    > it
    > programmatically but without success.
    >
    > An idea?
    >
    > Thank you
    >
    > public override function set data(value:Object):void
    > {
    > var xml:XML = new XML(value);
    >
    > if(this.backgroundIconName != null &&
    > this.ico != null &&
    > this.labelText != null) {
    >
    > if(xml.backgroundIconName != "") {
    >
    > this.backgroundIconName.source = "assets/" +
    xml.backgroundIconName;
    > }
    >
    > this.backgroundIconName.visible =
    (xml.backgroundIconName != "");
    >
    > this.ico.source = "assets/" + xml.iconName;
    > this.ico.width = Number(xml.width);
    > this.ico.height = Number(xml.height);
    >
    > this.labelText.text =
    resourceManager.getString('myResources',
    > xml.label);
    > }
    >
    > if(xml.@available == 'false')
    > {
    > this.enabled = false;
    > }
    > }
    There are examples of how to properly implement this kind of
    functionality
    in the itemRenderers here:
    http://flexdiary.blogspot.com/2008/09/groupingcollection-example-featuring.html
    http://flexdiary.blogspot.com/2008/09/extended-datagrid-with-stylefunction.html

  • Function - "Save list in local file"

    Hi,
    Do any one  know authorization object for executing the function "Save list in local file"  .
    Regards,
    Srinivas

    Assign S_GUI profile in user profile & try.
    http://wiki.sdn.sap.com/wiki/display/SMAUTH/S_GUI

  • The search function of List pages

    I have a question about the search function of List pages.
    If field is chosen, "Equal to" and "Begins with" will be displayed automatically.
    But I want to be displayed "Contains at least one value".
    Is there any method of specifying this value as "Contains at least one value"?

    Hi,
    unfortunately this customization is not possible. You can open a Service Request and submit the Enhancement Request for desired functionality.
    Regards

  • Business Partner Function Exclusion List

    Does anybody know what is the business partner function exclusion list? How to maintain it?

    Hi
    Can you please elaborate your problem?
    as per my understanding if you are replicating or creating BP in crm system the partner functions tab should automatically exclede selected partner functions.
    is it correct?
    Regards
    Srinivas Maddineni

  • Can we override the functionality of F4 key?

    I want to override the functionality of F4 key. How will i do this?

    Hi,
    If its a dialogue program, use...
    PROCESS ON VALUE-REQUEST.
      FIELD <field_name>          MODULE <module_for_f4_help>.
    in PAI & write your code to get the values in that module (module_for_f4_help).
    If its a report, use....
    at selection-screen on value-request for <field_name>.

  • Drag function disabling button actions within movieclip

    I'm building an interactive map and i've run into a problem. The map is draggable and I have a start and stop drag function running as well as an onEnterFrame function which restricts how far you can drag the map. The map is displayed inside of a masked area. On the map is many locations which when rolled over should pop up a little dialogue box with contact info. My problem is that it only works when i've disabled the drag functions. When the drag functions are running the buttons inside the map movie clip all stop working. How can i get around this?
    Drag function:
    // Start Dragging sequence
    map_mc.onPress = function() {
        this.startDrag();
    // Stop Dragging sequence
    map_mc.onRelease = function() {
        this.stopDrag();
    onEnterFrame = function() {
    //Restricts player to stage
    if(mc_map._x <= -1400) {
      mc_map._x = -1400;
    //Restricts Bottom
    if(mc_map._y <= -400) {
      mc_map._y = -400;
    //Restricts Left
    if(mc_map._x >= 50) {
      mc_map._x = 50;
    //Restricts Top
    if(mc_map._y >= 50) {
      mc_map._y = 50;
    Sample button function:
    //Distributors
    santafespringsDI_btn.onRelease = function() {
    distributorLabels_mc.gotoAndStop(11);
    distributorLabels_mc._x = _root._xmouse + 10;
    distributorLabels_mc._y = _root._xmouse - 80;
    santafespringsDI_btn.onRollOver = function() {
    distributorLabels_mc.gotoAndStop(11);
    distributorLabels_mc._x = _root._xmouse + 10;
    distributorLabels_mc._y = _root._xmouse - 80;
    close_btn.onRelease = function() {
    distributorLabels_mc.gotoAndStop(1);

    I got it working, but i managed to break it again. I think this is why i was having difficulty with your suggestions earlier. I added a bit more to my code and broke it.
    I have a movie clip full of captions that i assign to each location. the button will make the movie clip jump to a certain frame revealing the appropriate caption for the appropriate location and then on rollout go back to the first frame of the movie clip to hide it again. Adding this functionality in stopped the dragging and I'm wondering why it did and how i get around it?
    The button code i added to activate the caption movie clip was this:
    btn.onRollOver = function() {
        captions_mc.gotoAndStop(11);
        captions_mc._x = _root._xmouse + 10;
        captions_mc._y = _root._xmouse - 80;
    btn.onRollOut = function() {
        captions_mc.gotoAndStop(1);

  • How do I add mouse-drag functionality?

    A friend of mine asked me for help. He is building a program to look at a
    grid of 100 components. He has a 2D array of on/off buttons that control
    which components the program will look at. He would like to make it easier
    for the user to select which of the 100 he wants to check so he'd like to be
    able to choose sets of buttons using left-click and drag. Any ideas?

    A very interesting problem indeed.
    As pointed out by Craig, a solution for you can be to use a transparent picture control over your array of buttons. That is how I would have done this too. Because to handle 100 buttons without this drag function will be difficult and take long time for the user.
    The implementation of a drag a function might at first seem tricky, but in fact it is rather straightforward. The key is to extract the mouse position when the mouse button was pressed and later released and to convert these two positions to coordinates of the buttons affected. With the powerful library of functions in LabVIEW this can be done easily.
    I attach a simple example to show how it works. I decided to use a 2D array of 10x10 elements (like yours) and I
    added a feature that draws a rectangle during the drag operation. What is inside the selected area will be inverted which allows for both selecting and unselecting. My main program is named Select100.vi and it is calling InvertButtons.vi that changes the 2D array according to the mouse coordinates when the user drags the mouse over an area.
    I hope this helps and good luck in helping your friend with his program.
    /Mikael
    Attachments:
    select100.vi.vi ‏43 KB
    invertbuttons.vi.vi ‏35 KB

  • Start Drag Function with Movieclip Touch Count

    Hello,
    I have two movie clips
    "scrub" & "soap"
    i will use start drag function for the scrub  & top of the soap movie clip there 15 "dots"  of movie clips
    when scrub connect to dots it should store the value i.e +5. There is time limit 10 sec

    that won't work.  if you want to check for a simultaneous hit of circle with dot1,dot2 and dot3, use:
    if(_root.circle.hitTest(_root.dot1)&&_root.circle.hitTest(_root.dot2)&&_root.circle.hitTes t(_root.dot3)){
    also, that "+5" probably isn't going to do what you want.
    and you probably don't want to repeatedly do anything while that hittest remains positive.  you probably only want to do something when it first turns positive.
    but first things first.  you should remove all code from objects and use timeline code.  for help with that, what's the relationship (if any) between circle and scrub?  and is soap related to this discussion?

Maybe you are looking for

  • Can't open Project Server 2013 word documents with office 2010 installed

    hello forum members, we having issues opening a word document in a Project Server 2013 . we have Office 2010 on our computers installed.  when I click on a document link, i get a message "The webpage cannot be displayed".  the only way to open a docu

  • Printing black on a color laser printer

    We cannot repeat the printing of a black piece with a different file. The piece is full coverage black with a small logo in red and white. We have checked the 4-color amounts for the black and they are the same, but the black is not as deep and rich

  • I am unable to install iTunes due to Windows Installer error message on Vista

    I needed to update my iTunes since I purchased the iPad2.  My Windows Vista machine will not allow me to update the program due to a "Windows Installer" error message.  I first attempted to update, then I uninstalled and am unable to reinstall the so

  • Cant find belle update for nokia n8

    i cant find update for n8.. my product code is 59B6D7 Pls help me...

  • File Host Scan for MAC

    Hello, Any guidance or help is appreciated. Looking at performing a File Host Scan/Check for MACs and have not seen any exemples for file path. Windows file check is easy and straightforward. In a MAC, let's say we create a text file and place that i