Alert Causes Tree to Invoke Item Editor

Attached is a very simplified version of my application which
is causing me a headache. I have a Tree to which I have added a
custom ContextMenu, with options to Delete and Rename items in the
Tree. When a user selects "Delete", I force them to confirm the
deletion by showing an Alert, with YES/NO options. However,
regardless of what option they choose, when they click one of the
buttons, the Tree suddenly shows one of the items in edit mode. I
can't understand why.
To reproduce:
1. Compile the attached code in a Flex Project and open the
application in a browser.
2. Open the "Parent" node in the Tree.
3. Select the "Child" node.
4. Right-click with your mouse in the Tree and select Delete.
5. Select either Yes or No.
Any help with preventing this behavior from happening would
be greatly appreciated.
Thank you.

I am pretty sure it is possible, but I have not done it. You
will probably need to cancel the default behavior of click event.
Tracy

Similar Messages

  • Double Click to Activate Tree Item Editor

    Hi, I have an mx:Tree that uses an MXML component as an item
    editor. I only want to activate the editor when the user double
    clicks on a tree's node. As a default, a single click will open the
    the item editor on the Tree list. Can anyone help me with
    this?

    I am pretty sure it is possible, but I have not done it. You
    will probably need to cancel the default behavior of click event.
    Tracy

  • Alert causes key focus loss

    _player.alert("") causes lingo key handlers to lose focus in
    a shockwave window. The alert comes up, hit OK, but then the
    program loses all keyboard input. The window is still in focus,
    though. I have to click inside the window to regain keyboard input.
    Any way around this? Thanks

    Hi Howard,
    the session state for Page Items are set on submit, that is why the lower part of your question works.
    I would create an ITEM (in my example P11_ERROR),
    and then create 2 dynamic actions:
    1.) Execute PL/SQL Code when Lose Focus on Item TCKT_ID
    Code:
    DECLARE
    lv_counter NUMBER;
    BEGIN
    SELECT count(*)
    INTO lv_counter
    FROM your_tckt_table
    WHERE tckid = :TCKT_ID;
    IF lv_counter > 0 THEN
       :P11_ERROR := 'ERROR';
    ELSE
       :P11_ERROR := NULL;
    END IF;
    END;
    Page_items to Submit: TCKT_ID
    Page Items to Return: P11_ID
    2.) a Dynamic Action wich Alerts the Error:
    on Change of Item P11_ERROR Condition: when ITEM IS NOT NULL
    Action: Alert "Error! ID does already exist!"
    Works for me :-)
    Tom

  • Spark datagrid item editor font see through

    I am using a default item editor on a spark datagrid.
    When the user attempts to edit the field the old value shows through.
    How do I get rid of this?
    I am using out of the box stuff? Is this a listed bug?
    Code is...
    <s:GridColumn dataField="Actual" headerText="Actual" width="75" editable="true">
                        <s:itemRenderer>
                            <fx:Component>
                                <s:DefaultGridItemRenderer textAlign="right"   background="true" backgroundColor="#FFFFFF" alpha="1.0" color="#000000" />
                            </fx:Component>
                        </s:itemRenderer>
        </s:GridColumn>
    Thanks
    Dan Pride

    Try <s:DefaultGridItemEditor if you are wanting to make it editable.
    here is an example of combobox, but it is similiar ....
    <s:itemEditor>
    <fx:Component>
    <s:ComboBoxGridItemEditor  >
    <s:dataProvider>
    <s:ArrayList>
    <fx:String>Edit</fx:String>
    <fx:String>Read</fx:String>
    </s:ArrayList>
    </s:dataProvider>
    </s:ComboBoxGridItemEditor>
    </fx:Component>
    </s:itemEditor>
    Don

  • How to invoke system editor by double click a file(windows)?

    how to invoke system editor by double click a file(windows)?
    Just like that, double click a file named a.doc, windows will open it by word.exe.

    I try that:
    exec("cmd /c start winword \"c:\dir\a b.doc\"");
    like this posting(http://forum.java.sun.com/thread.jspa?forumID=57&threadID=634576 ), and It is ok.
    But now I make a file list with different files, .pdf,.xls,.doc and so on, I wanna double click to open one with its default system editor.
    if no space:
    exec("cmd /c start " + file);
    will invoke the default editor to open it. if space, it can't do it.
    And now I rename all files, replace space to _.

  • Funny behavior with Item Editors

    I have a DataGrid which has a column with CheckBoxes (item
    editors), initially they are all unselected (suppose there are 5
    rows), if i click on the 5 of them quickly to change them to
    selected then something funny happens, some of them change to
    selected and then to unselected again. If i do this slowly, then it
    works fine. And the same happens if they are all selected and then
    i quickly click on the 5 of them to unselect them, some of them
    became selected again.
    It is as if Flex wasn't able to process the changes so fast,
    so by the time it is processing a CheckBox's change another one
    changes too and it reverts the first one to its previous state.
    Any idea why this happens? is it a bug, a mistake in my code,
    a normal behavior? what is it?

    Code:
    <mx:DataGrid id="dgcatalogo" width="100%" editable="true"
    height="236" dataProvider="{arrCCostoDisplay}" >
    <mx:columns>
    <mx:DataGridColumn dataField="ccoEstatus"
    headerText="{resource.getString('incluir')}" width="50"
    editable="true" rendererIsEditor="true"
    itemRenderer="renderer.CheckRenderer"
    editorDataField="result"/>
    <mx:DataGridColumn dataField="ccoDescripcion"
    headerText="{resource.getString('descripcion')}" editable="false"
    width="200"/>
    </mx2:columns>
    </mx:DataGrid>
    where CheckRender is:
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    horizontalAlign="center">
    <mx:Script>
    <![CDATA[
    // Define a property for returning the new value to the
    cell.
    public var result : Boolean = false;
    ]]>
    </mx:Script>
    <mx:Binding source="editor.selected" destination="result"
    />
    <mx:CheckBox id="editor"
    selected="{data.ccoEstatus}"/>
    </mx:VBox>
    That's the code, and like i said, it behaves funny when you
    select/unselect the checkboxes quickly

  • 10g Text Item Editor Not Working Correctly

    We're having problems with the Text Item Editor in both Add and Edit modes, but esp. in Edit mode. The problems range from getting a gray text screen (no toolbar); getting a white editor screen (no toolbar); tools that do not load (e.g. font color); and tools that do not work even though everything else seems fine. Sometimes refreshing the screen works but not always. Our users are getting very frustrated continually refreshing and logging out/in. It's become worse in the past few weeks such that it occurs in nearly every instance when editing a text item.
    Can anyone point us in a possilbe direction? We are using IE 6.0 and above as the browser.

    Kristin -
    This sounds like a bug that should be handled through Oracle Support.
    Regards,
    Candace

  • Intercept value passed to item editor?

    Hello! I'm trying to intercept the value that is taken from a DataGrid's GridColumn's itemRenderer and applied to the itemEditor, and vice-versa. I need to be able to format this value. However, my project is complex, so I may be focusing on the wrong idea in what I'm trying to accomplish. Please have a look and let me know if there's something else I could try.
    I have a Spark DataGrid component (with ID dg) that I am dynamically populating from XML. I create an ArrayCollection from some nodes, and a regular Array from sub-nodes that is added as a property of the ArrayCollection. That ArrayCollection is then used as the dataProvider for the DataGrid.
    Here is an example segment of a typical XML node and it's sub-nodes:
        <item name="physOrderTable" text="" type="notes">
            <cols>
                <col id="0" text="Day/Time" />
                <col id="1" text="Order Type" />
                <col id="2" text="Physician's Orders" />
                <col id="3" text="Physician's Signature" />
            </cols>
            <rows>
                <row id="r0" name="" text="">
                    <col id="0"><![CDATA[Tues 15:24]]></col>
                    <col id="1"><![CDATA[General]]></col>
                    <col id="2"><![CDATA[BMP, CBC, Cardiac Enzymes, ABG, EKG STAT, NS@ 125 mL/hr, Blood Sugar AC & HS, 02 via NC to keep oxygen saturation above 97%]]></col>
                    <col id="3"><![CDATA[J. Nelms]]></col>
                </row>
            </rows>
        </item>
    Here is the code that reads through the XML and utilizes it:
        protected function sparkDG_creationCompleteHandler(event:FlexEvent):void
            trace("grid created");
            var colsList:XMLList = xml.cols.col;
            var rowsList:XMLList = xml.rows.row;
            colAL = new ArrayList();
            for(var i:Number = 0; i < colsList.length(); i++)
                var gc:GridColumn = new GridColumn();
                gc.maxWidth = 500;
                gc.resizable = false;
                gc.headerText = String(colsList[i].@text);
                gc.dataField = "col";
                gc.labelFunction = labelFunc;
                colAL.addItem(gc);
            for each(var row:XML in XML(value).rows.children())
                var rowArr:Array = new Array();
                for each(var col:XML in row.children())
                    if(col == "")
                        rowArr[Number(col.@id)] = "_";
                    }else{
                        rowArr[Number(col.@id)] = col;
                colAC.addItem({
                    rowID: row.@id,
                    rowName: row.@name,
                    rowText: row.@text,
                    col: rowArr
            dg.columns = colAL;
            dg.dataProvider = colAC;
    So I build the header for the DataGrid first, telling it to use the "col" dataField, which corresponds to the .col property of the colAC ArrayCollection. That .col property is the array of values for each cell of that row.
    Now this part of code is important, as it displays the relevant index of the .col array by using the .columnIndex:
        private function labelFunc(item:Object, column:GridColumn):String
            var displayText:String;
            var valArr:Array = new Array();
            if(column.dataField == "col")
                valArr = item[column.dataField];
                displayText = String(valArr[column.columnIndex]);
            return displayText;
    This is the only method I've been able to use to achieve the desired result. This all works fine, if all I want to do is merely display information. But I need to be able to edit the values in each cell, and apply this back to the dataProvider, as I need to rebuild XML with the updated values later.
    I have tried everything I can possibly think of to be able to do this. I built my own itemRenderer, then my own itemEditor, then scrapped them because it felt like I was re-inventing the wheel. But was I? I tried reading through the code for the DataGrid, GridColumn, and related classes, but I couldn't find any reference to the itemEditor beyond it being an IFactory. I have no idea where or how it tells that IFactory to be a text input or whatever it is.
    Here is my issue:
    When I turn on the DataGrid's editing, and double-click a cell, it takes the entire array of the col dataField for that column's cell, converts that array to a string, and displays the entire string in the edit text box. If I cancel the editing, or save the editing, it sets the string to the .col property. Then the labelFunction tries reading that string as an array, and it crashes. I was able to get the typeof the col dataField and converting it to an array if it's a string, but I shouldn't have to.
    I need to have it display just the value of the cell for that particular row and column when the instance of the itemEditor is created. When that value is changed, I need it to apply back to that column's index in the .col array of the dataProvider. So, similarly to how it displays information in the labelFunction, I need to edit the information and send it back.
    I've seen lots of custom itemEditors and itemRenderers for GridColumns, but these are hard-coded in the MXML. My grid is almost entirely dynamically created, so that's unfortunately not an option for me, as I won't even know how many columns or rows there will be when the DataGrid is created. I tried using rendererIsEditor, but that only seems to be on the MXML instantiation of the GridColumn, as there's only rendererIsEditable in the ActionScript, and it doesn't seem to work (or I don't know how to use it as intended).
    If anyone knows of a way to accomplish this, even just something else I should look at, I would greatly appreciate it!

    Thanks for your response! I had seen that function before, but as there was nothing in it, I couldn't figure out if it was useful. Going back, I looked at the comments. I also found this website about item editors: The Item Editing Process
    So, according to that, the data variable will contain the .col property of the dataProvider, right? I can trace data out as an object, but when trying to reference it as an array, it doesn't work.
    Also according to that website, data is applied to value before prepare() is called, at which point data becomes a string. Doing this test in prepare(), I find that value is already a string. I can do a split() on the string or whatever to set the value how I need it (I think), but my life would be a lot easier if I could reference the cell's data directly and set value based on that.
    <?xml version="1.0" encoding="utf-8"?>
    <s:GridItemEditor xmlns:fx="http://ns.adobe.com/mxml/2009"
                      xmlns:s="library://ns.adobe.com/flex/spark"
                      xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Script>
            <![CDATA[
                private var valueArr:Array;
                override public function prepare():void
                    trace("prepare called");
                    valueArr = new Array(value);
                    trace("\tdata["+0+"]: "+data[0]);
                    trace("\tdata["+columnIndex+"]: "+data[columnIndex]);
                    trace("\tvalue: "+value);
                    trace("\tvalueArr.length: "+valueArr.length);
                    value = String(valueArr[columnIndex]);
                override public function discard():void
                    trace("discard called");
                    valueArr[columnIndex] = value;
                    value = valueArr;
            ]]>
        </fx:Script>
    </s:GridItemEditor>
    And once that's accomplished, I believe what I did for discard() there should work correctly. What do you think?

  • Flex Using Tree Control in item renderer(Url Navigate)?

    HI All.,
                Iam Using flex 3 using tree control in item renderer to click haschildren label to be navigate url is possible ?.
    Any one help me.....
    Thanks in Advance......

    You can do this by writing the item's tag to the ActiveItemTag property, the column number you're intersted in to the ActiveColNum property and reading the Cell String Property.
    Mike....
    PS: If anybody at NI is listening, that interface really, really, REALLY needs to get rewritten...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    tree_properties.vi ‏9 KB

  • Invoke Webform Editor from JSPX UCM 11G

    Hi
    We have created a website using JDeveloper SiteStudio Edition 11G. There is a specific requirement to allow users to create custom forms from our web-site itself without logging in to the UCM Admin application and invoking webform editor.
    Is it possible to embed/call webform editor from JSPX directly.
    I noticed that when we click ContentMgt -->Webform Editor in oracle UCM application the url changes to --
    http://10.210.4.27:16200/cs/idcplg?IdcService=GET_DOC_PAGE&Action=GetTemplatePage&Page=FE_EDITOR
    I noticed that in this URL a call goes to GET_DOC_PAGE service.
    Can i replicate this behavior from my JSPX page (I mean make a call to some service and allow users to use WebFormEditor from my website). Please help I am quite confused.
    Thanks,
    Aakash

    Try using My oracle support note (the documentation should have this I believe too):
         Setting up the Admin Applets to run in stand alone mode on an 11g install (Doc ID 1265076.1)

  • DataGrid item editor in Flash CS3

    Does anyone have a good example of how to define custom item
    editors and custom cell renderers for the DataGrid in Flash CS3
    with Action Script 3.0?
    I'm trying to put things like combo boxes and numeric
    steppers in certain columns.

    Found an example.
    Click
    Here

  • HT1933 I bought something trough Itunes ans need a refund cause was the wrong item.

    I bought something trough Itunes ans need a refund cause was the wrong item.

    Contact the support staff for the stores, all one group, at: http://www.apple.com/emea/support/itunes/contact.html

  • BUG: Toggling interface on/off causes missing menu toolbar items and icons in Photoshop CS4!

    When I toggle the interface on/off it causes missing menu toolbar items and icons until I exit and restart Photoshop CS4.  I know this can happen if problem filters are installed.  So I have the latest Alien Skin filters installed and have already followed their AutoLayer2.8li file updates to resolve Windows Photoshop CS4 issues.  I also have Luxology imageSynth 2.0 filter installed.  So since all my filters are updated to CS4 compatible versions, I shouldn't have this problem but yet it occurs.  Any way to fix this?
    I'm using WinXP SP2, 4 GB RAM, GeForce GTX 260 Core 216 with newest 185.85 driver.  I have 3D canvas rotation turned on.

    ghost zero wrote:
    toggle the interface on/off it
    What do you mean by this? Are you using standard methods (i.e. the buttons on the top-right of the screen) in Windows Explorer to minimize and then restore? or what?
    Are you on XP 64-bit? or 32-bit?
    Did you install driver version 185.85 before or after the problem started?
    Do you just one GTX 260, or are you doing SLI at all?
    Do you have more one monitor? If so, and you limit yourself to just one, do you still have the problem?
    Also, just to make sure that this problem wasn't somehow caused by your plug-ins (because I have seen onOne plug-ins, at least, that install several DLL files and you can't disable DLLs by renaming with ~ like with plug-in files), or caused by a messed up install of PS, go ahead and repair the PS install. Follow the "Restore the default set of Photoshop CS4 plug-ins" section in this document, except that after Step 3 (or Step 5, if you're on 64-bit Windows) get rid of the entire "Adobe Photoshop CS4" folder from Program Files (and the one in Program Files (x86) if you're on 64-bit Windows):
    http://go.adobe.com/kb/ts_kb409112_en-us

  • Powershell using start-process OR Invoke-Item to access directory are getting warning permissions popup.

    I am new in PS so please forgive me for any idiocy I speak. I have a File Server in Windows 2012 R2, a couple days ago I added one domain user to local administrator group in this File Server. For any folder that I try to access I am getting the Warning message
    saying: "You don't currently have permissions to access this folder. Click Continue to permanently get access to this folder." When I click "Continue" the Windows grants to me the rights permissions, ok it is perfect but I have to do it
    for any folder in my file server.
    So, let's to I tried so far..
    I know I can use Set-acl to set the permissions to the user but for this likely I will need change almost the whole permissions structure.
    Actually I am trying use Invoke-Item and Start-Process to simulate the folder access and ofcourse the Warning permissions popup came up. What I am thinking about and can't realize is make each time the Warning permissions popup come up by using Invoke-Item
    or Start-Process whatever the Powershell automaticaly clicks on the "Continue" button.
    Any one can help me with, please?

    Hi Michel,
    you can circumvent the ACL System by enabling Backup and Restore privileges (when running locally). There's a
    great Module for that.
    However, for a more pragmatic approach, shouldn't access-permissions be handled using Domain Groups? If you want a File Server Admin, why not create a single group named "Data Administrators", set it to full control for all directories (that'll
    take changing the permissions once, which will probably take some time) and add that user to this group.
    That way, if you later want to have another user administrate the folder structure, all you need to do is change group membership. Furthermore it avoids having to add local administrative privileges for a function that doesn't really require them (least
    privilege best practice).
    Cheers,
    Fred
    There's no place like 127.0.0.1

  • OER - Asset  Editor Tree View unfiled items

    I am using OER 11.1.1.5.0 and in the Asset Editor Tree View I can see general categories of 'Unsubmitted', Submitted' and 'Registered' with various sub-categoreis under each main category. I am puzzled why an Asset which appears in the Tree View initially as as Submitted / Pending Review / DAC Interface / CB Interface should, once all the submission, acceptance and registration stages have been completed, appear under Registered / Unfiled / CB Interface whilst another Asset should appear initially as Submitted / Pending Review / DAC Product / DAC Product - Portal appears, having undergone the same registration processes, as Registered / DAC Product / DAC Product - Portal.
    I cannot find any information in the documentation regarding 'Unfiled' assets nor can I see any difference between the Asset Types for these two assets which might cause this to happen.
    Can anybody shed any light on this issue ?
    Thanks
    Chris

    It works for me after I did a small tweak by as mine is a demo install.
    Idea - is to make an security exception for the OER url in Java control console
    Steps to do that :
    1.Go to the control panel and uninstall the 64 bit version of Java
    Open Programs and Features and select the 64 bit version of Java and select Uninstall.
    2.Open up the Java Control Panel
    Found as an option in the standard windows control panel
    3.Check the version by clicking on the About Tab
    If this is not what you expected you can go to java.com and download the latest version.
    4.Click on the Security Tab in the Java Control Panel
    5.Click on the Edit Site List button in the lower RH corner of the control panel
    6.Add your URL to be allowed
    Enter the full path that you use to access this such as https://myequallogics.com or the IP address if that is how you access it (as in http://192.168.0.100 - Https is recommended by Oracle.) Once complete hit OK. You should now see the exception on the security page.
    7.Close out of the control panel.
    8.You can now acess your site through the browser window.
    Thanks to Java error: Missing required Permissions manifest attribute in main jar - Spiceworks for letting me know this.
    regards,
    Sridhar

Maybe you are looking for

  • How can I transfer a podcast to memory stick?

    I have several Podcasts in iTunes that I would like to keep ( I need to move them I am very short of memory) They are too 'big' to burn to disc, so I would like to put them onto a memory stick/flash drive. I have tried drag and drop, but that does no

  • Battery Doesn't Hold Charge: Less than Three Months Old!!

    I got an iPod touch on June 28. Everything was working fine up until yesterday. I was transferring a bunch of new music onto it on Friday night, around 7–8 PM. By the end of it, around 8–9 PM the iPod was fully charged. I unplugged it and went to sle

  • Problem Installing a Plug-In

    I am trying to install a plug-in, but keep getting the following error message: "Sorry; there is a space in your home directory path.  MacOS makes it difficult to do that by accident.  Contact your administrator for information on how to fix this." I

  • Data pump export restricted

    Hi all, Is export using datapump by default consistent? If I do a export on production database for production dev refresh, do I need to start the production database in restricted? It is not required right? Please let me know.

  • I have done all the fixes and it still won't work

    I have deleted qttask, quicktime.nsi, itunes.msi. I have followed all the direction at retrovirus.com. I have downloaded and run the Windows Install Cleanup utility. I still can't remove Quicktime using "Add/Remove Programs," and i can't install iTun