Update charts and datagrids based on selection

I have trying to find documentation and examples explaining how I can choose something in a combobox control and do fill a series of datagrids and charts.

GUIDELINES:

Has. using a table XML of all municipalities in our region populate a combobox.  Then have the user select the municipality they are interested.

B. take a picture of census which is in XML format and using HTTPServices read it in Flex and then based on what the user selected municipality fill a datagrid and a variety of graphs with data pertaining to the muni.

I know that it is done because I see it all the time and took a class last week where it has been shown.  Unfortunately, it was the last day of the class and time was running out, so we received a brief overview of this.

I would be very appriciate anyone who can tell me the samples and documentation either online or in books.  And I should mention that the terminology is always a problem.  I'm trying to do a custom event or what?

The code below all the works.  What I want to say that I am filling successfully control combobox and datagrid with the appropriate data.  I'm not able to get the two communicate with each other.  In other words the datagrid is showing the whole table and ignoring the combobox.

<? XML version = "1.0" encoding = "utf-8"? >
"" < mx:Application xmlns:mx = "http://www.adobe.com/2006/mxml"
Layout = "vertical".
creationComplete = "initApp ()" >

< mx:Script >
<! [CDATA]
Mx.rpc.events import. *;
Mx.controls import. *;
Mx.charts import. *;
Import mx.collections. *;

[Bindable]
private var acMuni:ArrayCollection = new ArrayCollection collection;
[Bindable]
private var acCity:ArrayCollection = new ArrayCollection collection;

private function initApp (): void {}
muniHS.send ();
cityHS.send ();
}

private void eHandler(e:ResultEvent):void {}
acMuni = e.result.GetAllMUNIS.MUNIS;
}

private void fHandler(e:FaultEvent):void {}
var faultInfo:String = "error code:"+ e.fault.faultCode + "\n\n"; "
"faultInfo +=" error string: "+ e.fault.faultString+"\n\n;
mx.controls.Alert.show (faultInfo, "lack of information");

var eventInfo:String = "event target:"+ e.target+"\n\n"; "
' type of event eventInfo += ":"+ e.type+"\n\n;
mx.controls.Alert.show (eventInfo, "Event information");
}

private void eCityHandler(e:ResultEvent):void {}
this.acCity = e.result.GetCITIES.CITIES;
}
[]] >
< / mx:Script >

< mx:HTTPService id = "muniHS".
URL = "" Data / GetAllMunis.Xml ""
result = "eHandler (Event)" "
Fault = "fHandler (Event)" "
showBusyCursor = "true" / >

< mx:HTTPService id = "cityHS".
URL = "" Data / CityNames.Xml ""
resultFormat ="object"
result = "eCityHandler (Event)" "
Fault = "fHandler (Event)" "
showBusyCursor = "true" / >

< mx:Panel width = "100%" height = "50%".
paddingBottom = "10".
paddingLeft = "10".
paddingRight = "10".
paddingTop = "10" title = "DataGrid" >

< mx:ComboBox id = "muniCB".
dataProvider = "{acCity}".
message = "SΘlectionner town".
labelField = 'city' / >

< mx:DataGrid id = "dg".
Width = '100% '.
Height = "100%".
dataProvider = "{acMuni}" >
< mx:columns >
< mx:DataGridColumn headerText = "municipality" dataField = "City" / >
< mx:DataGridColumn dataField = "year" / >
< mx:DataGridColumn headerText = "month" dataField = "month_no" / >
< mx:DataGridColumn headerText = "labor force" dataField = "laborforce" / >
< mx:DataGridColumn dataField = "employee" / >
< mx:DataGridColumn dataField = "unemployed" / >
< mx:DataGridColumn headerText = "unemployment rate" dataField = "unemp_rate" / >
< mx:DataGridColumn headerText = "tract" dataField = "geogkey" / >
< mx:DataGridColumn headerText = "tract extended" dataField = "geogkeyx" / >
< / mx:columns >
< / mx:DataGrid >
< / mx:Panel >
< / mx:Application >

Thanks for any help you can provide

Richard Krell

If the position meets your querstion or help, please mark it as such.

First, use XMLListCollection to the data for the ConboBox and the xlcMuni result with Manager (instead of acMuni).

Here is a simplified version of your app with the answer. It uses e4x for the filtering syntax.

http://livedocs.Adobe.com/Flex/3/HTML/Help.HTML?content=13_Working_with_XML_03.html

-CityNames.xml-



  Chicago
  New York City
  Boston

-GetAllMunis.xml-



 
    Chicago
    1866
 

 
    New York City
    1872
 

 
    Boston
    1756
 

-MainApp.mxml-


http://www.Adobe.com/2006/mxml '.
creationComplete = "muniHS.send ();cityHS.send();" » >
 
    Import mx.events.ListEvent;
Mx.rpc.events import. *;
Mx.controls import. *;
Mx.charts import. *;
Import mx.collections. *;
 
[Bindable] private var xlcMuni:XMLListCollection = new XMLListCollection;
[Bindable] private var xlcCity:XMLListCollection = new XMLListCollection;
[Bindable] private var xlcDG:XMLListCollection = new XMLListCollection;
 
private void eHandler(e:ResultEvent):void {}
this.xlcMuni = new XMLListCollection (... with e.result);
}
 
private void eCityHandler(e:ResultEvent):void {}
this.xlcCity = new XMLListCollection (e.result.city);
}
     
private void populateDG(evt:ListEvent):void {}
var temp: XMLList = xlcMuni.copy ();
xlcDG = new XMLListCollection (temp. () city is ComboBox (evt.currentTarget) .selectedItem));
}
]]>
 

 
useProxy = URL "" Data / GetAllMunis.xml ' = 'false' "
result = "eHandler (Event)" / > "
 
resultFormat = "e4x" result = "eCityHandler (event)" / > "
 

   
prompt = labelField 'Select a common' = 'city '.
change = "populateDG (Event)" / > "
   
dataProvider = "{xlcDG}" >
     
       
       
     

   
 

Tags: Adobe LiveCycle

Similar Questions

  • Update date and time only on request

    I have a text box that is constantly updated date and time based on java level document:

    var f = this.getField ("DATETIME");

    f.Value = util.printd ("mm/dd/yyyy hh: mm tt", new Date());

    How can I get this text box to be updated only once, unless I ask a new update - as with a button.  Please keep answer VERY base.  Thank you very much!

    Change the level doc this script:

    var f = this.getField ("DATETIME");

    If (f.valueAsString == "") updateDateField();

    function updateDateField() {}

    var f = this.getField ("DATETIME");

    f.Value = util.printd ("mm/dd/yyyy hh: mm tt", new Date());

    }

    Then add the following JS as a MouseUp your button action:

    updateDateField();

  • Instantis 9.0 - be able to reschedule and update basic even to change basic Dates and Efforts to not selected activities

    In change system profile/role permissions for the project it, there is an option to allow a role to change the planned Dates and Efforts for activities.

    If that is not selected, a user cannot change the benchmark for Dates of the activity fields.

    However, it seems that the same user can perform that function reschedule and pick update planned and Baseline.  This changes the basic dates, even if the option is not selected.

    This work is designed?

    It seems that you should open an SR for this one.  I know that you can restrict who can update the base line, but I thought that this has also limited recalculation and updated in this way.

  • Since the update of my pc based system with 10 windows and install the last Prime Minister CC when I drag a clip on the timeline audio does not come with it. I can hear audio playback in the preview window of small file so the audio is there, but it's not

    Since the update of my pc based system with 10 windows and install the last Prime Minister CC when I drag a clip on the timeline audio does not come with it. I can hear audio playback in the preview window of small file so the audio is there, but it does not appear or play on the timeline. I can drag an audio file of Ms on the timeline, but I need audio from my original file to synchronize my audio file recorded independently - used to be no problem... any ideas what I can not edit now?

    Hi Neil,

    Drag / drop may not work if you don't have any enabl; e source patch or did not target the track for the same thing.

    https://helpx.Adobe.com/Premiere-Pro/using/source-patching-track-targetting.html

    Vinay

  • Windows Vista keeps wanting to install the same update again and again. This is the Internet Explorer 8 for Windows Vista for x 64-based systems update.

    This update keeps coming back even if it has been installed at least 15 times. Does anyone know why it keeps doing what/how stop?

    This problem may occur because of corrupted content of the Software Distribution folder.

    Rename the software file Distribution try to access the Windows Update site again.

    How to rename the software D folder in Vista - distribution agent version

    1. stop the Windows Update service (make sure that you are logged on as administrator)

    Start button | Control Panel | System and Maintenance | Administration tools
    Double-click on Services
    (Provide the administrator password or a confirmation if prompted to do so.)
    Right-click the Windows Update service and click on stop.

    2. Click Start, type %windir%\System32 in the search box and press ENTER.

    Find and rename the folder C:\Windows\SoftwareDistribution.

    3. start the Windows Update service

    Start button | Control Panel | System and Maintenance | Administration tools
    Double-click on Services
    (Provide the administrator password or a confirmation if prompted to do so.)
    Right-click the Windows Update service and click Start.

    This procedure will erase your history on the Windows Update Site. Not important.

    Reboot - without having to restart, the new folder could not be created successfully.

    TaurArian [MVP] 2005-2010 - Update Services

  • Update of the table based on another

    Hello

    I'm trying to update a date column in a table based on another table. There is a unique ID in each table that identifies and connects each person:
    update patient_bu a set a.entry_date = (select b.entry_date from CLIENT_MED_DT b where a.id = b.id)
    This is the error:

    ORA-01427: einreihig subquery returns multiple rows


    The problem (I think) is that the select statement back several dates for records people. There are some people / records that have multiple entry dates, but I'm only interested in the most recent date.

    How can I update this table with only the most recent date?

    Thanks for any help,
    Matt

    Oh well, I forgot the UPDATE clause:

    SQL> create table patient_bu
      2  (id number
      3  ,entry_date date);
    
    Table created.
    
    SQL> create table client_met_dt
      2  (id number
      3  ,entry_date date);
    
    Table created.
    
    SQL> merge into patient_bu a
      2  using (select id
      3               ,max(entry_date) max_date
      4         from   client_met_dt
      5         group  by id
      6        ) b
      7  on    (a.id = b.id)
      8  when  matched then update
      9        set a.entry_date = b.max_date;
    
    0 rows merged.
    
  • Att/yahoo updated my email, which suggests to select Firefox as the browser, but how to get back the taskbar?

    Att/yahoo updated my email, which suggests to select Firefox as the browser, but how to get back the taskbar?

    Hi, you are missing the taskbar Windows, which usually appears at the bottom of the screen? Firefox normally does not block the taskbar if you do not use the mode full-screen. To check if you are using full-screen, you can use the F11 key that toggles between full screen and normal mode.

    Or if you meant the menu bar (File, Edit, View), you have two options:

    (1) display on request: press the ALT key to press F10 to display bar temporarily

    (2) time full display: you can use one of the following methods to view the list of the toolbar, and then select menu bar it:

    Success?

  • I downloaded the new version, but firefox says always that I must update - why, and if there's a step 'install' miss me why are there no instructions on how to do?

    Why Firefox didn't insist that I still use version 3. It doesn't matter when I downloaded faithfully new versions when he tells me to do so-recently version 8. whatever (today). If "downloading" is not enough and there is also a stage of 'install', I still find anywhere in Firefox that tells me how to do. I restarted my computer, but this does not seem to make a difference. He always tells me that I use an outdated version that soon is not supported.

    There are 2 ways to update 1) using the built-in update function and 2) download an install version complete.

    Let's do #2 for now. Go to http://www.mozilla.org/en-US/firefox/new/ and download the exe on your desktop. Closing Firefox. Run the installation program that you downloaded to your desktop. Open Firefox. If you always said you run the 3.6.24 version, your user agent can be spoiled. If this is the case do the following:

    Enter about: config in the URL bar and press ENTER.

    If you see the warning, you can confirm that you want to access this page.

    Filter = general.useragent.

    The preferences that are bold, one line at a time, right-click and select Reset.

    Then restart Firefox

  • My wife tried to update firefox and since then it will not open. When I click it a window appears and says that I have to finish the upgrade a previous version by restarting. When I reboot nothing changes.

    My wife tried to update firefox and since then it will not open. When I click it a window appears and says that I have to finish the upgrade a previous version by restarting. When I reboot nothing changes.

    If the files have already been downloaded, then delete the files in the folder updates\0 and updates.

    You can also remove active - update.xml, or even updates.xml (stores the history of update).

    C:\Users\<user>\AppData\Local\Mozilla\Firefox\Mozilla Firefox\updates
    (%LOCALAPPDATA%\Mozilla\Firefox\Mozilla Firefox)
    

    Do a cleaning (re) install and delete the folder of the program Firefox (C:\Program Files\Mozilla Firefox\).

    Download a new copy of Firefox and save the file to the desktop.

    Uninstall your current version of Firefox if possible.

    • Do NOT remove the data of a personal nature when you uninstall the current version or you lose your bookmarks and other data in the profile folder.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    • It is important to remove the Firefox program folder to delete all the files and make sure that there is no problem with the files that were the remains after uninstallation.

    Your bookmarks and other profile data stored in the Firefox profile folder and will not be affected by a relocation, but make sure that you do not select delete data of a personal nature if you uninstall Firefox.

  • acquisition display continuous data on 1 chart and display medium on another

    Hello

    I created the VI to display the last 100 values on a chart and on average every ten values on another graph. So when 100 values on the first graph, the values of the ten (where each is the average of 10) are displayed on another. The code I created for this purpose is attached.

    I don't think I realized that I started to because:

    The X axis is time in seconds and no number for each value, unless there is a value acquired every second.

    If I pass the highlight performance, average Bulletin Board expect top 10 values are displayed on the waveform table. It should then display a single average value. He should do it for every 10 iterations. However, it is not the case.

    Could someone if please change the code to me and advise on how to change x axis of time to any other variable where necessary.
    Thank you in advance for help

    Hello

    In code, you do mobile window.  However, from what you describe, you want a fixed window without overlap.  I changed the following code, see the attachment.

    1. I change the x-axis of time at the point.

    2. I put the 2nd table in a box structure.  The 2nd table will update only when the loop iternation is divisible by 10.  Let me know does this work for you.

    Yik

  • Last night my PC Windows 7 got two updates automatic and afterwords when I try to log into windows.

    He tells me that the password is not valid - but I know that it is. I tried to use System Restore (using the disc of windows 7) and it said it was successful, but it still does not accept my password. I tried to restore back to December 6, however the password is still not accepted.

    Hi Joel_Schneider,

    Welcome!

    You can try the steps below, remove the updates by using the DISM tool and follow the steps below:

    1. start under System Recovery Options , and then select command prompt.

    2 from the command prompt, run the following command: Dism/Online/Get-Packages

    3. This will produce a list of updates installed and packets.  They will look like this:

    4. package identity: WUClient-SelfUpdate-Core-opLevel ~ 31bf3856ad364e35 ~ x 86 ~ ~ 7.4.7600.226

    5. status: installed

    6 output Type: Feature Pack

    7. install time: 25/09/2009 12:02 AM

    8. find the most recent and then make a note of the name of the package.

    9 then run: dism/Online/Remove - Package PackageName:WUClient-SelfUpdate-Core-TopLevel ~ 31bf3856ad364e35 ~ x 86 ~ ~ 7.4.7600.226(name of update from previous step)

    10. restart your PC.

    11. you want to start with the most recent and remove them one at a time to find the update problem.

    For more information about DISM, go to the link below:

    Maintenance packages from the operating system command line options: http://technet.microsoft.com/en-us/library/dd744311 (WS.10) .aspx

    Swathi B - Microsoft technical support.
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Cannot access the Windows Update site and install updates

    Original title: 2 problems 1 when he goes to win the update, I get, can not display the page. 2 if I'm going in a different direction and I get search updates, scanning (encountered a problem can not display the page) comes up and on the opportunity of the page crashes.

    I did fix it, I disabled all firewall internet security and and also listed win update to a trusted site.

    Hi trski,

    I recommend you to check for possible malware program.

    1 restart the computer using safe mode with networking. If you have a Type of Internet connection wireless, have a wired internet connection. To restart in Mode safe mode with networking:
    a. press the restart.
    (b) at the moment you press the restart button, keep tapping F8 until that Advanced Boot Options appears.
    c. Select Mode safe mode with networking
    2. open the Web browser to explore and go to http://safety.live.com.
    3 scan the OneCare Safety Scanner full Service.
    4. take note of the items that are detected, but cannot be deleted, as appropriate. Get back to me with the names of the infections that cannot be removed, if necessary.
    5. after removing the infection (if any), start in Normal Mode by restarting just the normal computer like you do it.

    Run Windows Update again, and get back to us with your findings.

    If this post can help solve your problem, please click "Propose as answer" If you find it useful, mark it as useful by clicking the 'Vote as useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • "An error in updating your system has occurred." Select 'OK' to undo the chnages that have been made.

    I install "WindowsXP-KB926139-v2 - x 86 - ENU"(power shell)
    at the end I have "an error in updating your system has occurred." Select 'OK' to undo the chnages that have been made. Windows XP 32-bit. Please help solve this problem. Thanks in advance.

    imran_iiui,
    When you look at your installed updates it appears as failed?  If Yes, what is the error code that you found?  Have you looked at the actual article for KB926139 and links for information PowerShell?  You can look through those.
    Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Windows update errors and install failures - 800706BE

    OPS 32-bit Vista - while trying to install KB947821 - get error code 800706BE I also have norton 360 installed.  Since installing the update for internet explorer 8, with that I started to have some few issues updates, optional and important. Please advise, thank you very much!

    Comment: Probably Norton causing the problem.

    "Make sure your anti-virus is disabled and try the update again, if it still does not try to update in a clean boot environment:

    Test in a clean boot environment to see if the problem is related to other services or programs-

    How to troubleshoot a problem by performing a clean boot in Windows Vista
    http://support.Microsoft.com/kb/929135

    Click Start, type msconfig in the Search box and press ENTER. (If you are prompted for an administrator password or a confirmation, type the password, or click continue.)

    On the general tab, click Selective startup.

    Under Selective startup, clear the Load Startup items check box.

    Click the Services tab, select the hide all Microsoft Services check box, and then click disable all.

    Click OK.

    When you are prompted, click restart.

    Log on to your account.

    ---------------------------------------------------

    Click on start-> all programs-> Windows Update and reinstall the update/s.

    ---------------------------------------------------

    To restore your Normal startup:

    Click Start, type msconfig in the Search box and press ENTER. (If you are prompted for an administrator password or a confirmation, type the password, or click continue.)

    On the general tab, click Normal startup.

    When you are prompted, click restart. »

    TaurArian [MVP] 2005-2010 - Update Services

  • Windows installed the automatic windows update agent and I would appreciate help with the settings option in this newly installed agent update so no update never install or download unless I choose to do.

    Hello.

    I have windows vista 32 bit home edition.

    Today somehow automatically installed windows ' automatic update agent 747600226

    I always keep my settings to check the updates but let me choose whether to update or install.

    With this new "update automatic agent" which automatically installed on my system, I want to make sure I have place it properly so that it remains in the same way that I always have my settings but two settings (options), he checked, and are confusing for me to know what those checked settings will do.

    I would like to help you with these settings to make sure that the update is still as I want.

    Below chose correctly when the new program installed today.  That's how I still want the settings to be:

    Look for updates but let me choose whether to update or install

    Please let me know if I need to change all the options account required in addition to this update agent to ensure that only, I choose to update or install.

    There are four options and a box is in two and I don't know if I should remove the check marks or not.

    Here are the other four options that I need to know how to configure it so that only I have update/install.

    Once again, the download automatic microsoft today (update automatic agent 7.4.7600.226) without asking for my incentive preset automatic update options and that's what I'm trying to make sure is set correctly so that nothing installs or updates without asking me or let me do.

    Option 1: (this option is checked. If I leave it checked will be it install or warn me only?)

    Give me updates recommended in the way I receive important updates.

    Option 2: (this is not checked and am not worried about this one)

    Allow all users to use installed on this pc.

    Option 3:
    (this is checked and want to know if should uncheck; what I don't want is any what to auto install, but the wording of this option and option 1 are vague because of the "give me " so I don't know what it means or will do.)  If this box is left to it automatically update/install?)

    Give me updates for Microsoft products and looking for new optional microsoft software when I update windows

    Option #4 (this is not checked, and I am not concerned about this).

    See the notification me detailed when new microsoft software is available.

    Thank you very much for your help.

    Take care! :)

    Hello

    The Windows Update automatically updates the updater (himself), regardless of your settings.

    1. Yes it will alert you so you can update or install.

    2. check if you need more of yourself (other users) to be able to select and install the updates.

    3. it will let you know when they become available.

    4. just gives the news of additional details about some of the updates.

    Looks like you're ready for anything you like.

    Rob - bicycle - Mark Twain said it is good.

Maybe you are looking for