Reuse the itemEditor with parent DataGrid control logic

I have a component that allows users to change one of the properties of the individual items in a DataGrid with an itemEditor which stretches from my custom PopMenuButton component. The component also allows users to change several elements using this same component.

Right now, I have dual logic - both in the itemEditor class and the parent DataGrid component - to manage the user's selection and update the data object. The logic of the itemEditor is updating the item goes to the Publisher, and the logic in the parent DataGrid component loops through the selectedItems array of the DataGrid and updates the items one at a time.

I want to make it unnecessary for duplication of code here. Is there an easy way to have the bubble itemEditor event to one parent to access functions in this component to perform its updates?

Thank you.

Too bad... I'm on leave today. I forgot how it is easy to use just the itemEndEvent...

Tags: Flex

Similar Questions

  • Problem of event reminder of the registry with Linkam ActiveX controls

    Hello

    I have a problem in configuration reference VI to interface with Linkam ActiveX control with an event callback function to register. I created a VI strictly typed with re-entrant execution, with all the correct connectors, as shown in the picture below, but LabView complains of a broken wire. The only difference between the input and the output seems to be that the result stands as an asynchronous function, and the entrance wants (synchronous) normal function? I can't find any option to make my VI reference become synchronous. Does anyone have any suggestions as to what to try next? Thank you very much

    Davide

    Hello

    Make a right-click on the terminal 'Ref VI' choose 'create the callback VI '.

    Do not try to build it yourself, it never works. :-)

  • MineCraft will not be displayed on the child with parental control account

    Hello!

    I saw this thread answered for someone else... can you help me?  Same thing applies, security for the family, is on the side parents but not to the connection of the child. Cruelly by a nine year old :)

    For that to work, I installed Minecraft while logged in as an administrator. Then, I changed the permissions on the shortcut to add the "child" Windows user account I created. I gave that Win User all permissions account and then restarted. After that I connected to the account of the 'child' and launched the shortcut on the desktop and it worked.

  • How to set the speed with XPS motion control

    Hi guys,.

    I put a LabView VI to State micrometer two control via a movement XPS controller. I need States to query with different speeds, but I can't find a way to do it, any ideas?

    G.

    P.S. sorry for my English mistakes is not my native language

    Hi I finally found my out of this issue using the PosSGamaParameterSet block.

  • Other control problem faced in the tab with flashing property control...

    Ay one can help me?

    I send you a vi, in that I face a problem with the tab control. So I put a list on page1 tab control multi-column box and apply the flashing on her property that at run time the flashing can visible on all pages of the tab control. It shouldn't be like that. The flashing can only visible on page 1. Is this a bug in Labview? or is this only? How solv it?

    Thank you for your support

    Marlow

  • View 5 error 18 cannot join the domain with parent vm win7

    I have installed our software required, the agent installed, the parent has added to the domain and when I go to create the pool I finally get the 18 error saying that it was impossible to join the computer to the domain. If I look in the current directory on our server, 2003 sbs, it shows that the machine is there, but when I try to connect to the console under vsphere, I get the error that says "the security on the server database has no infographic account for this workstation trust relationship." I see a lot of fixes for this but those who tend to treat images of windows xp.

    Also, I advanced and tried to create the registry entry for the "NeutralizeNT4Emulator" who did not work as well as manually configure the default gateway and the dns server.

    Should I disable the firewall on our virtual machines of parent service? I tried without success either, but I thought I'd ask.

    Any help would be appreciated. Thank you!

    This may be due to the incompatible version of composer, see Composer 2.6 is not compatible with the view Agent 5.0. Refer to this http://kb.vmware.com/kb/2006879 KB

  • How to specify SQL custom querying the db with option to delete logical adapter

    Hi all

    I write a composite SOA application using JDeveloper SOA Suite 11.1.1.4 connection to a SQL Server database with the help of a Secretary of the poll the DB adapter with the logical delete option to send data to a BPEL process.

    I have requirements that go beyond what is supported in the UI JDeveloper for polling of the adaptor DB options, namely:
    * update several columns to mark each line read, and
    * specify different SQL to remove operation logic based on if bpel surveyed data processing was successful or not.
    A complicating factor is that the query contains two tables. Here is my complete use case:

    (1) mark will select data from two tables: for example 'headers' and 'details' simplified for this example:
    Table: headers
    HID - primary key
    name - plate
    status - "raw", "transformed" or "error".
    processedDate - null when the data is loaded, the DateTime current when the treatment of the line
    Table: Details
    HID - foreign key pointing header.hid
    attr - name attribute of data
    value - value of the attribute data

    2) there are a many relationship: 1 from detail lines to the header through the hidden columns. The adapter db SELECT the voting clerk must return results of an outer join consisting of line a header and the associated detail rows where header.status = 'no' and header.hid = details.hid. (This is supported by the UI Jdeveloper)

    (3) the survey data will be sent to be processed by a bpel process:
    (3.1) if the bpel treatment is successful, the logical delete operation (UPDATE) must set header.status = 'transformed' and header.processedDate = 'getdate() '.
    (3.2) if bpel treatment fails (for example hits a data error during the processing of the selected data) the logical delete operation (UPDATE) must be set to 'impossible' = header.status, header.processedDate = 'getdate()' and header.errorMsg = '{of the text returned by bpel}.

    Several parts of the #3 are not supported by the UI JDeveloper: update several columns to mark the addressed line, using getdate() to fill a value of one of these updates to the column, update of different operations based on the results of the BPEL, processing of the data (success or error) and using data from BPEL treating it as a value of these updates of column (error message).

    I found examples that describe the specification that is customized by using querying SQL Delete option to create a template and then modify the toplink files to specify custom select and update SQL to implement a logical deletion. (for example, http://dlimiter.wordpress.com/2009/11/05/advanced-logic-in-oracle-bpel-polling-database-adapter/ and http://myexperienceswithsoa.blogspot.com/2010/06/db-adapter-polling-tricks.html). But none of them match what I have in my project, in the first case because maybe because I use a newer version of JDeveloper and the second I think because in my case, two tables are involved.

    Any suggestion would be appreciated. Thank you, John

    Hi John,.

    You raised a good script.
    First of all, let me say that the purpose of the DB of the election operation, is to have an option to start the process of a DB table/view and not update several fields in a table (or have other complex manipulations on the table).
    Thus, when choose update a field in a record, after reading it, you "say" the engine not to question this record again. Of course, I guess you can find a solution/workaround for it, but I don't think that this is the way...

    The question now is what to do?
    You can have another DB adapter where you can update the data after you have completed the process. In this case, after reading the data (on the query operation) - updated the "transformed" for example = header.status and after processing the selected data update the rest fields.

    Hope it make sense for you.

    Arik

  • DateFormatter and a DataGrid control

    Confuised a bit here. I have a DateFormatter function I want to work with a datagrid control. I can use this function in other areas of the model without any problem. I can't do it to format the data in the datagrid control. So far, that's what I have:

    the action script that calls the trainer.
    public void formatDate(date:Date):String
    {
    if(date!=)
    {
    Return KDLDateFormat.format (date);
    } else {}
    return ";
    }
    }

    <! - my format string - >
    < mx:DateFormatter id = "KDLDateFormat" formatString = "DD-MMM-YYYY" / >

    <!-the grid data itself. ->
    < mx:DataGrid id = "dependantGrid" width = "460" left = "10" top = "10" height = "155" dataProvider = "{myDepData_Obj}" >

    <!-the column I want formatted->
    < mx:DataGridColumn dataField = "Dep_DOB" headerText = "Date of birth" labelFunction = "{format ()}" / > "


    This is the error message I get when I try to run the data grid. By the way... If I take the labelfunction I get the correct datetimestamp value in the datagrid.

    ArgumentError: Error #1063: incompatibility of County of Argument on components::DepInfo / format (). 1 EXPECTED, got 2.
    at mx.controls.dataGridClasses::DataGridColumn/itemToLabel()
    at mx.controls::DataGrid/::setupRendererFromData()
    at mx.controls::DataGrid/mx.controls:DataGrid::commitProperties()
    at mx.core::UIComponent/validateProperties()
    at mx.managers::LayoutManager/::validateProperties()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    function / http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/::callLaterDispatcher2()
    at mx.core::UIComponent/::callLaterDispatcher()

    I tried to use it instead of the column and it worked up to a point. I want the date in the format DD-MMM-YYYY and it gave me the DD/MM/YYYY, but it worked.

    < mx:DataGridColumn dataField = "Dep_DOB" headerText = "DOB1" >
    < mx:itemRenderer >
    < mx:Component >
    < mx:Text text = "{(data. Dep_DOB. GetMonth () + 1) + "/" + (data. Dep_DOB. GETDATE()) + ' / ' + data. Dep_DOB.getFullY ear()} "/ >"
    < / mx:Component >
    < / mx:itemRenderer >
    < / mx:DataGridColumn >


    Thanks in advance for the help!

    KomputerMan ~ |  :-)

    The problem is in the function labelfunction of dataGridColumn is referring, the signature is wrong. Function of a labelFunction should have this signature:

    labelFunction(item:Object,_column:DataGridColumn):String

    If yours will be like this:
    public void formatDate(item:Object,_column:DataGridColumn):String
    {
    {if(date!=)}
    Return KDLDateFormat.format (order of the day. Dep_DOB);
    }
    else {}
    return ";
    }
    }

    You must also remove the data from your DataGridColumn definition area, you cannot have a labelFunction and a dataField, cause both determine the content of the column, you must use only one. Finally if you use the labelFunction you do not use {} or (), just the name of the function. It should be like this:

    This should work, tell me if something goes wrong

  • When I subtract two numbers DBL and try to compare the result with another DBL, it fails

    I found a curious problem with subtraction and compare numbers DBL in LabVIEW (8.6). Here's how it works:

    1. subtract two numbers DBL such that the result is not incorporated. (Say, 3.2 - 3.1)

    2. compare the result with a constant/control that is on the result of the subtraction (in the example, 0.1)

    3 see the output of the comparison.

    If the result of the subtraction is an integer, the Boolean result is (as expected). If the result is not complete, the comparison fails.

    (Now, if I simply compare two floating point numbers, it works, so the issue is not with the node comparison itself, but with the data that is entered to the node). Can someone understand why this happens? It's unexpected, it's a pretty serious bug.

    It is provided with all programming languages. Numbers do not have an exact binary floating-point representation. This has been discussed endlessly. Never use the equal function with floats. You can use the function in the range and force.

  • Flex4 DataGrid - mouse outside the data keeps scrolling DataGrid grid

    Hello

    the DataGrid control has the following behavior: when you click on the DataGrid control and move the mouse upwards on top of it and hold the mouse on top of it, the guard UPWARDS scrolling DataGrid control. When you move the mouse under the bottom of the data grid, the DataGrid scroll guard DROP.

    I am optimize my app for touch devices, and when the user moves his finger on the DataGrid from the bottom to the top, I left the DataGrid scroll in the same direction, which is in DECLINE. If the user now moves his finger beyond the upper limit of the data grid, the DataGrid changes the direction of scrolling.

    How can I avoid scrolling the DataGrid when the mouse moves outside, or how change the direction of scrolling the DataGrid?

    Thanks in advance

    LLD

    You can have to subclass DataGrid and override the dragScroll method.

  • assignment of several providers of data to a datagrid control

    Hello

    Is there any way by which I can assign several data providers in a DataGrid? I need get the different 2 arraycollections data and assign the data to a datagrid control for a user to compare.

    -Isabelle

    The datagrid control cannot have as a dataprovider. You can combine collections into a single table before linking to your DataGrid.

  • Adding an extra person for the weekly report of MS with parental control

    I currently get activity weekly email report of MS for my two children with parental control.

    My wife does not have an account of MS, but I would like to add to this distribution of weekly e-mail.  How can I make for my wife also receives the report of MS weekly activity with parental controls?
    Thank you

    Hi TomMinasian,

    Thanks for posting back. What I understand about your last post, it seems that you received the error message when a Microsoft account is created for your wife, is this correct? Have you encountered the error message after clicking on I agree in this link?

    We look forward to your response.

    Kind regards.

  • Problems with parental control - clicking 'Allow' has no effect and the apps / programs that are permitted by the user are not allowed.

    Hello.

    I use Windows 7.

    User account from my son has parental control of Microsoft Watch.  It cannot open an iTunes account.  When he tries to do, a widow who opens shows the administrator permission is required.  We ask in person, I type my password.  Nothing happens.  iTunes will not open and if it clicks again, the same window again.

    Another problem is that iTunes is blocked at all.  Why is this?  In my account of parental control of Microsoft, I have the option 'ALLOW' next to iTunes.

    NOTE: this problem, namely, nothing happens when I enter my password to give permission to my son for a program or a Web site, it happens a LOT.  It occurs not only with iTunes.

    Hi Robert,.

    I understand the frustration when things don't work as expected.

    Solving the problems of family security
    We will run the resolution of the problems of parental control and check the status.

    How to update the family safety filter?

    http://Windows.Microsoft.com/en-us/Windows-Live/Family-Safety-filter-FAQ

    Family Safety: frequently asked Questions

    https://answers.Microsoft.com/en-us/Windows/wiki/windows_other-security/family-safety-frequently-asked-questions/5672f7b2-e3c0-498a-9a6c-c9cab39f68e5

    Back to us for any issues related to Windows in the future. We will be happy to help you.

  • How can I set up Gmail access with parental controls?

    I want my son to be able to access his account Gmail school and Google allow to complete the tasks for the school, but I can't seem to make it work with Parental controls.  Help, please!  (Preferably using Firefox.)

    Snow Leopard work well with GMAIL or Google might lead, if the computer in your signature is able to run the latest operating systems.  Before upgrading, read this tip

    Upgrading to 10.7 and don't forget Rosetta!

    Review the settings POP or IMAP for GMAIL if it's available as those who will work with the Apple Snow Leopard mail application.

  • Redirected page 'Protect your kids with parental controls' when you try to sign in to Family Safety

    I'm able to access my security account for the family to manage the accounts of my children.  I keep getting redirected to the page of 'your kids with parental controls Protection. "  What happened, and what should I do about it?

    I've updated the customer on my son's computer.  After that, I was able to log on the website of the parental control without problem.

Maybe you are looking for

  • Yahoo account question

    Yes, I understand these are the Apple support forums, but I don't know where else to ask this question and I thought some of you would have the answer to this question. I deleted my Yahoo account last week, but I've heard that the 500 million Yahoo a

  • Waiting for SP1 to come through Windows Vista update?

    Hello: I have been waiting for SP1 to make an appearance through Windows Update and am still waiting. I checked the knowledge base and checked all problem drivers to see if I had any of the components. I don't have one of them, nor I have hidden upda

  • DEFY: Cannot make calls...

    Hello I just bought Defy and I think that it is large, has many interesting features, but it does not call... About 10 minutes after it's turned on, I can't make all the calls (from widgets, dialer, contacts...). As soon as I press the dial button, a

  • I can't find windows Explorer where it is

    I can't find windows Explorer where is it?

  • Why my image mode is always set to grayscale?

    Everytime I open a new file in photoshop... my image is always set to grascale by default and if I try to import a colorful picture it gets changed to black and white.Can someone help me with this please?