Hello All,

I have an issue you might be able to point me in the right direction, or
show me what I'm doing wrong. Here's the scenario: This is a logout routine
for cashiers. As they come into this popup, it presents them with a list of
currently logged in cashiers. They select a cashier to log out and enter a
password. Hit the button that sends the information to the logout service
and bing, bang, boom! There logged out. And life is good! The Cashier
service is refreshed and everybody goes home happy. Except, the combobox,
it's an evil thing, truly evil, when I have 2 or more cashiers, it works
GREAT! However when I have only one cashier to log out, it doesn't want to
put them in the combobox ( 1 record). I know somebodies had to come across
this before, I'm hoping for someone that can show me the error of my ways...

James


Here's the code:

<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.macromedia.com/2003/mxml"; 
    title="{StoreInfo.LOCATNNM}"
    closeButton="true"
    click="deletePopUp();"
        initialize="hs_StoreInfo.send()">
        
        
        <!-- 
        
http://localhost/ws/Login.asp?UserID=Scott&pwdId=scott01&StoreNumber=2001
        -->
        
        <mx:Script>
        var StoreIP = "192.168.0.26"; // for testing purposes only
        <![CDATA[
        function Logoutresult() { //On initialization, sets value of
TextArea to 10.
                        CashierSrv.send();
                        deletePopUp();
                }

        ]]>
        </mx:Script>
        <mx:HTTPService id="hs_StoreInfo"
url="http://localhost/tmp/storeinfo.xml";
                result="CashierSrv.send();" >
                <mx:request>
                        <StoreIP>{StoreIP}</StoreIP>
                </mx:request>
        </mx:HTTPService>
        
        <mx:Model
id="StoreInfo">{hs_StoreInfo.result.storeinfo.SY00600}</mx:Model>

    <mx:HTTPService id="CashierSrv"
url="http://192.168.0.4/sbm/tmp/CashierList.xml";
showBusyCursor="true">
        <mx:request>
                        <UserID>{"ALL"}</UserID>
                        <StoreName>{StoreInfo.LOCATNNM}</StoreName>
        </mx:request>
    </mx:HTTPService>

        <mx:HTTPService id="LogOutSrv"
url="http://192.168.0.4/sbm/tmp/logout.xml"; showBusyCursor="true"
                method="POST" 
                fault="mx.core.Application.alert(event.fault.faultstring);"
                result="Logoutresult()" >
        <mx:request>
                <UserId>{cmbLogout.selectedItem.USERId}</UserId>
                <pwdId>{password.text}</pwdId>
                <StoreId>{StoreInfo.LOCATNID}</StoreId>
        </mx:request>
  </mx:HTTPService>

    <mx:HBox id="b1">
        <mx:Label text="Select cashier to log out:"/>
                        <mx:ComboBox id="cmbLogout"
dataProvider="{CashierSrv.result.cashiers.login}" labelField="UserName"
width="100%" />                                 
    </mx:HBox>

 
    <mx:HBox id="b2">
        <mx:Label text="Password:" width="143"/>
            <mx:TextInput id="password" password="true" text=""
width="101"/>
    </mx:HBox>
        

   <mx:Button label="Log Out Cashier" click="LogOutSrv.send();" />


</mx:TitleWindow>




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to