<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768" xmlns:rrinvisservice="services.rrinvisservice.*">
    <s:layout>
        <s:BasicLayout/>
    </s:layout>
    <fx:Script>
        <![CDATA[
            import mx.events.FlexEvent;
            import mx.controls.Alert;

            protected function dropDownList_creationCompleteHandler(event:FlexEvent):void
            {
                getAllRrinvisResult.token = rrinvisService.getAllRrinvis();
            }

        ]]>
    </fx:Script>
    <fx:Declarations>
        <s:CallResponder id="getAllRrinvisResult"/>
        <rrinvisservice:RrinvisService id="rrinvisService" fault="Alert.show(event.fault.faultString + '\n' + event.fault.faultDetail)" showBusyCursor="true"/>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <s:DropDownList x="83" y="122" id="dropDownList" creationComplete="dropDownList_creationCompleteHandler(event)" dataProvider="{getAllRrinvisResult.lastResult}" labelField="account"></s:DropDownList>
    <s:Label x="102" y="74" text="Daily Shift Report"/>
    <s:Label x="416" y="74" text="Label"/>
</s:Application>