HasEventListener and click event problem

Hi!
Is it possible that hasEventListener() method has a bug? Whenever I remove event listener(using removeEventListener method) from a click event (which's been added using AS), hasEventListener always returns true. However event listener method gets removed. I've also tried some other events and I got mixed results, some have worked, some haven't.
Thanks, regards

Thanks for replying.
I go to DO_HANDLE_EVENT as you said. There is already written something as below by wizard.
class  : ZL_BT115QH__DETAILS_IMPL
method: DO_HANDLE_EVENT
code: 
CASE htmlb_event_ex->event_server_name.
*     Added by wizard
    WHEN 'PAYM'.                                            "#EC NOTEXT
      EH_ONPAYM( htmlb_event    = htmlb_event
                  htmlb_event_ex = htmlb_event_ex ).
I added button in ZL_BT115QH__MAINWINDOW_IMPL but I try to handle in ZL_BT115QH__DETAILS_IMPL
I thought this might cause the problem.
Which DO_HANDLE_EVENT method you mentioned?
method in  ZL_BT115QH__MAINWINDOW_IMPL or ZL_BT115QH__DETAILS_IMPL ??

Similar Messages

  • How to add selection event, change event and click event for dropdownlist for mobile applications

    Please someone help me in writng selection , click and change events for dropdownlist in flex for mobile applications . i have tried but i wasn't able to select the items in dropdown using my mouse or touch in my mobile . Please help me I am struck at this point and i am unable to get solution gfor this. Please................
    Some code for which i neederd help:
    <s:DropDownList id="ddlBranch" x="257" y="475" width="63%" height="80%"
                                    creationComplete="ddlBranch_creationCompleteHandler(event)"
                                    fontFamily="Calibri" fontSize="24"
                                    labelField="BranchName"
                                    prompt="{ddlBranch.selectedItem}"
                                    requireSelection="true"
                                    selectionColor="#7ab342">
                        <s:AsyncListView list="{getBranchResult.lastResult}"/>
                    </s:DropDownList>
    <s:DropDownList id="ddlZone" x="257" y="546" width="63%" height="80%"
                                    creationComplete="ddlZone_creationCompleteHandler(event)"
                                    fontFamily="Calibri" fontSize="24"
                                    labelField="ZoneName"
                                    prompt="{ddlZone.selectedItem}"
                                    requireSelection="true"
                                    selectionColor="#7ab342">
                        <s:AsyncListView list="{getZoneResult.lastResult}"/>
                    </s:DropDownList>
    I will get the list of Branches(first DDL) and Zones(Second DDL) from a webservice written in DOT(.)NET,  what i needded is touch events and selection events for both the dropdown lists and the data in the second DropDown List should bind based on the First Dropdown list item selected.
    Service call for binding data to DDL:
    protected function ddlBranch_creationCompleteHandler(event:FlexEvent):void
                    getBranchResult.token = loginService.getBranch();
                protected function ddlZone_creationCompleteHandler(event:FlexEvent):void
                    getZoneResult.token = loginService.getZone();
    Please help...
    Thank you.

    Therer are two ways you can assign an action to the "OnEnter"-event of your input field:
    1. in method cl_wd_input_field=>new_input_field you have the parameter:
    ON_ENTER
    You just have to assign your action name to this field and it will be called on the OnEnter-event of your InputField.
    e.g:
         lr_input_field = cl_wd_input_field=>new_input_field(
                                                 id = 'INP_MY_INPUT_FIELD'
                                                 on_enter = 'MYACTION'
    2. You can use the method SET_ON_ENTER.
    like:
         lr_input_field->set_on_enter( 'MYACTION' ).
    Just make sure, you have created and implemented this action and its handler.

  • View and Edit events problem

    Hello my friends,
    today i have added to iphoto08 (7.0.2) 2 pictures, then i have tried to edit the Event.. and. WOA! i can't do..
    1) so i have rebooted iphoto , and there was the same problem.
    2) i have created a new library and launched iphoto (with ALT key) selected new library = same problem.
    3) i have erased the com.apple.iphoto.plist .. = same problem..
    now i really dont know what i can do to recovery iphoto edit function..
    this is a screenshot of the problem:
    http://img116.imageshack.us/my.php?image=bugnw2.jpg
    as you can see is not possible to edit the evet name , and also all event font are "crashed".
    Sorry for my english but i have written thise post very fast because here is late and i must go sleep. i hope tomorrow i can find a solution because iphoto is with keynote one of the most important software for me.
    thanks a lot to all !!!
    UPDATE:
    4) i have downloaded thise:
    http://www.apple.com/support/downloads/iphoto702.html
    have another time make the upgrade, i have launched iphoto.. same problem, like the screenshot that i have posted before.
    I cannot edit the name of events.
    Message was edited by: Gabriele Barni, to insert "UPDATE"

    Gabriele:
    Welcome to the Apple Discussions. If you don't have one of the new iMacs then Terence's suggestion might not work for you. If that's the case open Font Book and look for the Helvetica Neue font. If it's there Control-click on it and select Show File from the menu. Then double click on the actual font file and it will be reinstalled and activated. That should fix the problem.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Rollover animation and click combination problem

    Hey everyone....thanks in advance for the help
    I'm trying to edit an old Flash 8 in CS4, so I'm using AS2.0
    My problem is I have a menu bar that animates on screen from left to right on load
    and then it animates and plays a sound on rollover. I can't for the life of me get it to be able to hyperlink properly. I've gotten it to hyperlink on click, but then the rollover effect stops working. I've gotten it to hyperlink and rollover, but then the background covers up the graphics....it's frustrating the heck out of me!
    Any ideas would be greatly appreciated.

    change its timeline rollover/rollout animation to use actionscript only to animate it.

  • Flex SWFLoader LocalConnection Click events problem

    Hi,
    I'm experiencing a issue while trying to integrate a SWF movie with Flex for using it to create an AddOn for Xcelsius SDK. The idea is to create a Map Addon , just like the ones that are included with Xcelsius but with a custom map of the region where i live.
    The swf communicates with Flex through a LocalConnection and sends a message each time a region has been clicked, Flex retrieves this event and copies a data row to another place in the Excel Spreadsheet, so other diagramms can feed themselves with this data and represent it or whatever.
    This localconnection works just fine when i execute the Flex Project alone, but when i generate the Addon (using the AddOn packager), this stops working. I introduced a label to use as debug so each time a message from the swf file comes , Flex will write the message in this Label.
    What i saw, and that is the strange part of this issue. is that this label is being Updated also in Xcelsius, because when i leave the Preview mode i can see on the edit window that the label has changed its text, but not during the Preview mode (it is where i need it to work)
    I am using Xcelius SDK 2.0.1 Hotfix 3 , Flex Builder 2, Flash cs5 (tried with AS2, AS3 and exporting for multiple browser)
    Has anybody experience the same issue?
    Know somebody a howto, tutorial or sample of a Custom map in Xcelsius?
    Where can i find good Documentation? (i have already the samples and tutorials from SAP)
    Thanks in advance,
    Alex.

    How are you embedding the map?
    Xcelsius does not use Flash maps (so does not embed them in a SWF).
    You may be better off using SVG for your map and compiling it into the Flex project using the [Embed] metadata like you can for SVG.
    Or like I did with AnyMap parse and draw the SVG on the fly instead.
    That way you don't need to embed a Flash map and use the LocalConnection.
    Regards
    Matt

  • Custom component and custom event problem

    hello , i have a strange problem since one week , is that i can't handle the events becoming from my custom component , here is my code :
    Event Class :
    package events
         import flash.events.Event;
         public class Ev extends Event
              public static const UPDATE:String="update";
              public var data:String;
              public function Ev(type:String,data:String)
                   super(type);
                   this.data=data;
              override public function clone():Event
                   return new Ev(type,data);
    MXML component :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox 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:Metadata>
              [Event(name="onMenuChange",type="events.Ev")]
         </fx:Metadata>
         <fx:Script>
              <![CDATA[
                   import events.Ev;
                   import mx.events.IndexChangedEvent;
                   protected function accordion1_changeHandler(event:IndexChangedEvent):void
                        dispatchEvent(new Ev(Ev.UPDATE,event.newIndex.toString()));
              ]]>
         </fx:Script>
         <fx:Declarations>
              <!-- Placer ici les éléments non visuels (services et objets de valeur, par exemple). -->
         </fx:Declarations>
         <mx:Accordion width="200" height="200" change="accordion1_changeHandler(event)">
              <s:NavigatorContent label="Menu 1" width="100%" height="100%">
              </s:NavigatorContent>
              <s:NavigatorContent label="Menu 2" width="100%" height="100%">
              </s:NavigatorContent>
              <s:NavigatorContent label="Menu 3" width="100%" height="100%">
              </s:NavigatorContent>
         </mx:Accordion>
    </mx:VBox>
    the main container :
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:s="library://ns.adobe.com/flex/spark"
                      xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" xmlns:local="*">
         <fx:Script>
              <![CDATA[
                   import events.Ev;
                   import mx.controls.Alert;
                   protected function comp1_onMenuChangeHandler(event:Ev):void
                        Alert.show(event.data,"notice");
              ]]>
         </fx:Script>
         <local:Comp onMenuChange="comp1_onMenuChangeHandler(event)"/>
    </s:Application>
    any help will be welcome !

    hi,
    Not sure why your custom event is not working, I tend not to worry about 'custom' events unless I need to transfer a lot of information.
    Here is a way to 'simplify' event management.
    I just declare a new event in the meta data and then send it to notify that a change has been made. Although the parent can find the index value easily enough I also use two-way bind the navigators index so that it is directly available for the application to manipulate/read .
    http://gumbo.flashhub.net/events/  source included
    David.

  • Item Click Event problems

    Hi, I've been using an itemclick event on a datagrid that I
    created, and it's been great up until now. I've just added a button
    column to the table, and obviously the itemclick event is stopping
    my button from being pressed. Is there any way I can exclude this
    column from the itemclick event?
    Thanks :)

    I've found a work around thanks. But I'll elaborate anyway...
    My datagrid has 4 columns... a, b, c, d. Column d has a
    button in each row.
    I have an itemclick event so that the my event fires when the
    row is clicked, but I didn't want this to happen when the button
    was clicked (which is inside the item that is clicked)
    What I did in the end was do a check for the column number of
    the event and fire a different event if it was d :)

  • Mouse down event and Click event in List Box Very urgent.

    Hi,
           How can i differentiate mouse down and itemclick in ListBox.Its very urgent.
    Regards,
    Jayagopal.

    Nick wrote:
    Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event.
    AFAIK, "Update value while typing" will trigger only a Value Change event of the Str Ctl.
    Mouse Down event will preceed a Value Change event, if you have both the event cases configured in your code.
    - Partha
    LabVIEW - Wires that catch bugs!

  • Rollover and click event with symbols keyframed in timeline

    Concerning the active state of rollover(mouseenter/mouseleave) buttons in Edge. I've set up a grid style animation with symbols.
    I've got the composition, triggers, labels, mouseenter and mouseleave with symbols working just the way I'd like but my issue is keeping the button active after clicking and the mouse leaving. As it is now, when the mouse is clicks it plays the animation I want but when the mouse leaves the button doesn't stay 'active' indicating the portion of the grid the user is seeing. And adversely when the user clicks a different button the previous 'active' button needs to be 'inactive'. I'm useing keyframes of the color value, black to white, white to black with labels on the timeline.
    What is the method or code to accomplish this?
    Below is pics of my actions.

    Concerning the active state of rollover(mouseenter/mouseleave) buttons in Edge. I've set up a grid style animation with symbols.
    I've got the composition, triggers, labels, mouseenter and mouseleave with symbols working just the way I'd like but my issue is keeping the button active after clicking and the mouse leaving. As it is now, when the mouse is clicks it plays the animation I want but when the mouse leaves the button doesn't stay 'active' indicating the portion of the grid the user is seeing. And adversely when the user clicks a different button the previous 'active' button needs to be 'inactive'. I'm useing keyframes of the color value, black to white, white to black with labels on the timeline.
    What is the method or code to accomplish this?
    Below is pics of my actions.

  • Right Click Event Problem in Matrix

    Hi all,
    I want to remove line of matrix except last line?. How i manage the DataSource after removing rows in the matrix ? If you have any samples please give me??
    Regards,
    Suresh.G

    RIGHT_CLICK_BEFOREACTION(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent, SAPbouiCOM.Application oSboApplication, SAPbobsCOM.Company oCompany)
                BubbleEvent = true;
                oForm.EnableMenu("1293", true);
    remove row one by one.
    i think this will help you.

  • Activating Click event on Item Renderer only

    Hey. I'm working on a s:list and a click event problem. I have everything working just fine on the component and linking, but as you probably guessed, the event cues when anything on the s:list is clicked, including the scroll bar or empty space.
    Is there a quick fix to make the event only cue when an Item Renderer is clicked inside the list? Help would be much appreciated, I've been trying to solve this problem for a while.
    Thanks!
    RKaster

    Hi RKaster,
    do you need the reference to the item renderer by force or could you immagine a different approach? If you could work around that you could use the change event instead of the click event. The change event gets fired whenever the selection of items in the list change. A click on an item renderer of course will change the selection if the underlying item isn't already selected.
    If you can't work around the need of an item renderer reference you should experiment with the mouseChildren property of the List component (inherited from DisplayObjectContainer, see http://bit.ly/dhqCFS). IMHO of course
    Regards,
    Thilo

  • Radio button's click event to script both ".presence" and ".mandatory" -- Need help !

    Hi all,
    I've adopted the script stated in HightlightOneRequiredField.pdf so that the print button in my form can detect and prevent null field before pop up the print dialog. It works fine.
    In my form, I've created a mandatory 2-radio buttons group with click event script written, using ".presence", in each button. When user clicks:
    Button A: make subform A visible and subform B invisible;
    Button B: make subform A invisible and subform B visible.
    Apart from the visibility of the subforms, what I want more is to add a .mandatory script (together with the click event) in the buttons to turn some fields' mandatory in the subforms on and off so that when user clicks:
    Button A: will also turn some fields' value type in subform A to be "User
    Entered-Required", whereas some of that in subform B to be "-
    optional";
    Button B: will turn the subform B's fields to "-Required" and subform A's
    fields back to "-optional"
    However no luck with me. When I press the print button after any of the radio buttons checked, the print dialog still show up even the subforms' fields are null as if those fields' value type always remain "-optional"
    I wonder if this problem is caused by Chinese binding name ? The script written in the radio button B is:
    FormA.presence = "invisible";
    FormB.presence = "visible";
    if (B1.mandatory = "disabled")
    B1.mandatory = "error";
    if (B2.mandatory = "disabled")
    B2.mandatory = "error";
    if (B3.mandatory = "disabled")
    B3.mandatory = "error";
    if (A1.mandatory = "error")
    A1.mandatory = "disabled";
    if (A2.mandatory = "error")
    A2.mandatory = "disabled";
    if (A3.mandatory = "error")
    A3.mandatory = "disabled";
    B1, B2 and B3 represent the Chinese fields' binding name in FormB
    A1, A2 and A3 represent the Chinese fields' binding name in FormA
    (The script in radio button A is reversed in this way.)
    Have I done something wrong in the above (click event) javascript?
    Please help.
    Thanks in advance.
    Alex

    Hi all,
    I've adopted the script stated in HightlightOneRequiredField.pdf so that the print button in my form can detect and prevent null field before pop up the print dialog. It works fine.
    In my form, I've created a mandatory 2-radio buttons group with click event script written, using ".presence", in each button. When user clicks:
    Button A: make subform A visible and subform B invisible;
    Button B: make subform A invisible and subform B visible.
    Apart from the visibility of the subforms, what I want more is to add a .mandatory script (together with the click event) in the buttons to turn some fields' mandatory in the subforms on and off so that when user clicks:
    Button A: will also turn some fields' value type in subform A to be "User
    Entered-Required", whereas some of that in subform B to be "-
    optional";
    Button B: will turn the subform B's fields to "-Required" and subform A's
    fields back to "-optional"
    However no luck with me. When I press the print button after any of the radio buttons checked, the print dialog still show up even the subforms' fields are null as if those fields' value type always remain "-optional"
    I wonder if this problem is caused by Chinese binding name ? The script written in the radio button B is:
    FormA.presence = "invisible";
    FormB.presence = "visible";
    if (B1.mandatory = "disabled")
    B1.mandatory = "error";
    if (B2.mandatory = "disabled")
    B2.mandatory = "error";
    if (B3.mandatory = "disabled")
    B3.mandatory = "error";
    if (A1.mandatory = "error")
    A1.mandatory = "disabled";
    if (A2.mandatory = "error")
    A2.mandatory = "disabled";
    if (A3.mandatory = "error")
    A3.mandatory = "disabled";
    B1, B2 and B3 represent the Chinese fields' binding name in FormB
    A1, A2 and A3 represent the Chinese fields' binding name in FormA
    (The script in radio button A is reversed in this way.)
    Have I done something wrong in the above (click event) javascript?
    Please help.
    Thanks in advance.
    Alex

  • Double click and single click Event

    Hi
      I want to add a Single Clcik event and Double click event  both on the same movie clip in as3 , its working but call both the event same time so how to fix it , please help us if u have any solution ..(

    did you double click enable your object AND add a doubleclick listener?  if so, what's the problem?

  • How do I convert the single x and y coordinates returned by a CWGraph Click event to the Cursor X and Y Positions?

    I am trying a work around for another problem.
    cwCSnapNearestPoint does not give me a CursorDown event (TrackMode = cwGTrackDragCursor). I need to know when the user has clicked on a Cursor. I need to figure out when the user has clicked on a cursor.
    The click event gives you coordinates as "Single" which are an OLE_XPOS_PIXELS. How do I convert to the Cursor coordinates (or vis a vis)?
    Or better yet is there another way to figure that a cursor has been clicked on (while using cwCSnapNearestPoint and TrackMode = cwGTrackDragCursor )

    Here are a couple potential fixes for the problem. If you are dealing with cursors on the graph, I would look into CursorChangeEvent, CursorMouseDown, CursorMouseUp, and CursorMouseMove. The ChangeEvent is triggered upon repositioning of the cursor. MouseDown triggers on the depression of a mouse button on a cursor, while MouseUp triggers on the button's release. MouseMove is triggered when the mouse is moved over a cursor. These each give X and Y positions in the arguments. If you used these and then made a Sanp to nearest point, you should have the coordinates before you sanpped to the point.

  • Problem in Button Click Event

    Hi All!
    In Good issue I have create One Button and in click event I call one function, but my problem when click this button it call my function 2 times. Please help me fix this problem, my code below:
    Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            If ((pVal.FormType = 720 And pVal.EventType <> SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD) And (pVal.Before_Action = True)) Then
                oForm = SBO_Application.Forms.GetFormByTypeAndCount(pVal.FormType, pVal.FormTypeCount)
                If ((pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_LOAD) And (pVal.Before_Action = True)) Then
                    oItem = oForm.Items.Item("2")
                    oNewItem = oForm.Items.Add("MyBtnP", SAPbouiCOM.BoFormItemTypes.it_BUTTON)
                    oNewItem.Top = oItem.Top
                    oNewItem.Height = oItem.Height
                    oNewItem.Width = oItem.Width + 5
                    oNewItem.Left = oItem.Left + oItem.Width + 5
                    oButton = oNewItem.Specific
                    oNewItem.Visible = True
                    oButton.Caption = "Fixed Asset"
                End If
                Select Case pVal.ItemUID
                    Case "MyBtnP"
                        If SAPbouiCOM.BoEventTypes.et_CLICK Then
                            Try
                                oMatrix = oForm.Items.Item("13").Specific
                                colItemCode = oMatrix.Columns.Item("1")
                                Dim Row As Integer = oMatrix.RowCount
                                For i As Integer = 1 To Row
                                    oEditItemCode = colItemCode.Cells.Item(i).Specific
                                    If oEditItemCode.Value.ToString() <> "" Then
                                       AssetMaster_Add(oEditItemCode.Value.Trim())
                                    End If
                                Next
              Me.SBO_Application.SetStatusBarMessage("Inserted Fixed Asset Successfully.", SAPbouiCOM.BoMessageTime.bmt_Short, False)
                                Exit Sub
                            Catch ex As Exception
                            End Try
                        End If
                End Select
            End If
        End Sub

    Hi Tao,
    1. use et_ITEM_PRESSED instead of et_CLICK and combine it with BeforeAction:
    If SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED and pval.BeforeAction = False Then
    2. generally i recommend you to use BeforeAction  instead of the old Before_Action (deprecated)
    i saw that in et_FORM_LOAD in top of your code
    lg David

Maybe you are looking for