Click Handler

Hi,
this might be pretty simple, but I'm trying to find the
button component's click Handler in flash... can anyone help me
with this or help me with the action scripting for such an event...
thanks!

click handler is for component under flash MX & below,
you can find it under parameters at property inspector, or
component inspector...
in MX2004 & above, we can attach the script directly to
the component instance
on(click){
//do something
}

Similar Messages

  • How to move a selected row data from one grid to another grid using button click handler in flex4

    hi friends,
    i am doing flex4 mxml web application,
    i am struck in this concept please help some one.
    i am using two seperated forms and each form having one data grid.
    In first datagrid i am having 5 rows and one button(outside the data grid with lable MOVE). when i am click a row from the datagrid and click the MOVE button means that row should disable from the present datagrid and that row will go and visible in  the second datagrid.
    i dont want drag and drop method, i want this process only using button click handler.
    how to do this?
    any suggession or snippet code are welcome.
    Thanks,
    B.venkatesan.

    Hi,
    You can get an idea from foolowing code and also from the link which i am providing.
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
    width="613" height="502" viewSourceURL="../files/DataGridExampleCinco.mxml">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.binding.utils.BindingUtils;
    [Bindable]
    private var allGames:ArrayCollection;
    [Bindable]
    private var selectedGames:ArrayCollection;
    private function initDGAllGames():void
    allGames = new ArrayCollection();
    allGames.addItem({name: "World of Warcraft",
    creator: "Blizzard", publisher: "Blizzard"});
    allGames.addItem({name: "Halo",
    creator: "Bungie", publisher: "Microsoft"});
    allGames.addItem({name: "Gears of War",
    creator: "Epic", publisher: "Microsoft"});
    allGames.addItem({name: "City of Heroes",
    creator: "Cryptic Studios", publisher: "NCSoft"});
    allGames.addItem({name: "Doom",
    creator: "id Software", publisher: "id Software"});
    protected function button1_clickHandler(event:MouseEvent):void
    BindingUtils.bindProperty(dgSelectedGames,"dataProvider" ,dgAllGames ,"selectedItems");
    ]]>
    </mx:Script>
    <mx:Label x="11" y="67" text="All our data"/>
    <mx:Label x="10" y="353" text="Selected Data"/>
    <mx:Form x="144" y="10" height="277">
    <mx:DataGrid id="dgAllGames" width="417" height="173"
    creationComplete="{initDGAllGames()}" dataProvider="{allGames}" editable="false">
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    <mx:FormItem label="Label">
    <mx:Button label="Move" click="button1_clickHandler(event)"/>
    </mx:FormItem>
    </mx:Form>
    <mx:Form x="120" y="333">
    <mx:DataGrid id="dgSelectedGames" width="417" height="110" >
    <mx:columns>
    <mx:DataGridColumn headerText="Game Name" dataField="name" width="115"/>
    <mx:DataGridColumn headerText="Creator" dataField="creator"/>
    <mx:DataGridColumn headerText="Publisher" dataField="publisher"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Form>
    </mx:Application>
    Link:
    http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/ae9bee8d-e2ac-43 c5-9b6d-c799d4abb2a3/
    Thanks and Regards,
    Vibhuti Gosavi | [email protected] | www.infocepts.com

  • Click handler for a span

    Hi
    I have a TextFlow which contains several span elements. (Each has an ID attribute.) When the user clicks on one of these spans, a pop up should appear whe the user can style the span.
    I tried to assign a different event listener to each of the spans, but failed.
    This brings the same result for both spans:
         element.tlf_internal::getEventMirror().addEventListener(MouseEvent.CLICK, regionClickHandler);
        public function regionClickHandler(evt:MouseEvent):void {
           Alert.show(evt.currentTarget.name.toString());
    Any ideas?
    Tobi

    Thanks for your reply Richard!
    I have
        textFlow.interactionManager = editManager;
    and no SelectionManager. (I assume only one of them can be used for a specific TextFlow instance).
    It seems editManager.tlf_internal::computeSelectionIndex doesn't exist.
    To all TLF implementers:
    When a user clicks on a span in an editable TextFlow, my click handler should do something with that span (open a pop up containing a style editor for that span).
    Is there a simple way to get the span that the user clicked on? It would be great if the event would have a method which returns that span.
    Tobi

  • Jtree node refuses to collapse upon clicking handle; makeVisible() was used

    Hello,
    While creating a new node and inserting as a leaf in the JTree, I use tree.makeVisible(newTreePath) to expand the new node and make visible. (Using expandPath() will not expand if a leaf was added).
    However now the jtree node refuses to collapse upon clicking the node handle.
    How do I get it to not insist on staying open - be able to collapse manually?
    thanks,
    Anil

    This is the JNI forum. I don't believe your post fits.
    then
    can I correctly assume that any class that
    "implements Cloneable" will handle making either a
    "shallow" or "deep" ... or even "semi-shallow" clone,
    respective to the class context .. right?
    It probably does something. The implementor might not have implemented anything though. And you have no idea what they implemented.
    No idea about your other question.
    You might want to think carefully about why you are cloning though.

  • Double Click handling with Submit Button

    Does a submitButton on the page automatically handle / block the user's double click action?
    I have an application where a submit button causes processing & commits to occur.
    I want to make sure that when the user "double-click" the button, it doesn't cause problems.
    Thanks

    Hi
    Does a submitButton on the page automatically handle / block the user's double click action?No it doesnot handles so..
    You can write the below code in processRequest method of your controller to disable the button till the moment processing is going on,After processing completes you can again click submit button.
    OAWebBean body = pageContext.getRootWebBean();
    if(body instanceof OABodyBean)
    ((OABodyBean)body).setBlockOnEverySubmit(true);
    }Please refer to this article for more details
    http://mukx.blogspot.com/2009/12/blocking-user-on-submit-action-in-oaf.html
    Moreover,if you want to disable the button after first click then on click of get an event redirect it to same page and make it disabled or use Partial page rendering for this.
    Thanks
    AJ

  • Header renderer click handler not working

    Hi All
    Below is code of my header renderer which copied code from default headerrenderer and created new one, I added textinput with down arrow and close button,
    But when i click on close button, I am making filter box invisible, If i put a break point inside griditemrenderer1_mouseOutHandler() function then filter box becomes invisible, but while running in debug mode without break point filter box shows visible only,
    Please let me know where i am doing wrong.
    <?xml version="1.0" encoding="utf-8"?>
    <s:GridItemRenderer minWidth="21" minHeight="21"
                        xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        mouseOver="griditemrenderer1_mouseOverHandler(event)"
                        creationComplete="griditemrenderer1_creationCompleteHandler(event)">
        <fx:Declarations>
            <s:Label id="labelDisplay"
                     verticalCenter="1"
                     textAlign="start"
                     fontWeight="bold"
                     verticalAlign="middle"
                     maxDisplayedLines="1"
                     showTruncationTip="true" />
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import com.db.view.components.FilterPopup;
                import mx.managers.PopUpManager;
                import mx.controls.Menu;
                import mx.events.FlexEvent;
                import spark.components.gridClasses.IGridVisualElement;
                import mx.core.IVisualElement;
                import spark.components.DataGrid;
                import spark.components.GridColumnHeaderGroup;
                import spark.components.gridClasses.GridColumn;
                import spark.primitives.supportClasses.GraphicElement;
                // chrome color constants and variables
                private static const DEFAULT_COLOR_VALUE:uint = 0xCC;
                private static const DEFAULT_COLOR:uint = 0xCCCCCC;
                private static const DEFAULT_SYMBOL_COLOR:uint = 0x000000;
                private static var colorTransform:ColorTransform = new ColorTransform();
                 *  @private
                private function dispatchChangeEvent(type:String):void
                    if (hasEventListener(type))
                        dispatchEvent(new Event(type));
                //  maxDisplayedLines
                private var _maxDisplayedLines:int = 1;
                [Bindable("maxDisplayedLinesChanged")]
                [Inspectable(minValue="-1")]
                 *  The value of this property is used to initialize the
                 *  <code>maxDisplayedLines</code> property of this renderer's
                 *  <code>labelDisplay</code> element.
                 *  @copy spark.components.supportClasses.TextBase#maxDisplayedLines
                 *  @default 1
                 *  @langversion 3.0
                 *  @playerversion Flash 10
                 *  @playerversion AIR 1.5
                 *  @productversion Flex 4.5
                public function get maxDisplayedLines():int
                    return _maxDisplayedLines;
                 *  @private
                public function set maxDisplayedLines(value:int):void
                    if (value == _maxDisplayedLines)
                        return;
                    _maxDisplayedLines = value;
                    if (labelDisplay)
                        labelDisplay.maxDisplayedLines = value;
                    invalidateSize();
                    invalidateDisplayList();
                    dispatchChangeEvent("maxDisplayedLinesChanged");
                 *  @private
                 *  Create and add the sortIndicator to the sortIndicatorGroup and the
                 *  labelDisplay into the labelDisplayGroup.
                override public function prepare(hasBeenRecycled:Boolean):void
                    super.prepare(hasBeenRecycled);
                    if (labelDisplay && labelDisplayGroup && (labelDisplay.parent != labelDisplayGroup))
                        labelDisplayGroup.removeAllElements();
                        labelDisplayGroup.addElement(labelDisplay);
                private var chromeColorChanged:Boolean = false;
                private var colorized:Boolean = false;
                [Bindable]
                private var _filterVisibility:Boolean = false;
                 *  @private
                 *  Apply chromeColor style.
                override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                    // Apply chrome color
                    if (chromeColorChanged)
                        var chromeColor:uint = getStyle("chromeColor");
                        if (chromeColor != DEFAULT_COLOR || colorized)
                            colorTransform.redOffset = ((chromeColor & (0xFF << 16)) >> 16) - DEFAULT_COLOR_VALUE;
                            colorTransform.greenOffset = ((chromeColor & (0xFF << 8)) >> 8) - DEFAULT_COLOR_VALUE;
                            colorTransform.blueOffset = (chromeColor & 0xFF) - DEFAULT_COLOR_VALUE;
                            colorTransform.alphaMultiplier = alpha;
                            transform.colorTransform = colorTransform;
                            var exclusions:Array = [labelDisplay];
                            // Apply inverse colorizing to exclusions
                            if (exclusions && exclusions.length > 0)
                                colorTransform.redOffset = -colorTransform.redOffset;
                                colorTransform.greenOffset = -colorTransform.greenOffset;
                                colorTransform.blueOffset = -colorTransform.blueOffset;
                                for (var i:int = 0; i < exclusions.length; i++)
                                    var exclusionObject:Object = exclusions[i];
                                    if (exclusionObject &&
                                        (exclusionObject is DisplayObject ||
                                            exclusionObject is GraphicElement))
                                        colorTransform.alphaMultiplier = exclusionObject.alpha;
                                        exclusionObject.transform.colorTransform = colorTransform;
                            colorized = true;
                        chromeColorChanged = false;
                    super.updateDisplayList(unscaledWidth, unscaledHeight);
                 *  @private
                override public function styleChanged(styleProp:String):void
                    var allStyles:Boolean = !styleProp || styleProp == "styleName";
                    super.styleChanged(styleProp);
                    if (allStyles || styleProp == "chromeColor")
                        chromeColorChanged = true;
                        invalidateDisplayList();
                protected function griditemrenderer1_mouseOverHandler(event:MouseEvent):void
                    _filterVisibility = true;
                protected function griditemrenderer1_mouseOutHandler():void
                    _filterVisibility = false;
                protected function griditemrenderer1_creationCompleteHandler(event:FlexEvent):void
                    trace(label);
                protected function textinput1_clickHandler(event:MouseEvent):void
                    var filterpopUp:FilterPopup = new FilterPopup();
                    filterpopUp.filterColumn = label;
                    PopUpManager.addPopUp(filterpopUp,this,false);
                    filterpopUp.addEventListener("test",testHandler);
                    filterpopUp.x = event.stageX - 50;
                    filterpopUp.y = event.stageY + 10;
                protected function testHandler(event:Event):void
                    owner.dispatchEvent(new Event("test"));
            ]]>
        </fx:Script>
        <s:VGroup left="7" right="7" top="5" bottom="5" gap="2" verticalAlign="bottom">
            <s:HGroup id="tiFilter" width="100%" gap="3" verticalAlign="middle" visible="{_filterVisibility}">
                <s:TextInput width="{labelDisplay.width + 20}" height="16" skinClass="com.db.view.skins.FilterTextInputSkin"
                              text="{label}" click="textinput1_clickHandler(event)"/>
                <s:HGroup id="closeBtn" width="15" height="15" click="griditemrenderer1_mouseOutHandler()"
                          buttonMode="true" useHandCursor="true" mouseChildren="false" keyDown="griditemrenderer1_mouseOutHandler()">
                    <s:Image source="@Embed('/assets/images/icon_close.gif')"/>
                </s:HGroup>
            </s:HGroup>
            <s:Group id="labelDisplayGroup" width="100%"/>
            <s:Group id="sortIndicatorGroup" includeInLayout="false" />
        </s:VGroup>
    </s:GridItemRenderer>

    Hi Sudhir,
    Thanks for posting your issue, Kindly find the code snnipet below to Add a new item in Custom list
    public override void ItemAdded(SPItemEventProperties properties)
        base.ItemAdded(properties);
        if (properties.List.Title
    == "Test")
    Get Properties
            string ABC=
    properties.ListItem["Column"].ToString();
            string DEF=
    properties.ListItem["Column"].ToString();
            DateTime XYZ=
    (DateTime)properties.ListItem["Start Column"];
            DateTime WSD=
    (DateTime)properties.ListItem["End Column"];
    Create sub site
            SPWeb web
    = properties.Site.AllWebs.Add(name.Replace(" ", string.Empty),
    name,
                description, 0, SPWebTemplate.WebTemplateSTS, false, false);
            web.Update();
    Also, browse the below mentioned URL to implementation your custom list step by step. and how you can debug your custom code.
    http://www.c-sharpcorner.com/UploadFile/40e97e/create-site-automatically-when-a-list-item-is-added/
    http://msdn.microsoft.com/en-us/library/ee231550.aspx
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • Click handler button function to control symbols

    Hi,
    I have a remote control image which has 2 buttons (Slide button & Bar Graph button).  Thanks to help from resdesign the first button controlling a slideshow of 15 images works.  In the slideshow there are question slides that need to launch an animated bar graph symbol showing the results.  I'm able to launch the first bar graph for slide 3.  I'm using the container method to place the bar graph on the stage.  The bar graph symbol can be closed using a click event from within the symbol.   Here are my questions:
    How to toggle the bar graph off OR delete the bar graph symbol when the Bar Graph button is clicked again.
    How to prevent multiple instances of the bar graph from launching in the container?
    How to close the bar graph if the user advances to the next slide? 
    Here's the code to control the Bar Graph button on compositionReady:
    var bgOn = false;
    sym.$("buttonbg").click(function(){
                        if (bgOn == false) {
                        sym.createChildSymbol("bg1", "bargraph_container3");
                        var container =  sym.getSymbol("bargraph_container3");
                        sym.container("bg1").play();
                        bgOn = true;
                        else {
          sym.deletesymbol();  //If bar graph symbol is already on, when buttonbg is clicked again then delete "bg1"
          bgOn = false;  // reset to false, click will relaunch "bg1"
    Here's the project file.
    http://dl.dropbox.com/u/10647145/necc_viewer_nov2012.zip
    Thanks for your time,
    -Robert

    ==> file attached.
    1) Symbol "stage", compositionReady:
    sym.bgOn = false;
    sym.$("buttonbg").click(function(){
    if (!sym.bgOn) {
    sym.bg1 = sym.createChildSymbol("bg1", "bargraph_container3").play();
    //var container =  sym.getSymbol("bargraph_container3");
    //container("bg1").play();
    sym.bgOn = true;
    } else {
    sym.bg1.deleteSymbol();  //If bar graph symbol is already on, when buttonbg is clicked again then delete "bg1"
    sym.bgOn = false;  // reset to false, click will relaunch "bg1"
    2) Symbol "bg1", close.click:
    sym.getParentSymbol("bargraph_container3").getParentSymbol("Stage").bgOn = false;
    sym.deleteSymbol();

  • Signature field click handler

    Hi,
    I'd like to execute my custom logic when a user clicks on a signature field.
    Currently I have tried preSign and mouseDown events. But after executing my
    script, the signing dialog pops up. Is there a way to make signing dialog
    don't appear?

    Our requirement is no client side configuration or installation.<br />Thank you anyway for the answer<br /><br /><[email protected]> wrote in message <br />news:[email protected]..<br />> Not with JavaScript. You could do it with a plug-in.

  • Click handler in ItemRenderer on "hovered" state

    Hey,
    im trying to add Button to spark List itemRenderer and listen for click. If button is still there (not usin includeIn) it works.
    But when it's just visible in "hovered" state, click is not dispatched. Is it bug? or can you let me know some workaround.
    Thank you

    Ah yeah, what Alex said...
    I just built a simple example with s:List and a custom renderer and a Button control only in the hovered state and it appears that after mouse down the state changes and the button disappears before the mouseUp happens. My workaround was to show the button in both the hovered and selected states.
    Peter
    <?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">
        <s:List width="200"
                itemRenderer="HoverListItemRen"
                labelField="name"
                horizontalCenter="0" verticalCenter="0">
            <s:layout>
                <s:VerticalLayout horizontalAlign="justify" gap="0" requestedRowCount="10" />
            </s:layout>
            <s:dataProvider>
                <s:ArrayList>
                    <fx:Object team="Los Angeles" name="Angels of Anaheim" />
                    <fx:Object team="Seattle" name="Mariners" />
                    <fx:Object team="Oakland" name="Athletics" />
                    <fx:Object team="Texas" name="Rangers" />
                    <fx:Object team="Cleveland" name="Indians" />
                    <fx:Object team="Detroit" name="Tigers" />
                    <fx:Object team="Minnesota" name="Twins" />
                    <fx:Object team="Chicago" name="White Sox" />
                    <fx:Object team="Kansas City" name="Royals" />
                    <fx:Object team="Boston" name="Red Sox" />
                    <fx:Object team="New York" name="Yankees" />
                    <fx:Object team="Toronto" name="Blue Jays" />
                    <fx:Object team="Baltimore" name="Orioles" />
                    <fx:Object team="Tampa Bay" name="Rays" />
                    <fx:Object team="Arizona" name="Diamondbacks" />
                    <fx:Object team="Colorado" name="Rockies" />
                    <fx:Object team="San Diego" name="Padres" />
                    <fx:Object team="Los Angeles" name="Dodgers" />
                    <fx:Object team="San Francisco" name="Giants" />
                    <fx:Object team="Chicago" name="Cubs" />
                    <fx:Object team="Milwaukee" name="Brewers" />
                    <fx:Object team="St. Louis" name="Cardinals" />
                    <fx:Object team="Houston" name="Astros" />
                    <fx:Object team="Cincinnati" name="Reds" />
                    <fx:Object team="Pittsburgh" name="Pirates" />
                    <fx:Object team="Philadelphia" name="Phillies" />
                    <fx:Object team="New York" name="Mets" />
                    <fx:Object team="Atlanta" name="Braves" />
                    <fx:Object team="Washington" name="Nationals" />
                    <fx:Object team="Florida" name="Marlins" />
                </s:ArrayList>
            </s:dataProvider>
        </s:List>
    </s:Application>
    <?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"
                    autoDrawBackground="true">
        <s:layout>
            <s:HorizontalLayout />
        </s:layout>
        <s:states>
            <s:State name="normal" />
            <s:State name="hovered" />
            <s:State name="selected" />
        </s:states>
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                protected function button1_clickHandler(evt:MouseEvent):void {
                    Alert.show(data.name);
            ]]>
        </fx:Script>
        <s:Label text="{data.name}" width="100%" height="100%" maxDisplayedLines="1" verticalAlign="middle" paddingTop="3" paddingBottom="3" paddingLeft="3" paddingRight="3"/>
        <s:Button label="X" click="button1_clickHandler(event);" includeIn="hovered,selected" height="20" width="20" />
    </s:ItemRenderer>

  • Button click handler using values through UDPClient

    I am making a BCI system for my master thesis, and I am new to C#, so I would like to know if it is possible to click a button through a value obtained though a fx UDP client.
    What I wloud like to do :
    Acquirer data through MATALB -> send the data to the BCI interface made in Visual Studio WF Application -> the values clicks the button represtented by the specific value, and so forth.
    It is the possibility I am seeking, I have not found any really usable online yet.
    Question:
    Is it possible to click a button using a value instead of mouseclick in Windows forms Application?
    - Andrew have mentioned button.PerformClick()
    Method, could this sovle the problem?
    Thanks for answers.
    Regards 
    Aslak

    Hej Andrew,
    Thanks, I have just had trouble finding a example regarding this. I am allmost new to all in C#, so are there any webpages I could look at that you kow that could help ?
    Regards 
    Aslak
    You're not likely to find a webpage with an example such as you've described, no.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    namespace CS_WinFormsSnippet
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    Button myButton = new Button();
    private void Form1_Load(object sender, EventArgs e)
    myButton.Text = @"It's Christmas at Ground Zero!";
    myButton.Click += new EventHandler(myButton_Click);
    myButton.Dock = DockStyle.Fill;
    this.Controls.Add(myButton);
    System.Threading.ThreadStart ts = new System.Threading.ThreadStart(this.myButton_TimedClicker);
    System.Threading.Thread t = new System.Threading.Thread(ts);
    t.IsBackground = true; // makes the thread die with the process.
    t.Start();
    void myButton_Click(object sender, EventArgs e)
    if (e.GetType().Equals(typeof(ButtonClickEventArgsWithValue)))
    MessageBox.Show(@"... and if the radiation level's okay, I'll go out with YOU to see all the neeeeew muuuutations on New Year's Day!");
    else
    MessageBox.Show(@"The Button has been preeeeessed...");
    // "Christmas At Ground Zero" is a classic holiday tune by Weird Al Yankovic.
    void myButton_TimedClicker()
    do
    System.Threading.Thread.Sleep(20000); // wait 20 seconds.
    this.myButton_Click(null, new ButtonClickEventArgsWithValue(2));
    } while (true); // just keep going until the form is closed. don't worry, it's a background thread.
    // You can still click the button on the form to see the first messagebox without the second. The second messagebox only shows up when you call the click event programmatically, using the specified EventArgs inheritor.
    public class ButtonClickEventArgsWithValue : EventArgs
    public Int32 eventValue = 0;
    public ButtonClickEventArgsWithValue(Int32 value)
    this.eventValue = value;
    Would you like to know more?

  • How to get event.target/event.currentTarget for HTML-5 canvas for click handler

    Hi,
    I hope everyone is doing great.
    I belong to Actionscript background and just started on Flash CC HTML-5 canvas.
    How to get event.target or event.currentTarget in Flash CC for HTML-5 canvas for click event.
    Like we used to do it in AS 3.0
    btn.addEventListener(MouseEvent.CLICK , go);
    function go(evt:MouseEvent){
       trace(" evt - "+evt.currentTarget); // It will let us know the clicked target
    For  HTML-5
    btn.addEventListener('click' , go.bind(this));
    function go(evt){
       console.log(" evt - "+evt.????t); // what is the correct syntax here?
    Thanks,

    Hey guys found the answer from stackoverflow
    it is - evt.target

  • Click handler on ComboxBox inside TableView

    All
    We have built a table and each row has a comboBox in it. How do I handle different selection events on the combobox and then get access to the row that it was changed on.
    levelCol.setCellFactory(new Callback<TableColumn<LoggerTableRow,String>,TableCell<LoggerTableRow,String>>(){       
                 @Override
                 public TableCell<LoggerTableRow, String> call(TableColumn<LoggerTableRow, String> param) {               
                      TableCell<LoggerTableRow, String> cell = new TableCell<LoggerTableRow, String>(){
                           @Override
                           public void updateItem(String item, boolean empty) {                       
                                if(item != null){
                                     ComboBox<String> comboBox = new ComboBox<>();
                                     comboBox.setItems(loggingLevelList);
                                     comboBox.getSelectionModel().select(item);
                                     setGraphic(comboBox);
                                     setAlignment(Pos.CENTER);
                      return cell;
            });

    If your LoggerTableRow has a property to which that column is bound: i.e. if you have something like
    levelCol.setCellValueFactory(new PropertyValueFactory<LoggerTableRow, String>("level"));then you can just use the built in ComboBoxTableCell:
    levelCol.setCellFactory(ComboBoxTableCell.forTableColumn(loggingLevelList));The combo box is creates will automatically update the level property in the LoggerTableRow object. If you need to perform further actions when that changes, then you can add listeners to those properties.
    If you can't use a ComboBoxTableCell, then I think the steps to add a change listener to the selected item property of the combo box, and call commitEdit(...) when it changes. This will update the property associated to the column. If your LoggerTableRow is a POJO (no FX properties), then you may also need to override commitEdit(...) to update the associated value "by hand". Example 13-11 in the [url http://docs.oracle.com/javafx/2/ui_controls/table-view.htm#CJAGAAEE]TableView tutorial gives a fairly full example of a custom editing table cell (using a text field, but it shouldn't be too hard to generalize). Scroll down the code there to the EditingCell inner class.

  • Button click handler: isn't invoked

    Hi i have a problem with my buttons but i cant see it,
    i am trying to close the bet screen when a button is
    pressed but it dosen't reach the if statement can
    anyone see the problem here is the code(i also have a class main that invokes class roulette):
    import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    public class BetScreen extends JFrame {
         private Container container;
         private FlowLayout layout;
         public  JButton oddButton;
           public  JButton evenButton;
           public  JButton redButton;
            public  JButton blackButton;
           public  JButton specifButton;
           public BetScreen()
             super("Bet Screen");
             layout = new FlowLayout();
             container = getContentPane();
             setLayout( layout );
             getContentPane().setBackground(Color.RED);
            layout.layoutContainer( container );
            oddButton = new JButton("Odd");
             add( oddButton );
             oddButton.addActionListener(
            new ActionListener()
          public void actionPerformed(ActionEvent event)
                System.out.println(event.getSource());
            System.out.println(oddButton);
              wager();
        }//end method actionPerformed
        }//end method actionListener
        );//end call to addActionListener
    }//end class.....................................................................................................................
    (This is in a different class)
    .....................................................................................................................import java.util.*;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    public class Roulette extends JFrame {
           private Container container;
           private JButton spinButton;
         private JButton quitButton;
           private FlowLayout layout;
           private JButton placeBetButton;
           public Roulette()
             super("Main Menu");
             layout = new FlowLayout();
             container = getContentPane();
            setLayout( layout );
             placeBetButton = new JButton("Place Bet");
             add( placeBetButton );
             placeBetButton.addActionListener(
        new ActionListener()
            public void actionPerformed( ActionEvent event )
             BetScreen betScreen = new BetScreen();
                 betScreen.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          betScreen.setSize(300,100);
          betScreen.setVisible(true);
          System.out.println(event.getSource());
          if(event.getSource() == betScreen.oddButton)
          betScreen.setVisible(false);
          }//end if
        }//end method actionPerformed
        }//end method actionListener
        );//end call to addActionListener
        }//end if

    This probably seems like a stupid question but what does a reference to a frame actually mean? JFrame frame1 = new CustomFrame1();
    JFrame frame2 = new CustomFrame2( frame1 );
    Now you have created frame2 by passing a reference ot frame1 to frame2. So now any code in frame2 has access to trame1, which means you could use the setVisible( false ) method on frame1, from an ActionListener in frame2. Its a terrible design as I don't see why the second frame would close the first frame, but it is possible.

  • Lately when I try to right click it opens a new tab with recent searchs.I have to go back to the tab and right click again to get the options. How do i fix it?

    When I try to right click now instead of getting the menu it goes into a new tab showing recent searches.I have to go back and right click again to get the menu and do what I wanted in the first place.Is there a way to fix this.This is really irritating.I like firefox but I'm ready to go back to Chrome. Thanks for any help.

    You're right-clicking a link? I can't think of any setting that opens a blank tab when you right-click in a page. It's also strange that it would occur on the first click but not on the second click.
    Does this affect all sites?
    Are you expecting Firefox's context menu or the site's context menu?
    One thing that comes to mind is overriding the site's own right-click handler by disabling scripts from capturing the right click. This is set under
    orange Firefox button (or Tools menu) > Options > Content
    To the right of "Enable JavaScript" is a button to access "Advanced" options. If it's checked, uncheck the box for "Disable or replace context menus".

  • Event handling in oops alv

    hi experts,
    event double click.
    when double click  on vbeln it should go to va03 transaction . how would i do that in oops alv.

    hai,
    you can go through code below .
    *& Report  Z_CLARIFY                                                   *
    REPORT  Z_CLARIFY                               .
    DATA: G_GRID TYPE REF TO CL_GUI_ALV_GRID.
    DATA: L_VALID TYPE C,
          V_FLAG,
          V_DATA_CHANGE,
          V_ROW TYPE LVC_S_ROW,
          V_COLUMN TYPE LVC_S_COL,
          V_ROW_NUM TYPE LVC_S_ROID.
    DATA: IT_ROW_NO TYPE LVC_T_ROID,
          X_ROW_NO TYPE LVC_S_ROID.
    DATA:BEGIN OF  ITAB OCCURS 0,
         VBELN LIKE LIKP-VBELN,
         POSNR LIKE LIPS-POSNR,
         CELLCOLOR TYPE LVC_T_SCOL, "required for color
         DROP(10),
         END OF ITAB.
    *The Below Definitions Must.....
    DATA:
    Reference to document
           DG_DYNDOC_ID       TYPE REF TO CL_DD_DOCUMENT,
    Reference to split container
           DG_SPLITTER          TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
    Reference to grid container
           DG_PARENT_GRID     TYPE REF TO CL_GUI_CONTAINER,
    Reference to html container
           DG_HTML_CNTRL        TYPE REF TO CL_GUI_HTML_VIEWER,
    Reference to html container
           DG_PARENT_HTML     TYPE REF TO CL_GUI_CONTAINER.
    "up to here
          CLASS lcl_event_handler DEFINITION
    CLASS LCL_EVENT_HANDLER DEFINITION .
      PUBLIC SECTION .
        METHODS:
    **Hot spot Handler
        HANDLE_HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF CL_GUI_ALV_GRID
                          IMPORTING E_ROW_ID E_COLUMN_ID ES_ROW_NO,
    **Double Click Handler
        HANDLE_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
                                         IMPORTING E_ROW E_COLUMN ES_ROW_NO,
        TOP_OF_PAGE FOR EVENT TOP_OF_PAGE              "event handler
                             OF CL_GUI_ALV_GRID
                             IMPORTING E_DYNDOC_ID.
           END_OF_LIST FOR EVENT end_of_list              "event handler
                            OF CL_GUI_ALV_GRID
                            IMPORTING E_DYNDOC_ID.
    ENDCLASS.                    "lcl_event_handler DEFINITION
          CLASS lcl_event_handler IMPLEMENTATION
    CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
    *Handle Hotspot Click
      METHOD HANDLE_HOTSPOT_CLICK .
        CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
        V_ROW  = E_ROW_ID.
        V_COLUMN = E_COLUMN_ID.
        V_ROW_NUM = ES_ROW_NO.
       MESSAGE I000 WITH V_ROW 'clicked'.
        CLEAR IT_ROW_NO[].
        X_ROW_NO-ROW_ID = V_ROW.
        APPEND X_ROW_NO TO IT_ROW_NO .
        CALL METHOD G_GRID->SET_SELECTED_ROWS
          EXPORTING
            IT_ROW_NO = IT_ROW_NO.
      ENDMETHOD.                    "lcl_event_handler
    *Handle Double Click
      METHOD  HANDLE_DOUBLE_CLICK.
        CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
        V_ROW  = E_ROW.
        V_COLUMN = E_COLUMN.
        V_ROW_NUM = ES_ROW_NO.
        IF E_COLUMN = 'VBELN'.
          SET PARAMETER ID 'VL' FIELD ITAB-VBELN.
          CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
        ENDIF.
        IF E_COLUMN = 'POSNR'.
          SET PARAMETER ID 'VL' FIELD ITAB-VBELN.
          CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN."
        ENDIF.
      ENDMETHOD.                    "handle_double_click
    METHOD END_OF_LIST.                   "implementation
    Top-of-page event
       PERFORM EVENT_TOP_OF_PAGE USING DG_DYNDOC_ID.
    ENDMETHOD.                            "top_of_page
        METHOD TOP_OF_PAGE.                   "implementation
    Top-of-page event
        PERFORM EVENT_TOP_OF_PAGE USING DG_DYNDOC_ID.
      ENDMETHOD.                            "top_of_page
    ENDCLASS.                    "LCL_EVENT_HANDLER IMPLEMENTATION
    *&             Global Definitions
    DATA:      G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
    "Container1
                G_HANDLER TYPE REF TO LCL_EVENT_HANDLER. "handler
    DATA: OK_CODE LIKE SY-UCOMM,
          SAVE_OK LIKE SY-UCOMM,
          G_CONTAINER1 TYPE SCRFNAME VALUE 'TEST',
          GS_LAYOUT TYPE LVC_S_LAYO.
    data: v_lines type i.
    data: v_line(3) type c.
    *- Fieldcatalog for First and second Report
    DATA: IT_FIELDCAT  TYPE  LVC_T_FCAT,
          X_FIELDCAT TYPE LVC_S_FCAT,
          LS_VARI  TYPE DISVARIANT.
                   START-OF_SELECTION
    START-OF-SELECTION.
      SELECT VBELN
             POSNR
             FROM LIPS
             UP TO 20 ROWS
             INTO CORRESPONDING FIELDS OF TABLE ITAB.
    describe table itab lines v_lines.
    END-OF-SELECTION.
      IF NOT ITAB[] IS INITIAL.
        CALL SCREEN 100.
      ELSE.
       MESSAGE I002 WITH 'NO DATA FOR THE SELECTION'(004).
      ENDIF.
    *&      Form  CREATE_AND_INIT_ALV
          text
    FORM CREATE_AND_INIT_ALV .
      DATA: LT_EXCLUDE TYPE UI_FUNCTIONS.
      "attention.....from here
      "split your container here...into two parts
      "create the container
      CREATE OBJECT G_CUSTOM_CONTAINER
               EXPORTING CONTAINER_NAME = 'SCR100_CUST'.
      "this is for top of page
    Create TOP-Document
      CREATE OBJECT DG_DYNDOC_ID
                       EXPORTING STYLE = 'ALV_GRID'.
    Create Splitter for custom_container
      CREATE OBJECT DG_SPLITTER
                 EXPORTING PARENT  = G_CUSTOM_CONTAINER
                           ROWS    = 2
                           COLUMNS = 1.
    Split the custom_container to two containers and move the reference
    to receiving containers g_parent_html and g_parent_grid
      "i am allocating the space for grid and top of page
      CALL METHOD DG_SPLITTER->GET_CONTAINER
        EXPORTING
          ROW       = 1
          COLUMN    = 1
        RECEIVING
          CONTAINER = DG_PARENT_HTML.
      CALL METHOD DG_SPLITTER->GET_CONTAINER
        EXPORTING
          ROW       = 2
          COLUMN    = 1
        RECEIVING
          CONTAINER = DG_PARENT_GRID.
    CALL METHOD DG_SPLITTER->GET_CONTAINER
       EXPORTING
         ROW       = 2
         COLUMN    = 1
       RECEIVING
         CONTAINER = DG_PARENT_HTML.
    CALL METHOD DG_SPLITTER->GET_CONTAINER
       EXPORTING
         ROW       = 1
         COLUMN    = 1
       RECEIVING
         CONTAINER = DG_PARENT_GRID.
      "you can set the height of it
    Set height for g_parent_html
      CALL METHOD DG_SPLITTER->SET_ROW_HEIGHT
        EXPORTING
          ID     = 1
          HEIGHT = 5.
      "from here as usual..you need to specify parent as splitter part
      "which we alloted for grid
      CREATE OBJECT G_GRID
             EXPORTING I_PARENT = DG_PARENT_GRID.
    Set a titlebar for the grid control
      CLEAR GS_LAYOUT.
      GS_LAYOUT-GRID_TITLE = TEXT-003.
      GS_LAYOUT-ZEBRA = SPACE.
      GS_LAYOUT-CWIDTH_OPT = 'X'.
      GS_LAYOUT-NO_ROWMARK = 'X'.
      GS_LAYOUT-CTAB_FNAME = 'CELLCOLOR'.
      CALL METHOD G_GRID->REGISTER_EDIT_EVENT
        EXPORTING
          I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
      CREATE OBJECT G_HANDLER.
      SET HANDLER G_HANDLER->HANDLE_DOUBLE_CLICK FOR G_GRID.
      SET HANDLER G_HANDLER->HANDLE_HOTSPOT_CLICK FOR G_GRID.
    SET HANDLER G_HANDLER->END_OF_LIST FOR G_GRID.
      SET HANDLER G_HANDLER->TOP_OF_PAGE FOR G_GRID.
      DATA: LS_CELLCOLOR TYPE LVC_S_SCOL. "required for color
      DATA: L_INDEX TYPE SY-TABIX.
      "Here i am changing the color of line 1,5,10...
      "so you can change the color of font conditionally
      LOOP AT ITAB.
        L_INDEX = SY-TABIX.
        IF L_INDEX = 1 OR L_INDEX = 5 OR L_INDEX = 10.
          LS_CELLCOLOR-FNAME = 'VBELN'.
          LS_CELLCOLOR-COLOR-COL = '6'.
          LS_CELLCOLOR-COLOR-INT = '0'.
          LS_CELLCOLOR-COLOR-INV = '1'.
          APPEND LS_CELLCOLOR TO ITAB-CELLCOLOR.
          MODIFY ITAB INDEX L_INDEX TRANSPORTING CELLCOLOR.
          LS_CELLCOLOR-FNAME = 'POSNR'.
          LS_CELLCOLOR-COLOR-COL = '6'.
          LS_CELLCOLOR-COLOR-INT = '0'.
          LS_CELLCOLOR-COLOR-INV = '1'.
          APPEND LS_CELLCOLOR TO ITAB-CELLCOLOR.
          MODIFY ITAB INDEX L_INDEX TRANSPORTING CELLCOLOR.
        ENDIF.
      ENDLOOP.
    setting focus for created grid control
      CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
        EXPORTING
          CONTROL = G_GRID.
    Build fieldcat and set editable for date and reason code
    edit enabled. Assign a handle for the dropdown listbox.
      PERFORM BUILD_FIELDCAT.
      PERFORM  SET_DRDN_TABLE.
    Optionally restrict generic functions to 'change only'.
      (The user shall not be able to add new lines).
      PERFORM EXCLUDE_TB_FUNCTIONS CHANGING LT_EXCLUDE.
    **Vaiant to save the layout
      LS_VARI-REPORT      = SY-REPID.
      LS_VARI-HANDLE      = SPACE.
      LS_VARI-LOG_GROUP   = SPACE.
      LS_VARI-USERNAME    = SPACE.
      LS_VARI-VARIANT     = SPACE.
      LS_VARI-TEXT        = SPACE.
      LS_VARI-DEPENDVARS  = SPACE.
    **Calling the Method for ALV output
      CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY
        EXPORTING
          IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
          IS_VARIANT           = LS_VARI
          IS_LAYOUT            = GS_LAYOUT
          I_SAVE               = 'A'
        CHANGING
          IT_FIELDCATALOG      = IT_FIELDCAT
          IT_OUTTAB            = ITAB[].
      "do these..{
    Initializing document
      CALL METHOD DG_DYNDOC_ID->INITIALIZE_DOCUMENT.
    Processing events
      CALL METHOD G_GRID->LIST_PROCESSING_EVENTS
        EXPORTING
          I_EVENT_NAME = 'TOP_OF_PAGE'
          I_DYNDOC_ID  = DG_DYNDOC_ID.
      "end }
    Set editable cells to ready for input initially
      CALL METHOD G_GRID->SET_READY_FOR_INPUT
        EXPORTING
          I_READY_FOR_INPUT = 1.
    ENDFORM.                               "CREATE_AND_INIT_ALV
    *&      Form  EXCLUDE_TB_FUNCTIONS
          text
         -->PT_EXCLUDE text
    FORM EXCLUDE_TB_FUNCTIONS CHANGING PT_EXCLUDE TYPE UI_FUNCTIONS.
    Only allow to change data not to create new entries (exclude
    generic functions).
      DATA LS_EXCLUDE TYPE UI_FUNC.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_CUT.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE_NEW_ROW.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
      LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_UNDO.
      APPEND LS_EXCLUDE TO PT_EXCLUDE.
    ENDFORM.                               " EXCLUDE_TB_FUNCTIONS
    *&      Form  build_fieldcat
          Fieldcatalog
    FORM BUILD_FIELDCAT .
      DATA: L_POS TYPE I.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Delivery'(024).
      X_FIELDCAT-FIELDNAME = 'VBELN'.
      X_FIELDCAT-TABNAME = 'IT_FINAL'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-NO_ZERO    = 'X'.
      X_FIELDCAT-OUTPUTLEN = '10'.
      X_FIELDCAT-HOTSPOT = 'X'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Item'(025).
      X_FIELDCAT-FIELDNAME = 'POSNR'.
      X_FIELDCAT-TABNAME = 'IT_FINAL'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-OUTPUTLEN = '5'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
      L_POS = L_POS + 1.
      X_FIELDCAT-SCRTEXT_M = 'Drop'(025).
      X_FIELDCAT-FIELDNAME = 'DROP'.
      X_FIELDCAT-TABNAME = 'IT_FINAL'.
      X_FIELDCAT-COL_POS    = L_POS.
      X_FIELDCAT-OUTPUTLEN = '5'.
      X_FIELDCAT-EDIT = 'X'.
      X_FIELDCAT-DRDN_HNDL = '1'.
      X_FIELDCAT-DRDN_ALIAS = 'X'.
      APPEND X_FIELDCAT TO IT_FIELDCAT.
      CLEAR X_FIELDCAT.
    ENDFORM.                    " build_fieldcat
    *&      Module  STATUS_0100  OUTPUT
          text
    MODULE STATUS_0100 OUTPUT.
      SET PF-STATUS 'MAIN100'.
      SET TITLEBAR 'MAIN100'.
      IF G_CUSTOM_CONTAINER IS INITIAL.
    **Initializing the grid and calling the fm to Display the O/P
        PERFORM CREATE_AND_INIT_ALV.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
          text
    MODULE USER_COMMAND_0100 INPUT.
      CASE SY-UCOMM.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    there are many such examples
    goto->se38->type bcalv* and press f4, u can see many examples.
    Reward points if helpful.
    Thanks and regards
    Swetha Singh.

Maybe you are looking for

  • Premiere CS6 crashing on start up after Mountain Lion install.

    Hi everyone, new to the forum.  I'm on a mid-2010 Macbook Pro i5 8GB RAM using the Creative Cloud, mainly Premiere Pro CS6.  So, last week installed Mountain Lion (probably a mistake) after I read that there were no issues with Premiere.  Well, since

  • Problem with changeSelection()

    Hi, We have a class VSGrid that extends JTable. In that class we have overridden the changeSelection method to force the text to select when focus is brought to the cell. changeSelection calls editCellAt(rowIndex, columnIndex). The problem here is, A

  • How to reference to a prompted which user entered

    I want to setup a dynamic report title according to the different prompt value which user entered, how can I do it ? Thanks for your help!

  • Need a recommenda​tion for a DJ speaker setup

    what loudspeakers, subwoofer, and accessories should I get for small to medium venues.I already have a full stanton setup (mixer/two tables/) and have a laptop I use too. I just have only used stereo equipment and done house partys but want to step i

  • ERROR:ORA-12500: TNS:listener failed to start a dedicated server process

    I'm getting this error when connecting to an 8i database. The setup was like this: I had an Oracle 8i database on this server and i installed Grid Control on this server which also created a listener. From Metalink, I saw the following note: A versio