For each(var mc:MovieClip ..

I have a "for each" loop in my framescript but it seems find nothing because the code inside it isn't executed. I can see the movieclips in the debugger.
for each(var mc:MovieClip in MovieClip (this)){
    trace(mc.name)
Any ideas what is wrong here?
TIA

You can't use for each to iterate over movie clips. I believe it's for XML, objects and arrays only.
for(var i:int = 0; i < numChildren; i++){
    trace(getChildAt(i).name);

Similar Messages

  • [svn:fx-trunk] 11188: In 'for each (var in)' statements, defend against undefined entries in the AysncListView/ pendingResponders sparse array.

    Revision: 11188
    Author:   [email protected]
    Date:     2009-10-27 12:16:37 -0700 (Tue, 27 Oct 2009)
    Log Message:
    In 'for each (var in)' statements, defend against undefined entries in the AysncListView/pendingResponders sparse array.
    QE notes:
    Doc notes: none
    Bugs: sdk-23831, sdk-23832
    Reviewer: Alex
    Tests run:
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/sdk-23831
        http://bugs.adobe.com/jira/browse/sdk-23832
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/framework/src/mx/collections/AsyncListView.as

    You are welcome. I'm glad you got it back up.
    (1) You say you did the symbolic link. I will assume this is set correctly; it's very important that it is.
    (2) I don't know what you mean by "Been feeding the [email protected] for several weeks now, 700 emails each day at least." After the initial training period, SpamAssassin doesn't learn from mail it has already processed correctly. At this point, you only need to teach SpamAssassin when it is wrong. [email protected] should only be getting spam that is being passed as clean. Likewise, [email protected] should only be getting legitimate mail that is being flagged as junk. You are redirecting mail to both [email protected] and [email protected] ... right? SpamAssassin needs both.
    (3) Next, as I said before, you need to implement those "Frontline spam defense for Mac OS X Server." Once you have that done and issue "postfix reload" you can look at your SMTP log in Server Admin and watch as Postfix blocks one piece of junk mail after another. It's kind of cool.
    (4) Add some SARE rules:
    Visit http://www.rulesemporium.com/rules.htm and download the following rules:
    70sareadult.cf
    70saregenlsubj0.cf
    70sareheader0.cf
    70sarehtml0.cf
    70sareobfu0.cf
    70sareoem.cf
    70sarespoof.cf
    70sarestocks.cf
    70sareunsub.cf
    72sare_redirectpost
    Visit http://www.rulesemporium.com/other-rules.htm and download the following rules:
    backhair.cf
    bogus-virus-warnings.cf
    chickenpox.cf
    weeds.cf
    Copy these rules to /etc/mail/spamassassin/
    Then stop and restart mail services.
    There are other things you can do, and you'll find differing opinions about such things. In general, I think implementing the "Frontline spam defense for Mac OS X Server" and adding the SARE rules will help a lot. Good luck!

  • Triggering event from for-each

    Hi,
    I have a process that takes long to execute, I want to be
    able to send a progress notification to the user with the hope of
    not getting him bored or impatient, for some reason I can't achieve
    it and I don't know where to go for help, if you know how to solve
    this, any help will be greatly appreciated.
    I have some code like this:
    <code in mxml for my application>
    - component declared .. onXEvent="showProgress()"
    - script for showProgress calls refresh for ProgressBar
    Component
    </code in mxml for my application>
    <code for my component>
    for each (var myObject:xObject in MyCollectionOfMyObjects)
    // do some complex logic and calls methods for this item
    // creates and triggers event for progress notification
    </code for my component>
    I would expect to see my ProgressBar advancing as the process
    is completed, but for some reason the process seems to take control
    of the execution and no onProgressEvent is fired until the foreach
    finishes execution. It will run perfectly in the debugger (step by
    step) but it doesn't work at runtime.
    Is there any way I can achieve this in Flex?? Is there any
    event class I can use to solve this issue?
    maybe anyone has done this before or knows a link to more
    information on this subject?
    Thanks in advance
    William Vega
    MCSD / Beginner Flex Developer

    Flash functions execute within a frame. They finish before
    any UI rendering is done. You will have to use callLater , somehow,
    within your loop to give the UI a chance to draw.. There is a more
    detailed answer to this thread somewhere else.
    Tracy

  • For each  multyple components of the same type?

    Hy, thats it, im traying to figure out how to set text property of a bunch of componets that are all the same type in blank but i wont do it like this:
    [CODE]comboBox1.text = "";
    comboBox2.text = "";
    comboBox3.text = "";
    comboBox4.text = "";
    comboBox5.text = "";[/CODE]
    i want to do somthing like this:
    [CODE]for each(var combo as combobox) in this{
             combo.text = "";
    [/CODE]
    this piese of code is just a ficcion just for u to get the idea of what i want to do, obeusly it dont work this way.
    TNKSSSSSS....

    Try this:
    private function toggleStates():void{
        switch (currentState) {
             case null:
             case "state1":
                  currentState = "state2";
                  setAllBlank();
                  break;
             case "state2":
                  currentState = "state1";
                  break;
             default:
                  currentState = "state1";
                  break;
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • Construct dynamic menu through iteration of [for each]...

    Hi,
    I'm trying to create a menu based off a json file structure. Per the code below, I'm trying to build a menu structure that resembles the image below. In order to complete this piece of code, I'm trying to figure out what [mcMenuItem.y] and [mcLessonItem.y] would be. I know this is a seemingly simple problem, but I haven't done something such as this in some time and it's slipped my mind on how to construct the y value through iteration. Any help would be very appreciated,
    ~Chipleh
    for each (var module:Object in courseData[0].modules)
        var mcMenuItem:mcMenu=new mcMenu();                           
        menuHolder.addChild(mcMenuItem);                                       
        mcMenuItem.name = "mcMenuItem" + i;
        mcMenuItem.y = mcMenuItem.y + (mcMenuItem.height * i);
        for each (var moduleNumber:Object in module)
            j = 0;
            for each (var lessons:Object in moduleNumber)
                var mcLessonItem:mcMenu=new mcMenu();                           
                menuHolder.addChild(mcLessonItem);                                       
                mcLessonItem.x = mcMenuItem.x + 25;// + mcMenuItem.width;
                mcLessonItem.y = (?);
                mcLessonItem.name = "mcLessonMenuItem" + j;

    You'll need to have a yValue variable that you increment as you add each new menu item.  The increment value will be the height property of the item last planted.

  • I have problem loading all items from XML with for each

    Hi all,
    I'm low level as3 programmer and I need help whit this code:
    I have gallery XML file:
    <gallery>
        <item>
            <id>1</id>
            <strana>0</strana>
            <naslov>Lokacije</naslov>
            <aktuelno>1</aktuelno>
            <slika>1.jpg</slika>
        </item>
        <item>
            <id>2</id>
            <strana>2</strana>
            <naslov>Coaching</naslov>
            <aktuelno>1</aktuelno>
            <slika>2.jpg</slika>
        </item>
        <item>
            <id>3</id>
            <strana>0</strana>
            <naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
            <aktuelno>0</aktuelno>
            <slika>3.jpg</slika>
        </item>  
    </gallery>
    And:
    var loader: URLLoader = new URLLoader();
         loader.load(new URLRequest("gallery.xml");
    var xml = new XML(evt.target.data);
        for each(var item in xml..item) {
            centralniText.htmlText = item.slika;
    only shows  last item from XML file:
    3.jpg
    I want all. Please help.

    can adding count item in XML help somehow?
    <gallery>
        <item>
            <id>1</id>
            <strana>0</strana>
            <naslov>Lokacije</naslov>
            <aktuelno>1</aktuelno>
            <slika>1.jpg</slika>
        </item>
        <item>
            <id>2</id>
            <strana>2</strana>
            <naslov>Coaching</naslov>
            <aktuelno>1</aktuelno>
            <slika>2.jpg</slika>
        </item>
        <item>
            <id>3</id>
            <strana>0</strana>
            <naslov><![CDATA[O.Å . Bratstvo - panel]]></naslov>
            <aktuelno>0</aktuelno>
            <slika>3.jpg</slika>
        </item>   
        <last>3</last>
    </gallery>

  • XML for each in ..Loop statement

    Happy New Year,
    I just got XML to trace my desired results…Wow….
    But I need help in the.....
    Var c:Number = 0
    Var total:Number = 0
    for each (var property:XML in getPaid.revenue)
    c = c +1
    trace("total: " + c);
    The total is true or what I was looking for….
    Next….
    var c:Number = 0;
    for each (var property:XML in
    getPaid.revenue.(elements('revType') == 'Performance')
    c = c +1
    trace("total: " + c);
    This works too.
    BUT!
    for each (var property:XML in
    getPaid.revenue.(elements('revType') == 'Performance')
    c = c +1
    trace (c + " Song Title: " + getPaid.revenue.revTitle[c]
    + " Song Type: " + getPaid.revenue.revType[c]
    + " Total Amount: " + getPaid.revenue.revAmount[c]
    + " Account Name: " + getPaid.revenue.revName[c]);
    trace("total: " + c);
    Here the total is correct but if the total is 2 I get 3 items
    listed in the trace…even if I move the counter (c=c+1) below
    the trace statement…Help!
    Next…..
    for each (var property:XML in
    getPaid.revenue.(elements('revType') == 'Performance')
    && getPaid.revenue.(elements('revTitle') == 'Sister
    Love'))
    c = c +1
    trace("total: " + c);
    Here the second conditional is not seen…….
    Help…
    Next
    Var total:Number = 0
    for each (var property:XML in getPaid.revenue)
    c = c +1
    if (getPaid.revenue.(revTitle == "Sister Love"))
    d = d + 1;
    trace("total:" + c + getPaid.revenue.revTitle);
    trace("total: " + c);
    Here The if conditional isn’t seen…..
    What is the optimal way the read elements in the for each
    loop to test for two conditions.
    Sincerely,
    Anibus100
    PS Please show the answer in code…..
    XML Object
    var getPaid:XML = <revData>
    <revenue>
    <revName>KJAZZ</revName>
    <revTitle>Sister Love</revTitle>
    <revAmount>4,000.00</revAmount>
    <revDateIn>12/20/1990</revDateIn>
    <revDateOut>12/20/2009</revDateOut>
    <revType>Performance</revType>
    <revDescript>Radio Play</revDescript>
    </revenue>
    <revenue>
    <revName>J Records</revName>
    <revTitle>Sister Love</revTitle>
    <revAmount>85,000.00</revAmount>
    <revDateIn>1/4/1969</revDateIn>
    <revDateOut>1/4/1972</revDateOut>
    <revType>Mechanical</revType>
    <revDescript>CD License</revDescript>
    </revenue>
    <revenue>
    <revName>KDAY</revName>
    <revTitle>Get The Money</revTitle>
    <revAmount>3000.00</revAmount>
    <revDateIn>12/20/2003</revDateIn>
    <revDateOut>12/20/2003</revDateOut>
    <revType>Performance</revType>
    <revDescript>Radio Play</revDescript>
    </revenue>
    <revenue>
    <revName>AT&T</revName>
    <revTitle>Sister Love</revTitle>
    <revAmount>697.00</revAmount>
    <revDateIn>5/13/2006</revDateIn>
    <revDateOut>5/13/2008</revDateOut>
    <revType>New Media</revType>
    <revDescript>Cell Phone Ring Tone</revDescript>
    </revenue>
    <revenue>
    <revName>CBS TV</revName>
    <revTitle>Get The Money</revTitle>
    <revAmount>150,000.00</revAmount>
    <revDateIn>5/8/1988</revDateIn>
    <revDateOut>7/15/1988</revDateOut>
    <revType>Snychronzation</revType>
    <revDescript>TV China Beach</revDescript>
    </revenue>
    <revenue>
    <revName>Soul Train</revName>
    <revTitle>The Money</revTitle>
    <revAmount>7,000.00</revAmount>
    <revDateIn>2/25/2001</revDateIn>
    <revDateOut>2/25/2001</revDateOut>
    <revType>Synchronzation</revType>
    <revDescript>Radio Play</revDescript>
    </revenue>
    <revenue>
    <revName>Sheet Music Inc</revName>
    <revTitle>Sister Love</revTitle>
    <revAmount>450.00</revAmount>
    <revDateIn>12/20/1990</revDateIn>
    <revDateOut>12/20/1990</revDateOut>
    <revType>Performance</revType>
    <revDescript>Radio Play</revDescript>
    </revenue>
    <revenue>
    <revName>Town & Country </revName>
    <revTitle>Get The Money</revTitle>
    <revAmount>1,500.00</revAmount>
    <revDateIn>3/3/1998</revDateIn>
    <revDateOut>12/20/2009</revDateOut>
    <revType>New Media</revType>
    <revDescript>Web Site Intro. Music</revDescript>
    </revenue>
    <revenue>
    <revName>R & B Tee-Shirts, Inc</revName>
    <revTitle>Get The Money</revTitle>
    <revAmount>475.00</revAmount>
    <revDateIn>8/14/2006</revDateIn>
    <revDateOut>8/14/2008</revDateOut>
    <revType>Print</revType>
    <revDescript>Tee Shirt Logo</revDescript>
    </revenue>
    </revData>;

    Markus,
    No both suggestions did not work. I bet either you or someone
    close to you has the answer.
    for each (var property:XML in
    getPaid.revenue.(elements('revType') == 'Performance') &&
    getPaid.revenue.(elements('revTitle') == 'Sister Love'))
    I believe the error is in the && "and" ...Do have any
    tested solutions?
    error message # 1180
    I look forward to your rely.
    Sincerely,
    Anibus100

  • NativeWindow for each Monitor (Multiple Monitors playing same content)

    Requirement
    Display same media (movie/images) content (only once instance) in all attached Monitors
    Problem
    I am creating two NativeWindow class instances for each monitor (2 monitors available). After I have added the movie content to each NativeWindow, I use a third-party ScreenManager class to say "Send this Native Window to Screen 1 and so on". And then finally I call startMovie method on my movie class. Unfortunately, the movie only starts in the second NativeWindow the first NativeWindow displays a blank White screen.
    Code
    var nw : NativeWindow = new NativeWindow(new NativeWindowInitOptions());
    var nw2 : NativeWindow = new NativeWindow(new NativeWindowInitOptions());
    var movieClip : MovieClips = new MovieClips();
    nw.stage.addChild(movieClip);
    nw2.stage.addChild(movieClip);
    // ScreenManager is a third-party class available here: http://code.google.com/p/airscreenmanageras3
    ScreenManager.openWindowFullScreenOn(nw, 1); // 1 means Monitor 1
    ScreenManager.openWindowFullScreenOn(nw2, 2);
    movieClip.startMovie();
    Result of above Code
    nw is blank white screen. nw2 successfully plays the movie content.
    Second experiment
    If I create a brand new instance of movieClip let's say movieClip2 and then add it to nw2 (instead of adding the same movieClip instance added to nw). Both the Native Windows successfully plays movies. But again this is not what I want. I only want one instance of my movie and play it in all available monitors.
    Environment
    Adobe Air 2.5, ActionScript 3.0, Eclipse FDT plug-in

    That's just the way the display list operates. If you add a display object to a new container it is automatically removed from the old one.
    Possibly you could render each frame to a BitmapData object and use that object as the source for two different Bitmap objects.

  • How to create buttons for each slide in slideshow

    I currently have a slideshow working with prev and next buttons,
    but would like to add numbered buttons for each slide at bottom of images,
    with a static number for the active slide that has a colored circle around that number.
    I can create static number with colored circle in Photoshop and add that to a layer,
    but it's labor intensive to do that for all numbers.
    Is there a better way to create the highlighted numbers for active slide?
    For numbered buttons that link to non-active slides, I can create numbers in Photoshop and import images into Flash,
    then convert to symbols and assign actions for them,
    But that too is labor intensive to do for all the numbers.
    Is there a better way to create numbered buttons for non-active slides?
    I'd also like to have a hover function on the numbered buttons,
    that changes from plain image of number to number with colored circle like I want to use for active slide.
    How do I assign a hover function to button symbol, that will load another image or symbol?

    Try to think in terms of having reusable symbols.  Think it thru before you try it.
    Use a movieclip symbol instead of a button.  Have a dynamic textfield in that movieclip for the number, and set the textfield to not be selectable.  Have one frame of this movieclip where it displays as the highlighted (selected) one and have the movieclip go there where you are on that slide.
    Use the textfield for the number--assign it dynamically so that you don't have to import an image for it.  Use as many of these movieclips as you need to for all your buttons.
    Have functions that reset all the buttons at once so that when you move to a new slide, the previously selected one goes back to mormal... follow that with setting the newly selected one to be in its "selected" frame.

  • Aperture creating new version of image for each adjustment applied!

    To anyone out there who can sort this one out, I will be forever grateful!
    Here's the problem. I'll be jamming away in Aperture, adjusting photos like a madman. After adjusting a random number of photos (it usually varies between 5-30 photos or so after starting Aperture each time), the adjustments panel will no longer update when I click on a new image (i.e. it holds the info from the last image I adjusted and will continue to apply new adjustments to that last image even if another image is highlighted). If I switch to the metadata panel and then back to adjustments it will refresh itself and recognize the currently selected image (although I have to do this for EACH image I want to adjust once it starts acting up like this). The BIG problem is that even if I get the adjustments panel to recognize the selected image at this point, for EACH adjustment I apply it makes a new version of the image. For example, if I first change the contrast, it will make Version 2 of the image and select it (which is what it's supposed to do for the first adjustment, because I have "create new versions when making adjustments" checked in my preferences), but if I then make another adjustment like changing the saturation, it makes Version 3 of the image (from the master, so that only the saturation adjustment is applied and not the contrast adjustment). As you can imagine, this utterly destroys my once incredibly efficient Aperture workflow and makes it pretty much impossible to use Aperture for adjustments unless I turn off "create new versions when making adjustments" in the preferences, at which point it does seem to work again (although I've only tried it on a few images, so not 100% sure it will work properly even then). If I restart Aperture (or my computer), it will work normally again for a few pictures and then will start acting up again with the same problem.
    Originally I was running into this problem on my PowerBook G4, and so I figured it was just because Aperture didn't like my wussy G4 processor and was acting up when the load got too heavy (after all, the adjustments would work fine for up to 30 images or so). However I recently purchased a sexy iMac 24" 2.8 GHz and maxed out the RAM to 4GB, but I'm still getting the same darned problem with Aperture on my iMac. Yes, I'm using the same library of photos I was using on my PowerBook G4.
    This problem has been plaguing me for about 3 months now (everything else in Aperture works fine so I'm still using it to import and organize my photos, I just haven't been able to make adjustments on large groups of pictures for a while), and I've searched and searched these forums countless times to see if anyone has run into similar problems, but I've not seen a single mention of it. I've also tried EVERYTHING mentioned for similar problems (rebuilding library, vacuuming database, erasing com.apple.aperture.plist preference file, repairing permissions, reinstalling Aperture, making burnt offerings to Steve Jobs), and NOTHING is working. ARRGH!!
    For those who might have some words of wisdom to offer this delighted-***-miserably frustrated Aperture user, here are a few more details about my setup:
    I have a library of about 37,000 photos, the vast majority of them being RAW .CRW files from a Canon 10D. The 25GB library file is stored on my internal hard drive, and all photos are referenced from an external LaCie 500GB FireWire 400 hard drive. I have a LOT of export plug-ins installed in Aperture, but no image adjustment plugins. I have generated previews turned off for all projects. I've had the same problem on both my PowerBook G4 and new iMac 24" 2.8 GHz. One other thing worth mentioning is that instead of upgrading from 2.1 (which was already giving me this problem) to 2.1.2, I downloaded the full version of 2.1.2 and installed it. I noticed that my 2.1 Aperture.app file was less than 100MB, whereas the 2.1.2 Aperture.app file is over 300MB. Don't know if that's normal or not.
    The only other thing I can think of to try at this point is to load a new library into Aperture and import a large group of pictures and make adjustments to them to potentially see if my problem is being caused by Aperture or by the library. Will probably try that tomorrow.
    I would appreciate any advice or feedback anyone can offer about this nasty little problem, as it's giving me a serious hormonal imbalance.
    THANKS!

    Thanks for the reply RB, but my current workflow depends on me creating new versions when I make adjustments. I suppose as a temporary solution I will probably have to either turn this preference off or just be willing to constantly restart Aperture. At least I finally found another thread with the same problem, so finally I don't feel completely alone in the far reaches of the Aperture universe. For anyone who is interested, here is the link to that thread:
    http://discussions.apple.com/thread.jspa?messageID=8555067
    It appears this problem is closely related to the ubiquitous black viewer problem that seems to be plaguing far more users than my issue (although I've run into the black viewer problem a few times myself), as both problems force Aperture to output the following message to Console:
    Main Thread Exception in Aperture: * -NSCFArray objectAtIndex:: index (1) beyond bounds (1)
    It seems that both of these problems existed in Aperture 1 and 1.5 up until the 1.5.6 upgrade which seems to have fixed it, but then with Aperture 2 the problem seems to have returned. At least that's the gist of what I've been reading on a number of threads. Whatever the case, I hope Apple gets this sorted out in their next update!
    As it appears there is no proper answer to this problem at the moment, I'm gonna go ahead and mark this thread answered (and since you were kind enough to at least take the time to reply RB, you can be credited with the answer... thanks!).

  • Looping through an array to get the index for each measure in a combo box

    Hi folks,
    I am working on a web application that has two combo boxes, one for year (called yearcombo) and for measures (called myURL) for that selected year, and also two radiobuttons (in radioBtnGroup). I have two years and a bunch of measure for each year. I  have a map tool tip that when you mouse over the county you see a measure for that specific year. However I have a bunch of measures for each year and I want to be able to loop through the measures (which are in an array collection inside a combobox) so my "if" expression can find every selectedIndex and bring me the tool tip for that selected measure for that selected radio button. Right now I would have to create if statements for each measure (each selectedIndex inside the myURL combobox)and each radiobutton (inside the radioBtnGroup) instead of creating a if expression to get a map tip tool for each measure. I know I would have to create a loop to search for these indexes and enter that in the if expression and also change the graphic.attributes to reflect the right measure or index selected. Do you API for Flex wizards  can give me any tips on how to code this according to my code below ? Any  help is greatly appreciated! (the print scree is attached)
    Below is the code snippet:
    if (yearcombo.selectedItem.year == "2007" && myURL.selectedIndex == 0 && radioBtnGroup.selectedValue == 0)
    fLayer.definitionExpression = "DATA_YEAR_TXT like '2007'"
    var graphic:Graphic = Graphic(event.currentTarget);
    graphic.symbol = mouseOverSymbol;
    var htmlText:String = graphic.attributes.htmlText;
    var textArea:TextArea = new TextArea();
    try{
    textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForDirIndOut.toString()
    myMap.infoWindow.content=textArea
    myMap.infoWindow.label = graphic.attributes.NAME;
    myMap.infoWindow.closeButtonVisible = false;
    myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
    catch(error:Error) {
    trace("Caught Error: "+error);
    And below is the combo boxes with the arrays
    <mx:FormItem label="Year        :"  >
    <mx:ComboBox   id="yearcombo" selectedIndex="0" labelField="label" width="100%" change="changeEvt(event)"  >
    <mx:ArrayCollection id="year"  >
    <fx:Object label="2007"  year="2007" />
    <fx:Object label="2009"  year="2009" />
    </mx:ArrayCollection>
    </mx:ComboBox>
    </mx:FormItem>
    <mx:FormItem label="Measure:">
    <mx:ComboBox   id="myURL" selectedIndex="8" width="80%" mouseOver="clickEv2(event)" close="closeHandler(event)">
    <mx:ArrayCollection id="measures"   >
    <fx:Object id="forindout07" labeltext="2007 Forestry Industry Output" label="Forestry Industry Output " value="RADIO_BUTTONS/TFEI_07_forest_industry_output" year="2007"  />
    <fx:Object id="foremp07" label="2007 Forestry Employment " value="RADIO_BUTTONS/TFEI_07_forest_employment" year="2007" />
    <fx:Object id="forlabinc07" label="2007 Forestry Labor Income " value="RADIO_BUTTONS/TFEI_07_forest_labincome" year="2007" />
    <fx:Object id="forindbustax07" label="2007 Forestry Indirect Business Tax" value="RADIO_BUTTONS/TFEI_07_forest_business_tax" year="2007" />
    <fx:Object id="forindout09" label="Forestry Industry Output " value="RADIO_BUTTONS/TFEI_09_forest_industry_output" year="2009"  />
    <fx:Object id="foremp09" label="2009 Forestry Employment " value="RADIO_BUTTONS/TFEI_09_forest_employment" year="2009" />
    <fx:Object id="forlabinc09" label="2009 Forestry Labor Income " value="RADIO_BUTTONS/TFEI_09_forest_labincome" year="2009" />
    <fx:Object id="forindbustax09" label="2009 Forestry Indirect Business Tax" value="RADIO_BUTTONS/TFEI_09_forest_business_tax" year="2009" />
    <fx:Object id="blank" label=" "  />
    </mx:ArrayCollection>

    And here is the entire code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application       
                    xmlns:fx="http://ns.adobe.com/mxml/2009"
                    xmlns:s="library://ns.adobe.com/flex/spark"
                    xmlns:mx="library://ns.adobe.com/flex/mx"
                    xmlns:esri="http://www.esri.com/2008/ags"
                    paddingBottom="8" paddingLeft="8"
                    paddingRight="8" paddingTop="8"
                    backgroundColor="0xffffff"
                    layout="vertical" >
        <!-- Start Declarations -->
    <fx:Declarations>
            <esri:SimpleFillSymbol id="mouseOverSymbol" alpha="0.5" color="0x808080">
                <esri:SimpleLineSymbol width="0" color="#000000"/>
            </esri:SimpleFillSymbol>
            <esri:SimpleFillSymbol id="defaultsym" alpha="0.01" color="#E0E0E0"   >
                <esri:SimpleLineSymbol width="1" color="#000000"/>
            </esri:SimpleFillSymbol>
        <!-- End Declarations -->
    </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import com.esri.ags.Graphic;
                import com.esri.ags.SpatialReference;
                import com.esri.ags.esri_internal;
                import com.esri.ags.events.GraphicEvent;
                import com.esri.ags.geometry.Extent;
                import com.esri.ags.layers.ArcGISDynamicMapServiceLayer;
                import com.esri.ags.symbols.SimpleFillSymbol;
                import com.esri.ags.symbols.SimpleLineSymbol;
                import flash.utils.flash_proxy;
                import mx.collections.ArrayCollection;
                import mx.controls.Alert;
                import mx.controls.RadioButton;
                import mx.controls.TextArea;
                import mx.events.DropdownEvent;
                import mx.events.ItemClickEvent;
                import mx.rpc.Fault;
                import mx.rpc.events.FaultEvent;
                import flash.display.Sprite;
                import flash.events.ErrorEvent;
                import flash.events.MouseEvent;
                private function closeHandler(evt:DropdownEvent):void {
                    myLabel.text = ComboBox(evt.target).selectedItem.labeltext;
                private function loadLayerName():void
                    myLegend.layers = null;
                    layerPanel.removeAllChildren();
                    //loop through each layer and add as a radiobutton
                    for(var i:uint = 0; i < (dynamicLayer.layerInfos.length); i++)
                        var radioBtn:RadioButton = new RadioButton;
                        radioBtn.groupName = "radioBtnGroup";
                        radioBtn.value = i;
                        radioBtn.label = dynamicLayer.layerInfos[i].name;
                        if (dynamicLayer.layerInfos[i].name == "Direct Impact (Million $)")
                            radioBtn.label = "Direct Impact";
                        else if (dynamicLayer.layerInfos[i].name == "Total Impact (Million $)")
                        {radioBtn.label = "Total Impact";
                        else if (dynamicLayer.layerInfos[i].name == "Total Impact (Jobs)")
                        {radioBtn.label = "Total Impact";
                        else if (dynamicLayer.layerInfos[i].name == "Direct Impact (Jobs)")
                        {radioBtn.label = "Direct Impact";
                        else
                        {radioBtn.visible= false;
                        layerPanel.addChild(radioBtn);
                    /*     myDividerBox.getDividerAt(0).visible = false; */
                    //set the visible layer the first radio button
                     radioBtnGroup.selectedValue = 0;
                     dynamicLayer.visibleLayers = new ArrayCollection([0]);
                    myLegend.layers = [dynamicLayer];
                    myLegend.visible = true;
                private function radioClickHandler(event:ItemClickEvent):void
                    myLegend.layers = null;
                    // update the visible layers to only show the layer selected
                    dynamicLayer.visibleLayers = new ArrayCollection([event.index]);
                    myLegend.layers = [dynamicLayer];
                private function changeEvt(event:Event):void {
                if (yearcombo.selectedItem.year == "2007")
                    measures.filterFunction=filter1
                    measures.refresh()
                    myURL.dataProvider=measures
                else if (yearcombo.selectedItem.year == "2009")
                    measures.filterFunction=filter2
                    measures.refresh();
            public function filter1(item:Object):Boolean
                if (item.year=="2007") return true
                else return false
                public function filter2(item:Object):Boolean
                    if (item.year=="2009") return true
                    else return false
                private function clickEvt(event:Event):void {
                    if (yearcombo.selectedItem.year == "2007")
                        measures.filterFunction=filter3
                        measures.refresh()
                        myURL.dataProvider=measures
                    else if (yearcombo.selectedItem.year == "2009")
                        measures.filterFunction=filter4
                        measures.refresh();
                public function filter3(item:Object):Boolean
                    if (item.year=="2007") return true
                    else return false
                public function filter4(item:Object):Boolean
                    if (item.year=="2009") return true
                    else return false
                private function clickEv2(event:Event):void {
                    if (yearcombo.selectedItem.year == "2007")
                        measures.filterFunction=filter5
                        measures.refresh()
                    else if (yearcombo.selectedItem.year == "2009")
                        measures.filterFunction=filter6
                        measures.refresh();
                    else if (yearcombo.selectedItem.year == 2007 && myURL.selectedIndex==8)
                        myLegend.layers = null;
                        layerPanel.removeAllChildren();
                public function filter5(item:Object):Boolean
                    if (item.year=="2007") return true
                    else return false
                public function filter6(item:Object):Boolean
                    if (item.year=="2009") return true
                    else return false
                /* IF YOU WANT TO INCLUDE OTHER VALUES IN THE MAP TOOLTIP LIKE COUNTY NAME AND THE LABEL OF THE SELECTED ITEM
                if (myURL.selectedIndex==0)
                myTextArea.htmlText = "<b>County: </b>" + gr.attributes.NAME + "\n"
                + "<b>Measure: </b>" + myURL.selectedItem.label + gr.attributes.ForDirIndOut.toString()
                public function fLayer_graphicAddHandler(event:GraphicEvent):void
                    event.graphic.addEventListener(MouseEvent.MOUSE_OVER, onMouseOverHandler);
                    event.graphic.addEventListener(MouseEvent.MOUSE_OUT, onMouseOutHandler);
                public function onMouseOverHandler(event:MouseEvent):void
                    if (yearcombo.selectedItem.year == "2007" && myURL.selectedIndex == 0 && radioBtnGroup.selectedValue == 0)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2007'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                        textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForDirIndOut.toString()
                        myMap.infoWindow.content=textArea
                        myMap.infoWindow.label = graphic.attributes.NAME;
                        myMap.infoWindow.closeButtonVisible = false;
                        myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2007" && myURL.selectedIndex == 0 && radioBtnGroup.selectedValue == 1)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2007'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForTotImpIndOut.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2007" && myURL.selectedIndex == 1 && radioBtnGroup.selectedValue == 0)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2007'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForDirEmp.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2007" && myURL.selectedIndex == 1 && radioBtnGroup.selectedValue == 1)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2007'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForTotImpEmp.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2007" && myURL.selectedIndex == 2 && radioBtnGroup.selectedValue == 0)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2007'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForDirLabInc.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2007" && myURL.selectedIndex == 2 && radioBtnGroup.selectedValue == 1)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2007'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForTotImpLabInc.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2007" && myURL.selectedIndex == 3 )
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2007'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForIndirBusTax.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2009" && myURL.selectedIndex == 0 && radioBtnGroup.selectedValue == 0)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2009'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForDirIndOut.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2009" && myURL.selectedIndex == 0 && radioBtnGroup.selectedValue == 1)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2009'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForTotImpIndOut.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2009" && myURL.selectedIndex == 1 && radioBtnGroup.selectedValue == 0)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2009'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForDirEmp.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2009" && myURL.selectedIndex == 1 && radioBtnGroup.selectedValue == 1)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2009'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForTotImpEmp.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2009" && myURL.selectedIndex == 2 && radioBtnGroup.selectedValue == 0)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2009'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForDirLabInc.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2009" && myURL.selectedIndex == 2 && radioBtnGroup.selectedValue == 1)
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2009'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForTotImpLabInc.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                    if (yearcombo.selectedItem.year == "2009" && myURL.selectedIndex == 3 )
                        fLayer.definitionExpression = "DATA_YEAR_TXT like '2009'"
                        var graphic:Graphic = Graphic(event.currentTarget);
                        graphic.symbol = mouseOverSymbol;
                        var htmlText:String = graphic.attributes.htmlText;
                        var textArea:TextArea = new TextArea();
                        try{
                            textArea.htmlText = myURL.selectedItem.label + graphic.attributes.ForIndirBusTax.toString()
                            myMap.infoWindow.content=textArea
                            myMap.infoWindow.label = graphic.attributes.NAME;
                            myMap.infoWindow.closeButtonVisible = false;
                            myMap.infoWindow.show(myMap.toMapFromStage(event.stageX, event.stageY));}
                        catch(error:Error) {
                            trace("Caught Error: "+error);
                public function onMouseOutHandler(event:MouseEvent):void
                    var gr:Graphic = Graphic(event.target);
                    gr.symbol = defaultsym;
                    myMap.infoWindow.hide();
            ]]>
        </fx:Script>
        <fx:Style>
            @namespace esri "http://www.esri.com/2008/ags";
            @namespace s "library://ns.adobe.com/flex/spark";
            @namespace mx "library://ns.adobe.com/flex/mx";
            @namespace esri "http://www.esri.com/2008/ags";
            @namespace components "com.esri.ags.components.*";
            components|InfoWindow
                content-background-alpha : 0.4;
                background-color : #4A7138;
                background-alpha : 0.7;
                border-style : solid;
        </fx:Style>
        <mx:HBox   width="930" height="800"  id="mapHbox"  horizontalAlign="center" >   
        <mx:HBox width="80">
        </mx:HBox>
        <mx:HBox id="myHBox" width="800" height="600" backgroundColor="0xffffff"  >
            <mx:VBox  height="590" width="358"  >
            <!--    <mx:Panel
                    width="356" height="100%"
                    color="0x000000"
                    borderAlpha="0.15"
                    >
                    -->
                    <mx:Canvas height="100%" width="100%" backgroundColor="0xffffff" >
                        <esri:Map id="myMap" openHandCursorVisible="false"
                                  height="100%" 
                                  logoVisible="false"
                                  doubleClickZoomEnabled="false"
                                  scrollWheelZoomEnabled="false"
                                  zoomSliderVisible="false"
                                  scaleBarVisible="false" scale="4000000" >
                            <esri:extent>
                                <esri:Extent xmin="-10736651.061900" ymin="4024099.909700" xmax="-10409195.669800" ymax="3440153.831100"      >
                                    <esri:SpatialReference wkid="102100"/>
                                </esri:Extent>
                            </esri:extent>
                            <esri:ArcGISDynamicMapServiceLayer id="dynamicLayer2"
                                                               url="http://tfs-24279/ArcGIS/rest/services/RADIO_BUTTONS/counties_layer/MapServer" />
                            <esri:ArcGISDynamicMapServiceLayer id="dynamicLayer" name=" "
                                                               alpha="1"
                                                               load="loadLayerName()"
                                                       url="http://tfs-24279/ArcGIS/rest/services/{myURL.selectedItem.value}/MapServer"   />
                            <esri:FeatureLayer id="fLayer"
                                               graphicAdd="fLayer_graphicAddHandler(event)"
                                               mode="snapshot"
                                               outFields="*"
                                               symbol="{defaultsym}"
                                               url= "http://tfs-24279/ArcGIS/rest/services/RADIO_BUTTONS/feature_layer_0709_five/FeatureServer/ 0" />
                        </esri:Map>
                    </mx:Canvas>
            <!--    </mx:Panel>-->
            </mx:VBox>       
            <mx:VBox  height="590" width="20"  >
            </mx:VBox>       
            <mx:Canvas height="500" width="400" backgroundColor="0xffffff"
                       horizontalScrollPolicy="off"
                       verticalScrollPolicy="off" >
                <mx:VBox  width="420" height="50%" paddingLeft="5" paddingTop="10" paddingRight="10" paddingBottom="10"
                         verticalGap="8">
                    <mx:Form  >
                        <mx:FormItem label="Year        :"  >
                            <mx:ComboBox   id="yearcombo" selectedIndex="0" labelField="label" width="100%" change="changeEvt(event)"  >
                                <mx:ArrayCollection id="year"  >
                                    <fx:Object label="2007"  year="2007" />
                                    <fx:Object label="2009"  year="2009" />
                                </mx:ArrayCollection>
                            </mx:ComboBox>
                        </mx:FormItem>
                        <mx:FormItem label="Measure:">
                            <mx:ComboBox   id="myURL" selectedIndex="8" width="80%" mouseOver="clickEv2(event)" close="closeHandler(event)">
                            <mx:ArrayCollection id="measures"   >
                                <fx:Object id="forindout07" labeltext="Forestry Industry Output" label="Forestry Industry Output " value="RADIO_BUTTONS/TFEI_07_forest_industry_output" year="2007"  />
                                <fx:Object id="foremp07" label="Forestry Employment " value="RADIO_BUTTONS/TFEI_07_forest_employment" year="2007" />
                                <fx:Object id="forlabinc07" label="Forestry Labor Income " value="RADIO_BUTTONS/TFEI_07_forest_labincome" year="2007" />
                                <fx:Object id="forindbustax07" label="Forestry Indirect Business Tax" value="RADIO_BUTTONS/TFEI_07_forest_business_tax" year="2007" />
                                <fx:Object id="forindout09" label="Forestry Industry Output " value="RADIO_BUTTONS/TFEI_09_forest_industry_output" year="2009"  />
                                <fx:Object id="foremp09" label="Forestry Employment " value="RADIO_BUTTONS/TFEI_09_forest_employment" year="2009" />
                                <fx:Object id="forlabinc09" label="Forestry Labor Income " value="RADIO_BUTTONS/TFEI_09_forest_labincome" year="2009" />
                                <fx:Object id="forindbustax09" label="Forestry Indirect Business Tax" value="RADIO_BUTTONS/TFEI_09_forest_business_tax" year="2009" />
                                <fx:Object id="blank" label=" "  />
                            </mx:ArrayCollection>
                        </mx:ComboBox>
                        </mx:FormItem>
                    </mx:Form>
                    <mx:VBox  id="layerPanel" width="50%" height="8%" verticalGap="3" paddingLeft="17">
                        <mx:RadioButtonGroup id="radioBtnGroup" itemClick="radioClickHandler(event)"  />
                    </mx:VBox>
                    <mx:VBox paddingLeft="17" height="50%" >
                    <mx:Canvas  id="legendPanel" width="100%"  >
                        <mx:Label id="myLabel" text=" " fontWeight="bold" />
                        <esri:Legend id="myLegend"
                                     layers="{[dynamicLayer]}"
                                     map="{myMap}" visible="false"
                                     respectCurrentMapScale="false"/>
                    </mx:Canvas>
                    <mx:TextArea width="275"  borderAlpha="0" height="200"  >
                        <mx:htmlText   >
                            <![CDATA[<font size='11'><b>Note:</b> Counties in white indicate either no data is available for that measure or the data has been supressed due to confidentiality.</font>
                            ]]>
                        </mx:htmlText>
                    </mx:TextArea>
                    </mx:VBox>   
                </mx:VBox>
            </mx:Canvas>
        </mx:HBox>
        </mx:HBox>   
    </mx:Application>

  • Using a for-each for a CallObject

    Hello everyone,
    i am having trouble to get the following scenario to work:
    1. SQL Call is prepared and called
    2. Branch with a condition whether there is a payment related to an invoice
    3. For-Each record of the resultset a cancellation will be called by using a B1Objectcall with cancellation method
    The for-each is configurated like this:
    /vpf:Msg/vpf:Body/vpf:Payload[@Role='C']/jdbc:ResultSet/jdbc:Row
    The path is configurated like this:
    /vpf:Msg/vpf:Body/vpf:Payload[./@id=&apos;atom36&apos;]/jdbc:ResultSet[./@rowCount>&apos;0&apos;]
    My problem is the preparation of the xsl-transformation to access the DocEntry of each record. This is my xml.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:b1e="urn:com.sap.b1i.sim:b1event" xmlns:b1ie="urn:com.sap.b1i.sim:b1ievent" xmlns:b1im="urn:com.sap.b1i.sim:b1imessage" xmlns:bfa="urn:com.sap.b1i.bizprocessor:bizatoms" xmlns:jdbc="urn:com.sap.b1i.adapter:jdbcadapter" xmlns:rfc="urn:sap-com:document:sap:rfc:functions" xmlns:sim="urn:com.sap.b1i.sim:entity" xmlns:utils2="com.sap.b1i.bpc_tools.Utilities" xmlns:vpf="urn:com.sap.b1i.vplatform:entity" xmlns:xci="urn:com.sap.b1i.xcellerator:intdoc" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" bfa:force="" vpf:force="" jdbc:force="" rfc:force="" b1ie:force="" b1e:force="" xci:force="" sim:force="" utils2:force="" b1im:force="">
      <xsl:output method="xml" encoding="UTF-8" indent="yes"/>
      <xsl:param name="atom"/>
      <xsl:param name="sessionid"/>
      <xsl:variable name="msg" select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role=&apos;S&apos;]"/>
      <xsl:variable name="msg2" select="/vpf:Msg/vpf:Body/vpf:Payload[@Role='C']/jdbc:ResultSet/jdbc:Row"/>
      <xsl:variable name="vpSender" select="/vpf:Msg/vpf:Header/vpf:Sender/@Id"/>
      <xsl:variable name="vpObject" select="/vpf:Msg/vpf:Header/vpf:Sender/@ObjId"/>
      <xsl:variable name="vpReceiver" select="/vpf:Msg/vpf:Header/vpf:ReceiverList/vpf:Receiver[./@handover=&apos;P&apos;]/@Id"/>
      <xsl:variable name="vpSysId" select="/vpf:Msg/vpf:Header/vpf:Variables/vpf:var[./@id=&apos;SysId&apos;]/@value"/>
      <xsl:template match="/">
      <Msg xmlns="urn:com.sap.b1i.vplatform:entity">
      <xsl:copy-of select="/vpf:Msg/@*"/>
      <xsl:copy-of select="/vpf:Msg/vpf:Header"/>
      <Body>
      <xsl:copy-of select="/vpf:Msg/vpf:Body/*"/>
      <Payload Role="X" id="{$atom}">
      <xsl:call-template name="transform"/>
      </Payload>
      </Body>
      </Msg>
      </xsl:template>
      <xsl:template name="transform">
      <Value xmlns="">
      <xsl:value-of select="$msg2/DocEntry"/>
      </Value>
      </xsl:template>
    </xsl:stylesheet>
    This is the inbound message on the path:
    <Msg xmlns="urn:com.sap.b1i.vplatform:entity" MessageId="14123112452456040534C0A800138613" BeginTimeStamp="20141231124524" logmsg="0000" SubMessageId="" status="success" owntst="false" test="true">
      <Header>
      <IPO Id="INB_IQ_INTQ_ASYN_QS" tid="14123109281856033321C0A80013BACE" />
      <IPO Id="PRC_QS" tid="14123109281856033506C0A8001381B0" />
      <msglog step="Default message log" always="false" b1ifactive="true" />
      <Resumption>
      <starter ipo="/vP.0010000000.in_IQ/com.sap.b1i.vplatform.runtime/INB_IQ_INTQ_ASYN_QS/INB_IQ_INTQ_ASYN_QS.ipo/proc" />
      <restart id="processing" q="Q.PRC_QS.0010000000" s="S.sap.DRFISQueuertFIS" u="14123112231756033345C0A800139613.4" />
      </Resumption>
      <ProcStream>S.sap.DRFISQueuertFIS</ProcStream>
      <Sender Id="0010000000" ObjId="sap.DetailReportFIS" />
      <Successor Id="" Mode="" />
      <Identification Ident="Queue/Stream" IdPar="n.a." />
      <nsList>
      <ns id="b1mb" ns="http://tempuri.org/" />
      </nsList>
      <ReceiverList>
      <Receiver Id="0010000000" filter="" />
      </ReceiverList>
      <Retrieval type="Handover" />
      <Outbound type="Void" channel="VOID" />
      <vBIU Id="sap.DRFISQueue" ver="1.0.0" SId="sap.Files" filter="" phase="" />
      <Variables>
      <var id="userid" value="no_authentication" />
      <var id="username" value="no_authentication" />
      <var id="SysId" value="0010000117" />
      </Variables>
      <Properties />
      <SysTypeProperties type="B1if" offline="" snd="0010000000" rcv="receiverdummy" ssystype="B1i.20" rsystype="" />
      <LocalProperties type="B1if" biu="sap.DRFISQueue" snd="0010000000" rcv="receiverdummy" sid="sap.Files" offline="" />
      <VarProperties>
      <property call="callb1obj.bfd" atom="atom3" id="SysId" value="#0010000117" />
      <property call="callsql.bfd" atom="atom36" id="SysId" value="#0010000117" />
      </VarProperties>
      </Header>
      <Body>
      <Payload Role="T" Type="Queue" add="sap.DetailReportFIS" />
      <Payload Role="S">
      <Document xmlns="">
      <row>
      <BuchungsID>47662</BuchungsID>
      <Datum>15.12.2014</Datum>
      <VertragspartnerID>61</VertragspartnerID>
      <Firmenname>Software Integrator</Firmenname>
      <KreditorenID>K123456</KreditorenID>
      <Kreditor>Intrum Justitia AG</Kreditor>
      <ForderungsID>9015</ForderungsID>
      <Rechnungsnummer>121</Rechnungsnummer>
      <Buchungstyp>DEBTCLAIM_REVOKE</Buchungstyp>
      <Buchungstext>Forderungsruecknahme</Buchungstext>
      <Waehrung>CHF</Waehrung>
      <Nettobetrag>-7560.00</Nettobetrag>
      <MwStSatz>0</MwStSatz>
      <MwStBetrag>0</MwStBetrag>
      <Bruttobetrag>-7560.00</Bruttobetrag>
      <Verrechnungsposition>n</Verrechnungsposition>
      </row>
      </Document>
      </Payload>
      <Payload Role="X" id="atom35">
      <row xmlns="">
      <Value>SELECT T0.DocNum FROM ORCT T0 WHERE T0.Canceled ='N' AND T0.DocNum IN (SELECT T1.DocNum FROM ORCT T0 INNER JOIN RCT2 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OINV T2 ON T1.DocEntry = T2.DocNum WHERE T2.DocNum = '121')</Value>
      <Value2>Update OINV set U_sapSTORNF = '1' WHERE DocEntry = '121'</Value2>
      </row>
      </Payload>
      <Payload Role="C" id="atom36" system="0010000117" mode="single" method="Automatic detection by key word(Automatic detection by key word)" plr="4" dbtype="SQL" blockExecution="false" compatibilityMode="true" delimiter=";" sql="SELECT T0.DocNum FROM ORCT T0 WHERE T0.Canceled ='N' AND T0.DocNum IN (SELECT T1.DocNum FROM ORCT T0 INNER JOIN RCT2 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OINV T2 ON T1.DocEntry = T2.DocNum WHERE T2.DocNum = '121')" disable-output-escaping="false">
      <ResultSet xmlns="urn:com.sap.b1i.adapter:jdbcadapter" rowCount="1">
      <Row>
      <DocNum>163</DocNum>
      </Row>
      </ResultSet>
      </Payload>
      <Payload Role="C" id="atom48" status="ok" input="atom35" queue="Q.INB_IQ_INTQ_ASYN_QS.0010000000" stream="sap.DRFISQueue3" />
      <Payload Role="X" id="atom33">
      <row xmlns="">
      <Value>163</Value>
      </row>
      </Payload>
      </Body>
    </Msg>

    Hello everyone,
    THis is how my stuff looks now:
    i have tried the above named solutions but i think, that as soon as i am checking the inbound parameter of the for-each it says something like that:
    - <ResultSet xmlns="urn:com.sap.b1i.adapter:jdbcadapter" rowCount="1"> 
    - <Row> 
    <DocNum>163</DocNum>  
    </Row>
    </ResultSet>
    While in the path i have got a such inbound parameter:
    the code just shows the sql call and the X Role of atom33 where i am using the personal tag
    - <Payload Role="C" id="atom36" system="0010000117" mode="single" method="Automatic detection by key word(Automatic detection by key word)" plr="4" dbtype="SQL" blockExecution="false" compatibilityMode="true" delimiter=";" sql="SELECT T0.DocNum FROM ORCT T0 WHERE T0.Canceled ='N' AND T0.DocNum IN (SELECT T1.DocNum FROM ORCT T0 INNER JOIN RCT2 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OINV T2 ON T1.DocEntry = T2.DocNum WHERE T2.DocNum = '121')" disable-output-escaping="false"> 
    - <ResultSet xmlns="urn:com.sap.b1i.adapter:jdbcadapter" rowCount="1"> 
    - <Row> 
    <DocNum>163</DocNum>  
    </Row>
    </ResultSet>
    </Payload>
    <Payload Role="C" id="atom48" status="ok" input="atom35" queue="Q.INB_IQ_INTQ_ASYN_QS.0010000000" stream="sap.DRFISQueue3" />  
    - <Payload Role="X" id="atom33"> 
    <DocId xmlns="">163</DocId>  
    </Payload>
      </Body>
    This is my call object configuration
    This message is the Key Value:
    /vpf:Msg/vpf:Body/vpf:Payload[./@Role='X' and ./@id='atom33']/DocId
    This is my atom33:
    <xsl:for-each select="/vpf:Msg/vpf:Body/vpf:Payload[./@Role=&apos;C&apos; and ./@id=&apos;atom36&apos;]/jdbc:ResultSet/jdbc:Row">
    <DocId xmlns="">
    <xsl:value-of select="jdbc:DocNum"/>
    </DocId>
    </xsl:for-each>
    When checking the message of the join inbound it shows the following:
    So it seems that at some point i am completely losing some inbound message (such as the atom33).
    - <Msg xmlns="urn:com.sap.b1i.vplatform:entity"> 
    - <Body> 
    - <Payload Role="X" id="atom56"> 
    <DocId2 xmlns="" />  
    </Payload>
    - <Payload Role="C" id="atom55" system="0010000117"> 
    <B1CallResult status="failure" b1login="Technical User" method="Synchronous Cancel" objectid="24" payload="atom56" keyname="DocEntry" keyvalue="" />  
    </Payload>
    </Body>
    </Msg>
    This is the atom56 config, which is just a tryout. Or do I use a wrong payload in my call object?
    Help is greatly appreciated.
    Regards Simon

  • For each loop not working

    My trace statements inside my for each loop won't show.
    Please someone check my code. I"m getting no errors in flex
    builder. When i debug all vars are holding prober data. Thanks so
    much

    "essa tkinen" <[email protected]> wrote in
    message
    news:gr27rt$3sb$[email protected]..
    > yes there is data there a commas delimited list of
    keywords that are
    > catagorys. the selectedCatArray holds at list one
    element. I want to
    > return true if element is in that list
    For one thing, you're going to exit the function in the first
    iteration,
    because you return the result inside the loop. Return
    immediately exits the
    function. For another, I'd be tempted to switch it to
    something more like
    this:
    for (var i = 0; i<_item.cats.length; i++) {
    var iCat=item.cats
    //do your stuff here
    I have had really bad luck getting for each in to work the
    way I think it
    should.
    HTH;
    Amy

  • For each help in JSP ?

    Hi all
    Does JSP support for each statement ??
    Actually i need to cycle through each post variable like this in ASP
    for each tempvarname in request.form
    value1 = request.form(tempvarname)
    pass=pass&value1
    next
    I am unable to do this JSP...
    Can somebody help ?

    Use JSTL's c:forEach tag.
    <c:forEach items="${param}" var="item">
        ${item.key} = ${item.value}<br/>
    </c:forEach>That said, the need for this is a smell. Rethink your approach.

  • For each in xslt

    From the attachment, The 'string' element under the record 'AoIAgeGroups' is set to unbounded.
    I am working on xslt, want to loop through every element of string and display as output.
    The xslt is as below:
    <types:Line>Age Groups:</types:Line>
      <xsl:for-each select="s1:AoIAgeGroups/s3:string">
       <types:Line><xsl:value-of select="text()"/></types:Line>
      </xsl:for-each>
    But I am getting only the first element in xml input string. It's not listing everything in it.
    The input xml is as below:
    <AoIAgeGroups xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <b:string>0-5 years</b:string>
    <b:string>6-12 years</b:string>
    <b:string>13-24 years</b:string>
    <b:string>25-65 years</b:string>
    <b:string>65+ years</b:string>
    </AoIAgeGroups>
    Currently it's listing only the 0-5 years of the input xml string. I want to list out all others so the output will be
    0-5 years
    6-12 years
    13-24 years
    25-65 years
    65+ years

    <?xml version="1.0" encoding="utf-16" ?>
    - <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="http://schemas.microsoft.com/BizTalk/2003/var" exclude-result-prefixes="msxsl var s0 s1 userCSharp" version="1.0" xmlns:ns0="http://esb/email/2011/01" xmlns:types="http://esb/email/types/2011/01" xmlns:s3="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns:s2="http://esb/phrc/1" xmlns:s1="http://esb/registration/1" xmlns:s0="http://esb/shared/1" xmlns:userCSharp="http://schemas.microsoft.com/BizTalk/2003/userCSharp" xmlns:ScriptNS0="http://schemas.microsoft.com/BizTalk/2003/ScriptNS0">
    <xsl:output omit-xml-declaration="yes" method="xml" version="1.0" />
    - <xsl:template match="/">
    <xsl:apply-templates select="/s1:Registration" />
    </xsl:template>
    - <xsl:template match="/s1:Registration">
    - <ns0:Plain>
    <types:Subject>Form Submission for Registration</types:Subject>
    - <types:DeliveryReceipt>
    <xsl:text>0</xsl:text>
    </types:DeliveryReceipt>
    - <types:ReadReceipt>
    <xsl:text>0</xsl:text>
    </types:ReadReceipt>
    - <types:From>
    - <xsl:choose>
    - <xsl:when test="string-length(s1:PersonalDetails/s0:ContactDetails/s0:EmailAddress/text()) > 0">
    - <types:EmailAddress>
    <xsl:value-of select="s1:PersonalDetails/s0:ContactDetails/s0:EmailAddress/text()" />
    </types:EmailAddress>
    </xsl:when>
    - <xsl:otherwise>
    <xsl:variable name="var:v6" select="ScriptNS0:Read("eFormsV2" , "DefaultCitizenFromEmail")" />
    - <types:EmailAddress>
    <xsl:value-of select="$var:v6" />
    </types:EmailAddress>
    </xsl:otherwise>
    </xsl:choose>
    <types:DisplayName>Form Submission for Registration</types:DisplayName>
    </types:From>
    - <types:To>
    <xsl:variable name="var:v6" select="ScriptNS0:Read("eFormsV2" , "PHRCRegistrationDepartmentEmail")" />
    - <types:EmailAddress>
    <xsl:value-of select="$var:v6" />
    </types:EmailAddress>
    </types:To>
    <types:Line>The following message has been submitted.</types:Line>
    <types:Line />
    - <!-- Details collected for all types of membership
    -->
    <types:Line>Details:</types:Line>
    <types:Line />
    - <types:Line>
    Name:
    <xsl:value-of select="s1:PersonalDetails/s0:ContactDetails/s0:Title/text()" />
    <xsl:text />
    <xsl:value-of select="s1:PersonalDetails/s0:ContactDetails/s0:FirstName/text()" />
    <xsl:text />
    <xsl:value-of select="s1:PersonalDetails/s0:ContactDetails/s0:Surname/text()" />
    </types:Line>
    <types:Line />
    - <xsl:if test="string-length(s1:PersonalDetails/s0:ContactDetails/s0:EmailAddress/text()) > 0">
    - <types:Line>
    Email:
    <xsl:value-of select="s1:PersonalDetails/s0:ContactDetails/s0:EmailAddress/text()" />
    </types:Line>
    </xsl:if>
    <types:Line />
    - <xsl:if test="string-length(s1:PersonalDetails/s0:ContactDetails/s0:MobilePhone/text()) > 0">
    - <types:Line>
    Mobile Phone:
    <xsl:value-of select="s1:PersonalDetails/s0:ContactDetails/s0:MobilePhone/text()" />
    </types:Line>
    </xsl:if>
    <types:Line />
    - <types:Line>
    Type of Membership:
    <xsl:value-of select="s1:TypeOfMembership/text()" />
    </types:Line>
    <types:Line />
    - <!-- Home details only collected for Professionals and students
    -->
    - <xsl:if test="s1:TypeOfMembership/text() = 'Student' or s1:TypeOfMembership/text() = 'Professional'">
    <types:Line />
    - <xsl:if test="string-length(s1:PersonalDetails/s0:ContactDetails/s0:HomePhone/text()) > 0">
    - <types:Line>
    Home Phone:
    <xsl:value-of select="s1:PersonalDetails/s0:ContactDetails/s0:HomePhone/text()" />
    </types:Line>
    <types:Line />
    </xsl:if>
    <types:Line>Address:</types:Line>
    - <xsl:if test="string-length(s1:PersonalDetails/s0:AddressDetails/s0:BusinessName/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:PersonalDetails/s0:AddressDetails/s0:BusinessName/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:PersonalDetails/s0:AddressDetails/s0:HouseName/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:PersonalDetails/s0:AddressDetails/s0:HouseName/text()" />
    </types:Line>
    </xsl:if>
    - <types:Line>
    <xsl:value-of select="s1:PersonalDetails/s0:AddressDetails/s0:HouseNumber/text()" />
    <xsl:text />
    <xsl:value-of select="s1:PersonalDetails/s0:AddressDetails/s0:Street/text()" />
    </types:Line>
    - <xsl:if test="string-length(s1:PersonalDetails/s0:AddressDetails/s0:Locality/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:PersonalDetails/s0:AddressDetails/s0:Locality/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:PersonalDetails/s0:AddressDetails/s0:Town/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:PersonalDetails/s0:AddressDetails/s0:Town/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:PersonalDetails/s0:AddressDetails/s0:County/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:PersonalDetails/s0:AddressDetails/s0:County/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:PersonalDetails/s0:AddressDetails/s0:PostCode/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:PersonalDetails/s0:AddressDetails/s0:PostCode/text()" />
    </types:Line>
    </xsl:if>
    <types:Line />
    </xsl:if>
    - <!-- Course Details are only collected for students
    -->
    <types:Line />
    - <xsl:if test="s1:TypeOfMembership/text() = 'Student'">
    - <types:Line>
    Course Title:
    <xsl:value-of select="s1:CourseDetails/s2:CourseTitle/text()" />
    </types:Line>
    - <xsl:if test="string-length(s1:CourseDetails/s2:Department/text()) > 0">
    - <types:Line>
    Department:
    <xsl:value-of select="s1:CourseDetails/s2:Department/text()" />
    </types:Line>
    </xsl:if>
    - <types:Line>
    College / University:
    <xsl:value-of select="s1:CourseDetails/s2:EstablishmentName/text()" />
    </types:Line>
    <types:Line />
    <types:Line>College / University Address:</types:Line>
    - <xsl:if test="string-length(s1:CourseDetails/s2:Address/s0:BusinessName/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:Address/s0:BusinessName/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:CourseDetails/s2:Address/s0:HouseName/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:Address/s0:HouseName/text()" />
    </types:Line>
    </xsl:if>
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:Address/s0:HouseNumber/text()" />
    <xsl:text />
    <xsl:value-of select="s1:CourseDetails/s2:Address/s0:Street/text()" />
    </types:Line>
    - <xsl:if test="string-length(s1:CourseDetails/s2:Address/s0:Locality/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:Address/s0:Locality/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:CourseDetails/s2:Address/s0:Town/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:Address/s0:Town/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:CourseDetails/s2:Address/s0:County/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:Address/s0:County/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:CourseDetails/s2:Address/s0:PostCode/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:Address/s0:PostCode/text()" />
    </types:Line>
    </xsl:if>
    <types:Line />
    - <types:Line>
    Tutors contact no.:
    <xsl:value-of select="s1:CourseDetails/s2:Tutor/s0:ContactDetails/s0:WorkPhone/text()" />
    </types:Line>
    <types:Line />
    - <types:Line>
    Tutors email address:
    <xsl:value-of select="s1:CourseDetails/s2:Tutor/s0:ContactDetails/s0:EmailAddress/text()" />
    </types:Line>
    <types:Line />
    <types:Line>Term time address:</types:Line>
    - <xsl:if test="string-length(s1:CourseDetails/s2:TermTimeAddress/s0:BusinessName/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:TermTimeAddress/s0:BusinessName/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:CourseDetails/s2:TermTimeAddress/s0:HouseName/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:TermTimeAddress/s0:HouseName/text()" />
    </types:Line>
    </xsl:if>
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:TermTimeAddress/s0:HouseNumber/text()" />
    <xsl:text />
    <xsl:value-of select="s1:CourseDetails/s2:TermTimeAddress/s0:Street/text()" />
    </types:Line>
    - <xsl:if test="string-length(s1:CourseDetails/s2:TermTimeAddress/s0:Locality/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:TermTimeAddress/s0:Locality/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:CourseDetails/s2:TermTimeAddress/s0:Town/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:TermTimeAddress/s0:Town/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:CourseDetails/s2:TermTimeAddress/s0:County/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:TermTimeAddress/s0:County/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:CourseDetails/s2:TermTimeAddress/s0:PostCode/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:CourseDetails/s2:TermTimeAddress/s0:PostCode/text()" />
    </types:Line>
    </xsl:if>
    <types:Line />
    </xsl:if>
    - <xsl:if test="s1:TypeOfMembership/text() = 'Professional'">
    <types:Line />
    - <xsl:if test="string-length(s1:ProfessionalDetails/s2:ProfessionalCategory/text()) > 0">
    - <types:Line>
    Professional Category:
    <xsl:value-of select="s1:ProfessionalDetails/s2:ProfessionalCategory/text()" />
    </types:Line>
    <types:Line />
    </xsl:if>
    - <types:Line>
    Line Managers Name:
    <xsl:value-of select="s1:ProfessionalDetails/s2:LineManager/s0:ContactDetails/s0:FirstName/text()" />
    </types:Line>
    - <xsl:if test="string-length(s1:ProfessionalDetails/s2:LineManager/s0:ContactDetails/s0:WorkPhone/text()) > 0">
    - <types:Line>
    Line Managers No.:
    <xsl:value-of select="s1:ProfessionalDetails/s2:LineManager/s0:ContactDetails/s0:WorkPhone/text()" />
    </types:Line>
    </xsl:if>
    <types:Line />
    </xsl:if>
    - <!-- Employment details only collected for professional and leaflet members
    -->
    - <xsl:if test="s1:TypeOfMembership/text() = 'Professional' or s1:TypeOfMembership/text() = 'Only want to order leaflets'">
    <types:Line />
    - <types:Line>
    Job Title:
    <xsl:value-of select="s1:ProfessionalDetails/s2:JobTitle/text()" />
    </types:Line>
    <types:Line />
    - <xsl:if test="string-length(s1:ProfessionalDetails/s2:Department/text()) > 0">
    - <types:Line>
    Department:
    <xsl:value-of select="s1:ProfessionalDetails/s2:Department/text()" />
    </types:Line>
    <types:Line />
    </xsl:if>
    - <types:Line>
    Organisation:
    <xsl:value-of select="s1:ProfessionalDetails/s2:Organisation/text()" />
    </types:Line>
    <types:Line />
    <types:Line>Address:</types:Line>
    - <xsl:if test="string-length(s1:ProfessionalDetails/s2:Address/s0:BusinessName/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:ProfessionalDetails/s2:Address/s0:BusinessName/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:ProfessionalDetails/s2:Address/s0:HouseName/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:ProfessionalDetails/s2:Address/s0:HouseName/text()" />
    </types:Line>
    </xsl:if>
    - <types:Line>
    <xsl:value-of select="s1:ProfessionalDetails/s2:Address/s0:HouseNumber/text()" />
    <xsl:text />
    <xsl:value-of select="s1:ProfessionalDetails/s2:Address/s0:Street/text()" />
    </types:Line>
    - <xsl:if test="string-length(s1:ProfessionalDetails/s2:Address/s0:Locality/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:ProfessionalDetails/s2:Address/s0:Locality/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:ProfessionalDetails/s2:Address/s0:Town/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:ProfessionalDetails/s2:Address/s0:Town/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:ProfessionalDetails/s2:Address/s0:County/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:ProfessionalDetails/s2:Address/s0:County/text()" />
    </types:Line>
    </xsl:if>
    - <xsl:if test="string-length(s1:ProfessionalDetails/s2:Address/s0:PostCode/text()) > 0">
    - <types:Line>
    <xsl:value-of select="s1:ProfessionalDetails/s2:Address/s0:PostCode/text()" />
    </types:Line>
    </xsl:if>
    <types:Line />
    - <types:Line>
    Work telephone numbers:
    <xsl:value-of select="s1:ProfessionalDetails/s2:PhoneNumbers/text()" />
    </types:Line>
    <types:Line />
    </xsl:if>
    <types:Line />
    - <types:Line>
    Confirmation box name:
    <xsl:value-of select="s1:AcceptanceName/text()" />
    </types:Line>
    <types:Line />
    <types:Line />
    <types:Line>Areas of interest</types:Line>
    <types:Line />
    <types:Line>Age Groups:</types:Line>
    - <xsl:for-each select="s1:AoIAgeGroups/s3:string">
    - <types:Line>
    <xsl:value-of select="text()" />
    </types:Line>
    </xsl:for-each>
    <types:Line />
    <types:Line>Topics:</types:Line>
    - <xsl:for-each select="s1:AoITopics/s3:string">
    - <types:Line>
    <xsl:value-of select="text()" />
    </types:Line>
    </xsl:for-each>
    </ns0:Plain>
    </xsl:template>
    </xsl:stylesheet>
    <?xml version="1.0" encoding="utf-8" ?>
    - <Registration xmlns="http://esb/registration/1" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    - <MetaData xmlns:b="http://esb/shared/1">
    <b:UTRN>W86180141692</b:UTRN>
    <b:EnquiryType i:nil="true" />
    <b:SubType i:nil="true" />
    <b:RequestStatus i:nil="true" />
    <b:RequestSubStatus i:nil="true" />
    <b:CreatedBy i:nil="true" />
    <b:Application i:nil="true" />
    <b:LGNLCategory i:nil="true" />
    <b:FormRef i:nil="true" />
    <b:FormVersion i:nil="true" />
    <b:ProcessStage i:nil="true" />
    <b:CreatedWhen i:nil="true" />
    <b:CreatedWhere i:nil="true" />
    <b:CreatedHow i:nil="true" />
    <b:SentFlag i:nil="true" />
    </MetaData>
    - <PersonalDetails xmlns:b="http://esb/shared/1">
    - <b:ContactDetails>
    <b:Title>Mr</b:Title>
    <b:FirstName>f</b:FirstName>
    <b:Surname>surname</b:Surname>
    <b:EmailAddress>[email protected]</b:EmailAddress>
    <b:HomePhone />
    <b:MobilePhone>m</b:MobilePhone>
    <b:WorkPhone i:nil="true" />
    <b:Fax i:nil="true" />
    <b:Minicom i:nil="true" />
    <b:PreferredContact i:nil="true" />
    </b:ContactDetails>
    - <b:AddressDetails>
    <b:FlatUnit />
    <b:UPRN>000072532081</b:UPRN>
    <b:BusinessName />
    <b:HouseName />
    <b:HouseNumber>1</b:HouseNumber>
    <b:Locality>Woodhouse</b:Locality>
    <b:Street>Delph Court</b:Street>
    <b:LPILevel />
    <b:Town>Leeds</b:Town>
    <b:County>Leeds</b:County>
    <b:Classification>RD06</b:Classification>
    <b:Country>United Kingdom</b:Country>
    <b:PostCode>LS6 2HL</b:PostCode>
    <b:Ward>Hyde Park and Woodhouse</b:Ward>
    </b:AddressDetails>
    </PersonalDetails>
    - <CourseDetails xmlns:b="http://esb/phrc/1">
    <b:CourseTitle />
    <b:Department />
    <b:EstablishmentName />
    - <b:Address xmlns:c="http://esb/shared/1">
    <c:FlatUnit />
    <c:UPRN i:nil="true" />
    <c:BusinessName />
    <c:HouseName />
    <c:HouseNumber />
    <c:Locality />
    <c:Street />
    <c:LPILevel i:nil="true" />
    <c:Town />
    <c:County />
    <c:Classification i:nil="true" />
    <c:Country i:nil="true" />
    <c:PostCode />
    <c:Ward i:nil="true" />
    </b:Address>
    - <b:Tutor xmlns:c="http://esb/shared/1">
    - <c:ContactDetails>
    <c:Title i:nil="true" />
    <c:FirstName i:nil="true" />
    <c:Surname i:nil="true" />
    <c:EmailAddress />
    <c:HomePhone i:nil="true" />
    <c:MobilePhone i:nil="true" />
    <c:WorkPhone />
    <c:Fax i:nil="true" />
    <c:Minicom i:nil="true" />
    <c:PreferredContact i:nil="true" />
    </c:ContactDetails>
    <c:AddressDetails i:nil="true" />
    </b:Tutor>
    <b:StudentEmailAddress i:nil="true" />
    - <b:TermTimeAddress xmlns:c="http://esb/shared/1">
    <c:FlatUnit />
    <c:UPRN i:nil="true" />
    <c:BusinessName />
    <c:HouseName />
    <c:HouseNumber />
    <c:Locality />
    <c:Street />
    <c:LPILevel i:nil="true" />
    <c:Town />
    <c:County />
    <c:Classification i:nil="true" />
    <c:Country i:nil="true" />
    <c:PostCode />
    <c:Ward i:nil="true" />
    </b:TermTimeAddress>
    </CourseDetails>
    - <ProfessionalDetails xmlns:b="http://esb/phrc/1">
    <b:ProfessionalCategory>Admin/Clerical/Management</b:ProfessionalCategory>
    - <b:LineManager xmlns:c="http://esb/shared/1">
    - <c:ContactDetails>
    <c:Title i:nil="true" />
    <c:FirstName>l</c:FirstName>
    <c:Surname i:nil="true" />
    <c:EmailAddress i:nil="true" />
    <c:HomePhone i:nil="true" />
    <c:MobilePhone i:nil="true" />
    <c:WorkPhone>lmn</c:WorkPhone>
    <c:Fax i:nil="true" />
    <c:Minicom i:nil="true" />
    <c:PreferredContact i:nil="true" />
    </c:ContactDetails>
    <c:AddressDetails i:nil="true" />
    </b:LineManager>
    <b:JobTitle>jt</b:JobTitle>
    <b:Department>d</b:Department>
    <b:Organisation>o</b:Organisation>
    - <b:Address xmlns:c="http://esb/shared/1">
    <c:FlatUnit />
    <c:UPRN>000072532081</c:UPRN>
    <c:BusinessName />
    <c:HouseName />
    <c:HouseNumber>1</c:HouseNumber>
    <c:Locality>Woodhouse</c:Locality>
    <c:Street>Delph Court</c:Street>
    <c:LPILevel />
    <c:Town>Leeds</c:Town>
    <c:County>Leeds</c:County>
    <c:Classification>RD06</c:Classification>
    <c:Country>United Kingdom</c:Country>
    <c:PostCode>LS6 2HL</c:PostCode>
    <c:Ward>Hyde Park and Woodhouse</c:Ward>
    </b:Address>
    <b:PhoneNumbers>wtn</b:PhoneNumbers>
    </ProfessionalDetails>
    <TypeOfMembership>Professional</TypeOfMembership>
    <WhoToldYou>how did you</WhoToldYou>
    <AcceptanceName>please</AcceptanceName>
    - <AoIAgeGroups xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <b:string>0-5 years</b:string>
    <b:string>6-12 years</b:string>
    <b:string>13-24 years</b:string>
    <b:string>25-65 years</b:string>
    <b:string>65+ years</b:string>
    </AoIAgeGroups>
    - <AoITopics xmlns:b="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <b:string>Accident prevention</b:string>
    <b:string>Healthy eating</b:string>
    <b:string>Mental health</b:string>
    <b:string>Parenting / Child health</b:string>
    <b:string>Physical activity</b:string>
    <b:string>Sexual health</b:string>
    <b:string>Substance use</b:string>
    </AoITopics>
    </Registration>

Maybe you are looking for

  • GRC AC 10 Show approved requests in work inbox

    Hello, Is it possible to show approved requests in work inbox? Denis.

  • Can't propagate Cache-Control headers with Surrogate-Control header

    My application may set the following response header to cause webcache to process the esi:include's: Surrogate-Control: content=ORAESI/9.0.4, max-age=3600 It and also may set the following intended for the browser cache: Cache-Control: private or say

  • PGP Encrypt and decrypt

    Hi, Is there anyone use PGP encryption and decryption in PLSQL? can it be done? Thanks Vincent

  • Total newb

    Hello :) , so Im a total newb :( I am trying to make this code into a function.... <code> jd_label.setIcon(new javax.swing.JLabel(){ public javax.swing.Icon getIcon(){ try { return new javax.swing.ImageIcon( new java.net.URL("http://ns2.taproot.bz/ja

  • Cannot get videos into iTunes

    I already did the test that this website suggests to make sure that video can play on the iPod. Everything worked fine, but now I can't get any other videos on my computer to copy into iTunes so I can use it on my computer. I have NO idea what to do.