How to put 2 dataProviders for 1 dataGrid?

<mx:DataGrid x="750" y="365" id="dataGrid2"  dataProvider="{deleteCouponResult.lastResult}" width="240">
          <mx:columns>
               <mx:DataGridColumn dataField="msg" headerText="message"/>
          </mx:columns>
     </mx:DataGrid>

Above the data grid is used as a comments box where I fill it with messages from the operation of the database as

'Properly inserted element', "Cannot insert the point", "Successful removal"... etc.

At this time I can only assign a callResponder to my dataGrid, but I also want these:

          <s:CallResponder id="getAllCouponsResult"/>
          <s:CallResponder id="setCouponResult"/>
          <s:CallResponder id="insertCouponResult" />

My first thought wat to play with the binding via actionscript but not worked code below in the second Add button clicked

protected function addButton_clickHandler(event:MouseEvent):void
{
     dataGrid2.dataProvider = insertCouponResult.lastResult;
     insertCouponResult.token = couponsController.insertCouponAction(coupon);
     refresh();
}

Thank you very much

Using Flash Builder 4beta2 with flex 4

Create a variable private in your component:

[Bindable]

private var gridData: ArrayCollection collection; or any type dataprovider that you use

Then set this property in the result of each CallResponder event handler, for example:

<>
ID = "getAllCouponsResult".
result = "gridData = ArrayCollection (event.result) collection" / > "

Then bind your grid dataProvider to this private variable:

dataProvider = "{gridData}.

Tags: Flex

Similar Questions

  • How to put a ringtone for Acer Liquid Z110?

    I can't put a ringtone for my Acer Liquid z110, how can I do?

    Hello!

    You can use apps like Ringtone Toolbox or Top Riongtone Downloader, both available for download from the Google play, customize the ringtone on the Z110.  Simply copy the ringtone file in the SD card and select one of these applications to help to set as the default ringtone.

    You can do this as often as you want and build your own ringtone collection. You can change the default ringtone in the settings > Audio profiles > General. Tap on general and select phone ringing. You should see the list of all available ringtones here and choose the one you want.

    I hope that helps!

  • How to put PSE imported for recovery?

    I put a logo-eps imported to overprint. I do a calendar in 2 different languages and all the text and logo (eps) changes in black only. The logo is placed on a transparent background and the background must be the same, printed logo must be superimposed. But in the Panel, the overprint fill option is grayed out. With the logo in multiply also does not work...

    Setting the mode of fusion multiply should work. How do you determine that it isn't? But the best way would be to define overprints in the logos files themselves and save them as files HAVE rather EPS.

  • How to put a heading for a group of controls without line below the title text?

    Hello

    Is it possible to write a heading for a group of controls and indicators made by "chiseled online", such as the chiseled line remain invisible under the title text and remain visible everywhere else? For example, the titles 'Printer', 'Range', 'Copies' and 'Zoom' in a Microsoft Word form in the PDF file attached. Note that there is no line under the title text and there is no text box surrounding the text of the title. I want to have that kind of title for the Group of controls and indicators in a GUI of my LabVIEW application.

    Any help will be appreciated.

    Thank you.

    Javed

    Any label you use as long as you COLOR IT CORECTLY. Use the background with transparent border color... just set the boxes of color as shown.

  • How to put a password for sharing password protected?

    I would like to set up a username and password for my shared drives so I can connect to them via a cable ethernet to my other computer in my network and my SIN. for now, I have the password protected sharing off so hard drives are public access on my network which is not very safe. I don't want to set up a password to start windows because when I start my computer I want to boot directly into my office without a password.

    The user name and password for password sharing must correspond to a Windows user account.
    You can set a password for your user account and always start directly on the desktop. Thus operate netplwiz.  Highlight (click on) the account you want to log by default and uncheck "users must enter a user name and password to use this computer."

  • How to put single quotes for attributes by default?

    Hello

    any idea? I can't find the settings of anywhere. I am using homesite 5.5.

    Thank you.

    It is not really an option for this.

    Here's some info I have on it, class in development applications you will notice:
    http://www.wilk4.com/asp4hs/priorityreqs.htm#SingleQuote

  • How to put a custom for an Information window text

    Hello

    I saw an attribute named cutomLegendCallBack part of < dvt:mapPointTheme.

    Someone can tell me the purpose of this attribute and how we use it.

    Here is my requirement.

    IM using point theme in my generation of card & want to display personalized information when the user clicks on some POINTS.

    Generally, when clicking on a POINT an information window will be opened and displayed with some data that has been listed in the wizard.

    In my case, im able to view personalized information about this information window. But inside this information window, the portion of the header is clear in reason to use this custom data view.

    In fact, it used to be something like this... a blue chiputa header will be there in the header part & below that a box whitel is where information is displayed.

    Because of my implementation, I see this white box & I want the blue chiputa header as well.

    If someone does not have this, please me ping back.

    Kind regards
    Kristelle

    To view a title in your infoWindow, you must do the following:

    public String processEBBInfoWindowData (MapInfoCallbackObject callbackObj)
    {
    Chain of rowId = callbackObj.getRowId ();
    String themeId = callbackObj.getThemeId ();

    String outputHTML ="TestYou selected "+ rowId +"of"+ themeId +"";
    Return outputHTML;
    }

    This will give you an infowindow with the word, 'Test' on it.

  • How can I put a shortcut for a private network virtual desktop with a MacBook Air?

    I can't find ANYTHING telling me how to put these types of shortcuts on the desktop for OS X 10.11.4. It is obvious in the Windows.

    Select the item then hold down the command and Option keys while dragging the icon of its location on the desktop, then release the keys. Otherwise, select the element and CTRL - or RIGHT click and select Create an Alias in the context menu. This method creates the alias in the same directory as the actual file. You then can he hang out everywhere where you want it or copy and paste. You can then remove the alias of the original file.

    Here are some useful links: Switch 101-on Windows, I used to..., Switch 101-Windows vs. Mac navigation, Switch 101 - migrate your system to your Mac or Windows files, Apple - Support - switch 101, Apple - Support - Mac 101.

  • HP Pavilion slimline: need for instructions on how to put wifi address and password.

    Need instructions on how to put wifi address and password to secure the wifi connection.  Please notify.

    HIH @G_ee,

    Welcome to the Forums of HP's Support.   I see you want to learn how to connect your HP Slimline computer to your secure wireless network.   I am convinced that I will be able to help you find a solution, and I ask only that pay you it forward. When solve us the problem, I would mark you kindly post as accept as Solution so that others have the same or similar problem can find what worked for you.

    I have included a document to Add a device or computer to a network of Microsoft for you.  It will guide you through the steps to add the computer to your network.

    Please let me know the results.

  • How can I put an icon for quick start on the desktop, to format dvd - rw discs

    Hi all. I am a novice with a pc and would appreciate an answer to my problem, when I put a dvd on to back - up, I usually get the message on sceen saying that the dvd will be formatted, how I put that system on my desktop at the top of the page, as an icon of quick start, I have a number of discs dvd - rw with stuff on them that I want to remove in order to use the same. hope you can help.

    with friendly, J, Sheppard.

    Hello

    Built into Windows

    Erase a CD or DVD
    http://Windows.Microsoft.com/en-us/Windows-Vista/erase-a-CD-or-DVD

    Erase a CD or DVD
    http://Windows.Microsoft.com/en-us/Windows7/erase-a-CD-or-DVD

    The Navigation pane is in the main panel of Start - computer

    Excellent forum for questions of CD/DVD
    http://www.myce.com/

    =======================================

    How to erase a CD-RW/DVD-RW. Free, fast, easy.
    http://www.YouTube.com/watch?v=NEiNxXgEJbY

    BurnAware Free is a CD, DVD, Blu - ray disc burning software. It is ideal for users with basic
    burning needs as backup, creating data, audio, MP3 music, DVD-video and disc to disc burning
    images. Free, easy to install, it allows you to save your files to disc quickly and offer clean,
    flexible interface for you help complete your burning tasks much faster (free)
    http://www.BurnAware.com/

    Active @ DVD Eraser is a free easy to use to erase the DVD - RW, DVD + RW or CD - RW media
    to clear the old data of the disk. There are two methods of deletion: (Freeware)
    http://www.NTFS.com/dvd_eraser.htm Active @ ISO Burner 2.1 is a simple to use dialog box style to burn a CD/DVD/Blue Ray ISO software
    images are compatible with the ISO 9660 standard. Automated burning is also supported. (Freeware)
    http://www.NTFS.com/iso_burner_free.htm

    ImgBurn supports a wide range of file formats image - including BIN, CUE, DI, DVD, GI, IMG,.
    ISO, MDS, NRG and PDI. It can burn the Audio CD of any type of supported via DirectShow file.
    ACM - including AAC, APE, FLAC, M4A, MP3, MP4, MPC, OGG, PCM, WAV, WMA and WV. You
    can use it to create DVD video discs (from a VIDEO_TS folder), HD DVD video discs (from a HVDVD_TS folder) and Blu - ray video discs (from a BDAV / BDMV folder) with ease. It supports
    Names of Unicode folder/file, so you should not experience problems if you use an international
    character set. ImgBurn takes over all the Windows of the OS - Windows 95, 98, Me, NT4, 2000, XP,.
    2003, Vista, 2008 and 7 (including all the 64-bit versions). If you use the wine, it must also run
    under Linux and other Unix-based x 86. It is a very flexible application with several advanced
    characteristics that are often lacking in other tools, especially when it comes to burning DVDs video
    discs. It supports all recent orders without the need of updates (including booktype / bitsetting /)
    Advanced settings on many of the most important - i.e. BenQ, LiteOn, LG, NEC, Plextor, Samsung,.
    Sony). (Free version)
    http://www.ImgBurn.com/index.php?Act=guides

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • I made a new music video for a song, and the music is not in time with the film, how I put in time?

    I made a new music video for a song, and the music is not in time with the film, how I put in time?
    Oh and I'm using WIndows Movie Maker. One.

    Please repost in Windows Live Solution Center.
    Forum on Windows Live Movie maker:
    http://windowslivehelp.com/forums.aspx?ProductID=5

  • I was put on hold for 2 hours at Creative Cloud account team: How can I actually talk to someone?

    I was put on hold for 2 hours at Creative Cloud account team: How can I actually talk to someone?

    It's crazy, and I'm starting to believe that no one will ever actually answer the phone. How can I communicate with the agents of the team account? All transfers me to the people 'Team account' and I end up waiting forever. First time I tried, I hung up after 44 minutes. This time, on that I maintain for 1 hour and 53 minutes. Seriously, it can't be this is bad, I'm in an infinite loop?

    Waited for 3 hours and 33 Minutes and then was disconnected. Go figure. Fortunately, someone from the Department reminded today and took me in charge.

  • How to put a website in muse of Adobe for editing

    How to put a website in muse of Adobe for editing?

    Adobe Muse permits .muse file for editing. You cannot import a created page previously said in Dreamweaver in Muse.

  • How to put the Image on health insurance for the elderly

    I wanted to know how to put pictures on health insurance for Senior related to my Web site.

    I am facing really problem loading page on my site due to a large image. I have really big senior insurance ( PII removed ) related 336 X 228 images to the right of my homepage. But the image is very large (size 445ko) this effect really on my problem loading page for google search engine.

    can someone tell me how to fix page load without removing my related image on my insurance for seniors Web site.

    Please let me know it will be appreciated.

    It is a picture of 11KO and does not cause a matter of charge time for you.

    Slow page loading can be caused by images that are hotlinked from another server that is slow.

    Consider removing it from your page. (it is useless)

  • " http://www.Copyscape.com/Web-Copyright-protection/" >http://banners.copyscape.com/images/cs-gy-3d-234x16.gif "ALT ="protected by Copyright Protection Copyscape Web"TITLE ="protected by Copyscape plagiarism Checker - don't copy this page." "WIDTH ="234"HEIGHT ="16"BORDER ="0">".

  • Flex 3: how to put a mark cross on this Canvas poster (for cancellations)

    Hello
    According to the click of the button, I display a component of research, made of canvas.
    public function openSearchCOmp (): void
    {
    var a: comps. SearchComp = new SearchComp();
    a.Height = 233;
    a.width = 450;
    a.x = 314;
    a.y = 106;
    a.verticalScrollPolicy = "off";
    a.horizontalScrollPolicy = "off";
    Application.application.addChild (a);

    }

    Now, please tell me, how to put a mark on this shown Cross Canvas (for cancellations) Please suggest.

    What is flase?

    The icon cancel must be in the component that you want to remove from the display list.

    Create a public function in the parent of the component to remove and cancel the icon click handler, try this:

    parentDocument.removeItem (this);

    If this post answers your question or assistance, please mark it as such. Thank you!

    http://www.chikaradev.com
    Adobe Flex development and Support Services

Maybe you are looking for