List control issue in Projector mode after Printomatic

I'm working on an application in MX. I'm using a multi-select list control and mostly it's working fine. However, in Projector mode, under certain circumstances, my list is shown considerably reduced in size and, when I click on it, I get a Director player error: Property not found #selectedIndex.
I've narrowed the problem down to the use of Printomatic. Unfortunately I'm stuck with Printomatic for the time being.
I've tried changing the list to a single-select with no change. I've put an alert when I click on the list to determine whether the list object is receiving messages and it is. I've tried returning from the Printomatic calls to a frame where the list doesn't already exist and then recreating the list - no change.
It seems as though Printomatic is corrupting something related to the list. And, once it's been corrupted, it stays corrupted until I restart the executable.
Anyone have any suggestions? I don't have time right now to implement a printing class which is the only other idea I have.

Perhaps is better to continue here because I have the same symptom but due a different problem:
Creating procedure sp_sqlagent_get_perf_counters...
Error: 468, Severity: 16, State: 9.
Cannot resolve the collation conflict between "SQL_Latin1_General_CP1_CI_AS" and "Latin1_General_CI_AS" in the equal to operation.
Error: 912, Severity: 21, State: 2.
Script level upgrade for database 'master' failed because upgrade step 'sqlagent100_msdb_upgrade.sql' encountered error 200, state 7, severity 25. This is a serious error condition which might interfere with regular operation and the database will be taken
offline. If the error happened during upgrade of the 'master' database, it will prevent the entire SQL Server instance from starting. Examine the previous errorlog entries for errors, take the appropriate corrective actions and re-start the database so that
the script upgrade steps run to completion.
Error: 3417, Severity: 21, State: 3.
Cannot recover the master database. SQL Server is unable to run. Restore master from a full backup, repair it, or rebuild it. For more information about how to rebuild the master database, see SQL Server Books Online.
SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
This is System Center dedicated instance so the defualt collation, as from SC requirements, is SQL_Latin1_General_CP1_CI_AS, but MSDB uses Latin1_General_CI_AS.
It seems that sqlagent100_msdb_upgrade.sql fails in creating the sp sp_sqlagent_get_perf_counters in the MSDB (in fact it doesn't exist).
Now I was thinking about changing sqlagent100_msdb_upgrade.sql introducing the collate parameter, but I have don't know where to find it.
My instance actually is UP due the -T902 parameter usage 
Please try to write better code ;-)
Ruggiero Lauria
MCT-MCITP-MCSA-MCSE-MS SQL DBA

Similar Messages

  • Login issues from sleep mode after OSX maverick update

    After upgrading to OSX Maverick on my 13" MacBook Pro, I am having issues with logging in after it being in sleep mode. Everytime I close the screen to go somewhere and open it back up to continue what I was working on I type my password in (I am the only user, no other user accounts) it acts like the password is wrong and the only way to get logged in is to hold the power button down to shut the computer off then power it back up, then I can login.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • Issue in List Control

    I am facing a strange issue on the implementation of List Control on webdynpro ABAP UI screen . I have created a List Control where I have some buttons on the toolbar to perform some action. I am providing the data to the list .
    My issue now is when I select a line item on the first row of the List and click any of the buttons , no actions is getting triggered but works fine for the second row onwards. Can you please help in providing some suggestions?
    Thanks
    Ram

    Hi,
    For the First time, the lead selection is already set in the list control, hence the buttons are not getting triggered.
    You might have written the code inside the buttons only when there is a change in the slection of list.
    Regards,
    Lekha.

  • Issue : drag and drop from list control to tree control

    Hi,
    I was trying a drag and drop from list control to tree control. I have used some sample data to populate list and tree controls .
    It is working fine . except one problem ..
    Prob : when i drag an item to tree control .. it gets added .. now tree contains (X+1) data in list .. say X is the inital number of nodes in a tree node.
              now if i drag another item from list to last item in the tree node  .. i.e at X+1 index. .. it throws null pointer exception.
    I am considerably new in flex programming . looking for help from experts ..
    Below is my code :
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                    layout="horizontal"
                    creationComplete="init()">
        <mx:Script>
            <![CDATA[
                import mx.controls.listClasses.IListItemRenderer;
                import mx.rpc.events.FaultEvent;
                import mx.rpc.events.ResultEvent;
                import mx.utils.ObjectUtil;
                import mx.collections.ICollectionView;
                import mx.core.UIComponent;
                import mx.managers.DragManager;
                import mx.events.DragEvent;
                import mx.controls.Alert;
                import mx.controls.Label;
                import mx.events.CloseEvent;
                private var homePath:String="/home/e311394/dndTest/";
                private var destPath:String="/home/e311394/dndDest/";
                private var eid:String="e311394";
                private var actn:String;
                [Bindable]
                private var cm:ContextMenu;
                private var cmi:ContextMenuItem;
                [Bindable]
                private var dp:ArrayCollection;
                private function init():void
                    cmi=new ContextMenuItem("Remove");
                    cmi.enabled=true;
                    cmi.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, contextMenuItem_menuItemSelect);
                    cm=new ContextMenu();
                    cm.hideBuiltInItems();
                    cm.customItems=[cmi];
                    cm.addEventListener(ContextMenuEvent.MENU_SELECT, contextMenuItem_menuSelect);
                    list.contextMenu=cm;
                private function contextMenuItem_menuSelect(evt:ContextMenuEvent):void
                    list.selectedIndex=lastRollOverIndex;
                private function contextMenuItem_menuItemSelect(evt:ContextMenuEvent):void
                    var loclSelectedRow:Object=list.selectedItem;
                    var lostrSelectedMenuItem:String;
                    lostrSelectedMenuItem=evt.target.caption;
                    if (loclSelectedRow != null)
                        var obj:Object=new Object()
                        obj.label=loclSelectedRow.label as String;
                            //Alert.show(obj.label);
                    if (lostrSelectedMenuItem == "Remove")
                        if(loclSelectedRow!=null)
                        var pth:String=homePath.concat(loclSelectedRow.label);
                        //Alert.show(pth);
                        //FlexDnDRemoteService.process(eid,"delete",pth,"-"); 
                        var coll:ArrayCollection=list.dataProvider as ArrayCollection;
                        if (coll.contains(loclSelectedRow))
                            coll.removeItemAt(coll.getItemIndex(loclSelectedRow));
                public function onTreeDragEnter(event:DragEvent):void
                    event.preventDefault();
                    DragManager.acceptDragDrop(event.target as UIComponent);
                    tree.showDropFeedback(event);
                protected function onTreeDragOver(event:DragEvent):void
                    event.preventDefault();
                    event.currentTarget.hideDropFeedback(event);
                    try
                        var index:int=tree.calculateDropIndex(event);
                    catch (e:Error)
                        DragManager.showFeedback(DragManager.NONE);
                        return;
                    tree.selectedIndex=index;
                    var draggedOverItem:Object=tree.selectedItem;
                public function onTreeDragExit(event:DragEvent):void
                    event.preventDefault();
                    tree.hideDropFeedback(event);
                private function showAlert():void
                    Alert.yesLabel="Move";
                    Alert.noLabel="Copy";
                    Alert.buttonWidth=70;
                    Alert.show("Copy / Move ?", "Confirm", Alert.YES | Alert.NO | Alert.CANCEL, this, alertListener, null, Alert.OK);
                private function alertListener(eventObj:CloseEvent):void
                    var result:Boolean=false;
                    if (eventObj.detail == Alert.CANCEL)
                        //Alert.show("CANCEL");
                        return;
                    if (eventObj.detail == Alert.YES)
                        //Alert.show("YES");
                        result=true;
                    else if (eventObj.detail == Alert.NO)
                        //Alert.show("NO");
                        result=false;
                    var index:int=tree.calculateDropIndex(treedropevt);
                    //Alert.show("Drop Pos" + index.toString());
                    /* var treeList:ArrayCollection=tree.dataProvider as ArrayCollection;
                       Alert.show(" index"+index+"Length "+treeList.length);
                       if(index > treeList.length)
                       Alert.show("Returning");
                       return;
                    var items:Array=new Array();
                    if (treedropevt.dragSource.hasFormat("items"))
                        items=items.concat(treedropevt.dragSource.dataForFormat("items") as Array);
                    var parentItem:Object;
                    parentItem=getObjectTarget();
                    /* if (tree.dataDescriptor.isBranch(tree.indexToItemRenderer(index).data))
                       parentItem=tree.indexToItemRenderer(index).data;
                       else
                       var dropParentPackage:Object = tree.mx_internal::_dropData.parent as Object;
                       Alert.show("HAck"+dropParentPackage.toString());
                       parentItem=tree.getParentItem(tree.indexToItemRenderer(index).data);
                       //Alert.show("Lenght "+ObjectUtil.getClassInfo(parentItem).properties.length);
                    //Alert.show("Lenght "+ObjectUtil.getClassInfo(parentItem).properties.length);
                    var position:int=0;
                    /* if(ObjectUtil.getClassInfo(parentItem).properties.length==0)
                       Alert.show("Returning");
                       return;
                    if (parentItem != null)
                        try
                            while (tree.indexToItemRenderer(index).data != parentItem)
                                //Alert.show(tree.indexToItemRenderer(index).data.toString());
                                if (index > 0)
                                    index--;
                                //Alert.show("Insiade");
                                position++;
                        catch (e:Error)
                            Alert.show("Catch" + index.toString());
                            return;
                    for each (var item:Object in items)
                        var obj:Object=new Object()
                        obj.label=item.label as String;
                        if (parentItem != null)
                            //Alert.show("ADDED");                       
                            tree.dataDescriptor.addChildAt(parentItem, obj, position++);                       
                        else
                            //Alert.show("PARENT NULL");
                            tree.dataDescriptor.addChildAt(tree.selectedItem, obj, position++);                       
                        var spth:String=homePath.concat(item.label);
                        //Alert.show(spth);   
                        var dpth:String=destPath.concat(item.label);
                        //Alert.show(dpth);
                        if (result == true)
                            removeItems();
                                //FlexDnDRemoteService.process(eid,"move",spth,dpth);
                        else
                            //FlexDnDRemoteService.process(eid,"copy",spth,dpth);
                        tree.validateNow();
                public function getObjectTarget():Object
                    var dropData:Object=tree.mx_internal::_dropData as Object;
                    if (dropData.parent != null)
                        return dropData.parent;
                    else
                        // if there is not parent (root of the tree), I take the root directly
                        var renderer:IListItemRenderer=tree.indexToItemRenderer(0);
                        return renderer.data;
                public function removeItems():void
                    //remove moved elements
                    var items:Array=treedropevt.dragSource.dataForFormat("items") as Array;
                    var coll:ArrayCollection=list.dataProvider as ArrayCollection;
                    for each (var item:Object in items)
                        if (coll.contains(item))
                            coll.removeItemAt(coll.getItemIndex(item));
                private var treedropevt:DragEvent;
                public function onTreeDragDrop(event:DragEvent):void
                    treedropevt=event;
                    showAlert();
                    event.preventDefault();
                    tree.hideDropFeedback(event);
                public function resultHandler(event:ResultEvent):void
                    Alert.show("Success", "Status");
                public function faultHandler(event:FaultEvent):void
                    Alert.show(event.fault.faultString, "Failure");
            ]]>
        </mx:Script>
        <mx:ArrayCollection id="listDP">
            <mx:Object label="File1.dnd"/>
            <mx:Object label="File2.dnd"/>
            <mx:Object label="File3.dnd"/>
            <mx:Object label="File4.dnd"/>
            <mx:Object label="File5.dnd"/>
        </mx:ArrayCollection>
        <mx:Number id="lastRollOverIndex"/>
        <!--
             <mx:ArrayCollection id="treeDP">
             <mx:Object label="/home">
             <mx:children>
             <mx:Object label="dummy1.ks"/>
             <mx:Object label="dummy2.ks"/>
             <mx:Object label="e493126">
             <mx:children>
             <mx:ArrayCollection>
             <mx:Object label="/home/e493126/sample1.ks"/>
             </mx:ArrayCollection>
             </mx:children>
             </mx:Object>
             </mx:children>
             </mx:Object>
             </mx:ArrayCollection>
        -->
        <mx:ArrayCollection id="treeDP">
            <mx:Object label="/dndDest">
                <mx:children>
                    <mx:ArrayCollection>
                        <mx:Object label="sample1.ks"/>
                        <mx:Object label="sample2.ks"/>
                        <mx:Object label="sample3.ks"/>
                        <mx:Object label="sample4.ks"/>
                        <mx:Object label="sample5.ks"/>
                        <mx:Object label="sample6.ks"/>
                    </mx:ArrayCollection>
                </mx:children>
            </mx:Object>
        </mx:ArrayCollection>
        <mx:List id="list"
                 itemRollOver="lastRollOverIndex = event.rowIndex"
                 width="50%"
                 dragEnabled="true"
                 dataProvider="{listDP}"
                 labelField="label"
                 allowMultipleSelection="true"
                 dragMoveEnabled="false">
        </mx:List>
        <mx:Tree id="tree"
                 width="50%"            
                 dragEnabled="true"            
                 dataProvider="{treeDP}"            
                 dragEnter="onTreeDragEnter(event)"
                 dragOver="onTreeDragOver(event)"
                 dragExit="onTreeDragExit(event)"
                 dragDrop="onTreeDragDrop(event)"
                 labelField="label"
                 liveScrolling="true">
        </mx:Tree>
        <mx:RemoteObject id="FlexDnDRemoteService"
                         showBusyCursor="true"
                         destination="FlexDnD">
            <mx:method name="process"
                       result="resultHandler(event)"
                       fault="faultHandler(event)"/>
        </mx:RemoteObject>
    </mx:Application>
    Thanks,
    Rajiv

    Ya , i have searched and have used the same code.
    But needed to customize few things like:
    stop dnd in same tree
    drop some item into a folder ..( onto it ) etc
    have achieved the same .. but this issue ..
    i think the tree dataprovider (contents internally is not being updated .. only the UI)
    any suggestions ?
    - Rajiv

  • Why does Calendar not go back to all entries in list mode after upgrading to iOS 6?

    Why does Calendar not go back to all entries in list mode after upgrading to iOS6?

    I have an iPhone 5 running at iOS7.1.1. The Calendar list mode previous to iOS 6 showed all past entries, which I found very useful. After the upgrade, it only showed the previous 12 months (as I recall). All past entries are still present, you just have to exit list mode to see them. I'm asking this now after finding the forum for the answer to rediscover the list function in iOS 7.

  • Issues Exiting Sleep Mode and Odd Behavior On Restart with GPU

    I'm running a completely stock HP P7-1240 desktop except for an EVGA GeForce GTX 750 TI SC GPU. The GPU runs fine when the computer is up and running (which is odd because the forums have several other threads mentioning that the 700 series should be incompatible with my BIOS).
    However, there are two main strange problems that have arisen since installing the GPU. One is that, whenever the computer enters sleep mode, it refuses to wake back up properly. It seems to me that the computer activates but does not send any signals out from the back panel (at the very least, no video signal because my monitors stay blank). On a rare occasion, it will wake back up properly, but at least 90% of the time, it needs to be restarted. Upon restart, sometimes the same issue occurs (no video output), and the computer needs to be restarted a second time before it will boot up again.
    This leads to the second problem. When starting, the computer goes to a black screen listing basic computer specs (see attached photo. At this screen, the computer does not respond to any input.  It proceeds to beep 3 times, all the same length and pitch spaced about 30 seconds apart. After the third beep, the screen goes black and then the computer boots up normally with no further odd behavior.
    Without the GPU, none of these issues happen. At the very least, not regularly.
    I have seen another thread mentioning that, although the HP support page for my desktop does not list it, there is a BIOS update for my motherboard that has fixed issues relating to more modern GPU's. By nature of it being a BIOS update that does not (appear to) officially support Windows 7, I'm hesitant to move forward with that potential solution.
    Although I'm planning to build myself a new computer from scratch at some point, I was hoping to at least get another year out of this machine, if not 2.  While this issue doesn't appear to be immediately threatening the stability of the computer, I can't help but think that this is an issue I should iron soon to avoid future issues (not to mention it would save me a fair amount of electricity to be able to enter sleep mode on a regular basis).
    Any suggestions would be greatly appreciated!
    This question was solved.
    View Solution.

    Hello @johnmwalker,
    I understand that you are having some issues with your HP Pavilion p7-1240 Desktop PC waking up from sleep mode. I am not sure how much can be done for the delay on your startup with an OEM BIOS you are limited in what you can do and since your graphic card works I think you would be better off not messing too much with the BIOS at this point. The one thing I would try is going into the BIOS using the HP Support document:BIOS Setup Utility Information and Menu Options, and under Advanced > Power-On Options set POST Messages to Disable and POST Delay (in seconds) to None.
    Now the waking from sleep mode issue  could just be the hybrid sleep setting causing you an issue with sleep mode. Use the following steps to disable hybrid sleep:
    Step 1. Click Start
    Step 2. Click Control Panel.
    Step 3. Click System and Security
    Step 4. Click Power Options
    Step 5. Click High Performance from Power Options
    Step 6. Click Change plan settings
    Step 7. Select Change advanced power settings
    Step 8. Click the plus (+) sign next to Sleep
    Step 9. Click the plus (+) sign next to Allow hybrid sleep
    Step 10. Select Off from the drop-down menu
    Step 11. Click OK
    Please re-post if you require additional support. Thank you for posting on the HP Forums. Have a great day!
    Please click the "Thumbs Up" on the bottom right of this post to say thank you if you appreciate the support I provide!
    Also be sure to mark my post as “Accept as Solution" if you feel my post solved your issue, it will help others who face the same challenge find the same solution.
    Dunidar
    I work on behalf of HP
    Find out a bit more about me by checking out my profile!
    "Customers don’t expect you to be perfect. They do expect you to fix things when they go wrong." ~ Donald Porter

  • Hard Drive dead? - Failed to Issue COM RESET successfully after 3 attempts.

    Hello, i think my 13" 2.53Ghz Unibody (mid2009) MBP's hard drive has had it's last spin. I was using it normally in bootcamp, when windows7 froze, so I rebooted holding the power button....windows wouldnt start any more...ok, so i tried to boot into OSX...stuck at the loading screen with the apple.
    Went into verbose mode and it stops at "Failed to issue COM RESET successfully after 3 attempts. Failing..." Google says this has to do with the hard drive.
    Did a extensive hardware test (boot + D), all OK, booted from install disk and tried to run disk utility, but it crashed when trying to locate the drives (didn't even list the drive on the right pane). Single User mode wont load either, will give the same COM RESET message. I am literally out of options here.
    Is there something i can do to either fix this or verify 100% that my hard disk is truly dead?
    I have a backup in timemachine so the data is ok, but the timing couldnt be worse, i have no time to fix this now and needed a working laptop, highly frustrating.
    thanks for any tips

    nobrex wrote:
    Hello, i think my 13" 2.53Ghz Unibody (mid2009) MBP's hard drive has had it's last spin. I was using it normally in bootcamp, when windows7 froze, so I rebooted holding the power button....windows wouldnt start any more...ok, so i tried to boot into OSX...stuck at the loading screen with the apple.
    Went into verbose mode and it stops at "Failed to issue COM RESET successfully after 3 attempts. Failing..." Google says this has to do with the hard drive.
    Did a extensive hardware test (boot + D), all OK, booted from install disk and tried to run disk utility, but it crashed when trying to locate the drives (didn't even list the drive on the right pane). Single User mode wont load either, will give the same COM RESET message. I am literally out of options here.
    Is there something i can do to either fix this or verify 100% that my hard disk is truly dead?
    I have a backup in timemachine so the data is ok, but the timing couldnt be worse, i have no time to fix this now and needed a working laptop, highly frustrating.
    thanks for any tips
    Welcome to the Apple Forums!
    Your HDD is probably dead, since the error doesn't appear to indicate something wrong with the motherboard. Just buy a new 2.5" HDD. I don't know about prices in Brazil, but here in the US, a 1TB drive runs for around US$100. Also, check on eBay for people who upgraded their drive and are selling their Apple drive. Some will ship to Brazil, and you can score those for $50-100.
    I hope you backed up your hard drive. If not, you'll have to do the whole reinstallation process.

  • ItemRenderer in List control

    Well guys, I seem stuck with a wall trying to make List
    control working with programmable dataProvider and itemRenderer
    defined as a component. The naive example from flex2 dev guide (p.
    723 "Using an item renderer with a List control") is working fine,
    but in real word we are hardly coding dataProvider inline, so I
    tried to change this example and got absolutely nothing in my
    browser window:
    main application:
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    height="700" width="700" creationComplete="initApp()">
    <mx:Script>
    <![CDATA[
    import flash.events.Event;
    import flash.net.URLRequest;
    import mx.utils.ArrayUtil;
    import mx.collections.ArrayCollection;
    [Bindable]
    private var u:URLRequest;
    private var jobArray: Array = new Array();
    private var myAC: ArrayCollection = null;
    private function initApp():void {
    var myObj1:Object = {label:"Alaska", data:"Juneau",
    webPage:"
    http://www.state.ak.us/"};
    var myObj2:Object = {label:"Alabama", data:"Montgomery",
    webPage:"
    http://www.alabama.gov/"};
    jobArray.push(myObj1);
    jobArray.push(myObj2);
    myAC = new ArrayCollection(jobArray);
    ]]>
    </mx:Script>
    <mx:List id="myList"
    height="180" width="250" variableRowHeight="true"
    itemRenderer="RendererState" backgroundColor="white"
    dataProvider="myAC">
    </mx:List>
    </mx:Application>
    itemRenderer component:
    <?xml version="1.0"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    >
    <mx:Script>
    <![CDATA[
    import flash.events.Event;
    import flash.net.URLRequest;
    private var u:URLRequest;
    private function handleClick(eventObj:Event):void {
    u = new URLRequest(data.webPage);
    navigateToURL(u);
    ]]>
    </mx:Script>
    <mx:HBox >
    <mx:Label id="State" text="State: {data.label}"/>
    <mx:Label id="Statecapital" text="Capital: {data.data}"
    />
    </mx:HBox>
    <mx:LinkButton id="webPage" label="Official {data.label}
    web page"
    click="handleClick(event);" color="blue" />
    </mx:VBox>
    Anyone?

    Ug, why won't adobe let us use tabs in our messages? Just to
    make everyone's code harder to read? Anyway...
    the very first thing I notice is that your list's
    dataProvider has no brackets "{}" to link it to the object. Seems
    that should throw an error though... however, there is a way to
    mess up your browser by installing the new Flash 9 player without
    installing the new SDK so that you don't actually get to see the
    errors that are thrown. So be careful there.
    First see if the brackets is an issue. Even if it doesn't
    throw an error, since you aren't binding the dataProvider property
    it may only load the ArrayCollection once when it is still empty
    and not after you have pushed the new data. You might also try
    setting the dataProvider directly in AS code: list.dataProvider =
    [obj1, obj2]
    I recommend adjusting your code in various ways first before
    finally giving up and posting here. Often that will narrow down the
    problem and make it easier to address.
    Finally, if you are thinking of having multiple focusable
    controls in your itemRenderer/Editor (this goes for either List or
    DataGrid) you should abandon the idea right away. Last I checked,
    tab focus will not pass correctly between individual renderers (at
    least not on IE). My solution is to simply use a Repeater. It has
    more overhead and you have to fiddle with scroll bars a bit, but it
    is a much more stable and robust solution.
    Anyway good luck.

  • DataGrid enters in edit mode after alert is closed

    Hi, i tried to fix this by myself but i just couldn't.
    This is the problem:
    I added  KeyboardEvent.KEY_DOWN event listener for data grid and if key code is 46 (delete btn) alert is shown to ask user if he wants to delete that selected row and that is working without problem but when alert is closed data grid enters in edit mode. Why is this happening? Also i noticed that last field that has been edited will enter in edit mode regardless of what row is selected.
    This is the code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="init()">
    <mx:Script>
         <![CDATA[
              import mx.controls.Alert;
              private function init():void
                   testGrid.addEventListener(KeyboardEvent.KEY_DOWN, dataGridKeyDown);
              private function dataGridKeyDown(e:KeyboardEvent):void
                   if(e.keyCode == 46)
                        Alert.show("Do you really want to delete row", "Program",(Alert.OK | Alert.NO));
         ]]>
    </mx:Script>
    <mx:ArrayCollection id="arrColl">
             <mx:Object>
                <mx:col1>Pavement</mx:col1>
                <mx:col2>11.99</mx:col2>
                <mx:col3>Slanted and Enchanted</mx:col3>
             </mx:Object>
             <mx:Object>
                <mx:col1>Pavement</mx:col1>
                <mx:col2>Brighten the Corners</mx:col2>
                <mx:col3>11.99</mx:col3>
             </mx:Object>
          </mx:ArrayCollection>
         <mx:DataGrid editable="true" id="testGrid" width="450" height="300" dataProvider="{arrColl}">
              <mx:columns>
                   <mx:DataGridColumn headerText="Col 1" dataField="col1"/>
                   <mx:DataGridColumn headerText="Col 2" dataField="col2"/>
                   <mx:DataGridColumn headerText="Col 3" dataField="col3"/>
              </mx:columns>
         </mx:DataGrid>
    </mx:Application>
    So this is how it looks when alert is shown:
    And when i click OK or NO in alert box and when alert box  disappear grid automatically enter in edit mode and looks like this:
    Any help is  appreciated as this is really annoying issue.

    Use this code after you download the Flex SDK 3.4 and perform the same operation as you want.Please test this.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
                        layout="vertical"
                        creationComplete="init()">
         <mx:Script>
              <![CDATA[
                   import mx.events.CloseEvent;
                   import mx.controls.Alert;
                   private function init():void
                        testGrid.addEventListener(KeyboardEvent.KEY_DOWN, dataGridKeyDown);
                   private function dataGridKeyDown(e:KeyboardEvent):void
                        if (e.keyCode == 46)
                             Alert.show("Do you really want to delete row", "Program", (Alert.YES | Alert.NO),this,deleteHandler);
                             testGrid.editable = false;
                   private function deleteHandler( e:CloseEvent ):void
                        if( e.detail == Alert.YES )
                             // delete
                        else
                             // do not delete
                        testGrid.editable = true;
              ]]>
         </mx:Script>
         <mx:ArrayCollection id="arrColl">
              <mx:Object>
                   <mx:col1>Pavement</mx:col1>
                   <mx:col2>11.99</mx:col2>
                   <mx:col3>Slanted and Enchanted</mx:col3>
              </mx:Object>
              <mx:Object>
                   <mx:col1>Pavement</mx:col1>
                   <mx:col2>Brighten the Corners</mx:col2>
                   <mx:col3>11.99</mx:col3>
              </mx:Object>
         </mx:ArrayCollection>
         <mx:DataGrid editable="true"
                         id="testGrid"
                         width="450"
                         height="300"
                         dataProvider="{arrColl}">
              <mx:columns>
                   <mx:DataGridColumn headerText="Col 1"
                                          dataField="col1"/>
                   <mx:DataGridColumn headerText="Col 2"
                                          dataField="col2"/>
                   <mx:DataGridColumn headerText="Col 3"
                                          dataField="col3"/>
              </mx:columns>
         </mx:DataGrid>
    </mx:Application>

  • Laptop doesn't wake after sleep mode after Windows 10 update

    I usually lower the laptop lid when i want to put it into sleep mode; after the windows 10 update, this stopped working. I tried putting it into sleep mode from the start menue. This causes the screen to become black, but power to remain on ( I can see this from a steady light from the power button whereas sleep would have a flashing power button). The laptop's fan also increases in speed. When I try to wake the laptop, nothing happenes; I have tried to use ctrl+alt+delete, however this also does not work. I am ususally forced to resort to a manual shut down via holding the power button for a few second and restarting the laptop. I have tried updating the display adapters, restarted the laptop, and still no result. Does anyone know why this is happenning and how I can fix it?

    I was having the Exact Same Issue. The reason I decided to go back to windows 8 was because since upgrading to Windows 10, when my computer goes into sleep mode, I cannot wake it up. I have to press and hold the power button to shut it done and restart. Even if I close my laptop, and reopen the lid, it wont start back up and I have to press and hold the power button and shut it down and restart.  After trying to restore my HP Envy Laptop from Windows 10 to Windows 8, it got stuck in a Repair PC Loop and I could not even access the desktop, I tried the restore option to an earlier date and that failed and all the repair options also failed. The last option I had was to do a full PC Refresh, and that one worked. It took about an hour but no data was lost, and only a few of my downloaded apps were removed. An html url was left on the desktop that showed a list of all the apps that were removed. So all I did was download those back and now im back up and running Windows 8. 

  • My iPod touch is stuck on one song in my play list when in the shuffle mode.  How do I fix this to shuffle through all the songs in that playlist?

    My iPod touch is stuck on one song in my play list when in the shuffle mode.  How do I fix this to shuffle through all the songs in that playlist?

    If you go to the Now Playing screen, the Repeat control is the the arrowed racetrack icon on the left side right below the scrubber bar. Tap the icon to change. It is white when Repeat is off.

  • How Do You Populate A Spark List Control With An Array?

    Hello, all,
    Sorry to come accross so frustrated, but how in the name of God do you populate a Spark list control with the data in an array?  You used to be able to do this with the mx:List control, but the guys developing Flex just had to make things more difficult than they need to be!  I am more of a code purist and prefer doing things the way they have been done for decades, but apparently nothing can ever stay simple!
    I simply want to populate a list control with an array and this shouldn't be rocket science!  I found out that I must use a "collection" element, so I decided that an arrayCollection would be best.  However, after searching Adobe's documentation about arrayCollections, I am lost in a black hole of data binding, extra lines of code just to add a new element, the need to sort it, etc...!
    Here is my code:
    var pendingArray:ArrayCollection = new ArrayCollection();
    for ( var i:int = 0 ; i < queue.length ; i++ )
         var item:UserQueueItem = queue[i] as UserQueueItem ;
         if ( item.status == UserQueueItem.STATUS_PENDING )
         pendingArray.addItem({label:item.descriptor.displayName,descriptor:item.descriptor});
    Here is the relevant MXML:
    <s:VGroup>
         <s:List id="knockingList" width="110" height="100"/>              
    </s:VGroup>
    I'm not getting any errors, but the list is not populating.
    I have seen several examples where the arrayCollection is declared and populated in MXML:
            <mx:ArrayCollection id="myAC">
                <!-- Use an fx:Array tag to associate an id with the array. -->
                <fx:Array id="myArray">
                    <fx:Object label="MI" data="Lansing"/>
                    <fx:Object label="MO" data="Jefferson City"/>
                    <fx:Object label="MA" data="Boston"/>
                    etc...
               </fx:Array>
            </mx:ArrayCollection>
    That may be fine for an example, but I think this is a rare situation.  Most of the time I would image that the arrayCollection would be created and populated on the fly in ActionScript!  How can I do this?
    Thanks in advance for any help or advice anyone can give!
    Matt

    In your post it seemed like you were trying to take care of many considerations at once: optimization, design, architecture.  I would suggest you get something up and running and then worry about everything else.
    If I use data binding, then I will probably have to declare the  arrayCollection as a global variable and then I'll have to write 100 or  so extra lines of code to addItem(), removeItem(), sort(), etc...  It  just seems like too much overhead.
    I believe you may have some misconceptions about databinding in general.  You won't have to make it a global variable and you certainly won't need an extra 100 lines of code.  If you did this forum would be a very , very quiet place.
    I don't want to use data binding because the original array is refreshed  often and there is one function called by an event that re-declares the  arrayCollection each time, populates it with the array, and then sets  it as the list's dataprovider.
    That is the beauty of the ArrayCollection, it can handle the updates to its source Array. I don't know if you need to redeclare the ArrayCollection, resetting the source to the new Array allows everyone involved to keep their references so you don't have to worry about any "spooky" stuff going on.

  • Add me to the list of Unhappy Razr M users after KitKat.

    Add me to the list of Unhappy Razr M users after the KitKat 'upgrade'
    I did a quick Google search and found that many people were having issues after upgrading to KitKat.
    If I disable my Bluetooth connection to my portable speaker I can connect to my router and the Internet.
    If I have Bluetooth on and connected to anything Bluetooth my WiFi shows that it's connected but it will not actually connect to the Internet.
    I have restarted the phone, restarted the router, unpaired everything and re-paired everything, re-discovered the WiFi and re-added my home Internet connection on the phone and router. The Internet connection problem is only there when I have the phone connected to something Bluetooth.
    Surely this can't be considered acceptable since I had a perfectly functioning phone on Thursday morning at 8am and by 9am I now have a phone that won't connect to WiFi and Bluetooth at the same time.
    Please fix this Verizon, this issue is not at my end!

    A knowledgeable gent recently reported it as "soon".
    <br />
    <br />What I suggest is folks in your situation- and others- is to import a small number of images, be it a few hundred per folder or so, or less, and see how LR works. Give it time to create previews, and then work with it.
    <br />
    <br />Best wishes,
    <br />
    <br />
    <span style="color: rgb(102, 0, 204);"></span>
    <font br="" /></font> color="#600000" size="2"&gt;~~ John McWilliams
    <br />
    <br />
    <br />
    <br />MacBookPro 2 Ghz Intel Core Duo, G-5 Dual 1.8; Canon DSLRs

  • My iphone 5 is stuck in recovery mode after battery change?

    my iphone 5 is stuck in recovery mode after battery change, I decided to change my faulty iphone 5 battery as i was out of warrenty, I managed to chance the battery with no problems (I Think), when i put the phone back together and tried to power on with the power button, nothing happened.!  i connected to itunes and it powered on, displaying the connect to itunes screen (recovery mode) all was going well, the phone was restoring, the image of the phone restoring and loading up was displayed on the screen, when it finished it restarted but to show the connect to itunes screen again, it is stuck in the recovery loop. i tried the steps with holding the power and home button etc, none worked.! now when i try to restore, it extracts software but then, ' the iphone could not be restored, an unknown error occured (3194)' comes up, any ideas out there???? and Happy Christmas to Everyone ,

    Hello Andyoneill9,
    It sounds like you are trying to restore your phone but keep getting an errror message 3194. I want to recommend the troubleshooting steps from this article named:
    Error 3194 or "This device isn't eligible for the requested build"
    http://support.apple.com/kb/ts4451
    Resolution
    Important: If you see one of these messages and need help updating or restoring your iOS device, Install the latest version of iTunes and try to update or restore again. After that, follow these steps if you need more help.
    Check your "hosts" file
    After you've updated iTunes to the latest version, you can check the hosts file to be sure your computer can contact the update server. Use the numbered steps below if you’re on a Mac.
    If you’re using a Windows computer, follow steps in this Microsoft support article, noting that resetting the hosts file will affect software services that rely on hosts file redirects. If you're using Windows on a business computer, consult your IT department to be sure applications will still work correctly after resetting the hosts file.
    In the Finder, choose Applications > Utilities.
    Open Terminal.
    Enter this command and then press Return:
    sudo nano /private/etc/hosts
    Enter the password you use to sign in to your computer and press Return. You won't see text appear in the Terminal window when you enter the password. Make sure you use a nonblank administrator password.
    Terminal will display the hosts file. Navigate using the arrow keys and look for an entry containing “gs.apple.com”.
    Add the # symbol and a space ("# ") to the beginning of the gs.apple.com entry.
    Press Control-O to save the file. Then, press Enter when prompted for the filename and Control-X to exit the editor.
    Restart your computer.
    Try to update or restore your iOS device again.
    This is the first troublehsooting step to try, so there are additional things to try if needed you need them.
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • My iPod is stuck in recovery mode after failing to update to iOS 8.whatever and now won't connect to iTunes to restore?

    So yeah, got an iPod touch for Christmas and it's pretty much bricked it and I haven't even had it for a full month yet. Not amused. I've tried everything from reinstalling everything Apple related on my laptop to external programs that promise to kick that thing out of recovery mode. If there's any other way to fix it I'd love to know considering it won't show up in iTunes at all so there's no way for me to restore it. This is my first Apple product and I haven't found a solution to a problem that I've found dates back as far as 2012 with no semblance of a way to fix it. Though I've seen ways to fix each problem separately it appears you need one thing to be working to fix the other which is an issue.
    Okay I'm just ranting to but help would be appreciated

    Try:                                               
    - iOS: Not responding or does not turn on           
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try another cable                     
    - Try on another computer                                                       
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
      Apple Retail Store - Genius Bar                              

Maybe you are looking for

  • Will the Apple 30 Inch display work with my MacBook pro? Confused!!

    Hi all, thinking of getting a used Apple 30 inch display to go with my MBP, but not sure if it will work at the correct resolution. Ive read you need a Duel Link DVI cable, but I have Thunderbolt not mini-display port. My MBP is early 2011 (think), s

  • Real and statistical posting

    Hi The master data of an overhead cost order are used to determine whether the order is real or statistical. can you please give me the example for the above sentence. and the path in controlling to find master data of an overhead cost order Thanks y

  • Can't write to desktop. I get Error Code -36.

    I recently had a battery problem where my black MacBook unexpected powered off in the middle what I was doing. After restart, I noticed right away that the desktop image was different, and I couldn't change it. A call to Apple got my battery replaced

  • Bad logic in NamedCache remove method?

    Why does the remove method in a NamedCache invoke the load method in the CacheStore in a distributed cache? Why force a database load call for the object if it doesn't exist in the cache only to immediately remove it? Edited by: 786216 on Aug 3, 2010

  • OpenNewWindow for Guest Users?

    In the PTConfig.xml, I set OpenNewWindow=1 which should launch Knowledge Directory documents into a new window. Restarted IIS after the modification, but this does not seem to work for Guest users (or any users that I've encountered). The comment ind