hi,
 
 
I'm trying to create it, but i've some problem and Hotmail and yahoo doesn't offer any WebService to check mail...
 
My problem is that when i select a leaf in the tree on the left, i'd like that on the datagrid on the right will appear a list of element.
i.e. when i choose inbox on the left on the right will appear all the inbox-emails...
 
Perhaps i've to organize better the xml source (Outlook_dati_3.xml)...
 
Any suggestion?
 
 
Does anyone have a e-mail client sample with sources? 
 
Thanks,
Francesco
 
 
 
Here is my code
 
 
 
---------------------------------------------------------------------------------------------------------------------------
Outlook_base_3.mxml
 
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml" >
 
 <mx:DividedBox direction="horizontal" width="500" height="100%">
 <mx:Model id="emailModel" source="Outlook_dati_3.xml"/>
  
  <mx:Tree id="tree1" width="70%" height="100%" >
   <mx:dataProvider>
    <mx:XML>
     <node label="Mail">
      <inbox label="INBOX" />
      <personal label="Personal Folder">
       <business label="Business" />
       <demo label="Demo" />
       <personal2 label="Personal" isBranch="true" />
       <savedmail label="Saved Mail" />
      </personal>
      <sent label="Sent" />
      <trash label="Trash"/>
     </node>
    </mx:XML>
   </mx:dataProvider>
  </mx:Tree>
 
  <mx:DividedBox direction="vertical" width="100%" height="100%">
 
   <mx:DataGrid id="myGrid" width="100%" height="100%" dataProvider="{emailModel.inbox.mail}">
    <mx:columns>
     <mx:Array>
      <mx:DataGridColumn columnName="from" />
      <mx:DataGridColumn columnName="object" />
      <mx:DataGridColumn columnName="received" />
     </mx:Array>
    </mx:columns>        
    </mx:DataGrid>
   <mx:TextArea id="currentMessage" width="100%" height="100%" text="{myGrid.selectedItem.text}" />
  </mx:DividedBox>
 </mx:DividedBox>
</mx:Application>

--------------------------------------------------------------------------------------------------------------
Outlook_dati_3.xml
 
 
 
<?xml version="1.0" encoding="utf-8"?>
<emails>
 <inbox>
  <mail>
   <from>Christina Coenraets</from>
   <object>invito</object>
   <received>[EMAIL PROTECTED]</received>
   <text>Ciao, come stai. ti scrivo per darti mie notizie</text>
  </mail>
  <mail>
   <from>Louis Freligh</from>
   <object>orario esame</object>
   <received>[EMAIL PROTECTED]</received>
   <text>Ciao, come stai. ti scrivo per darti mie notizie</text>
  </mail>
  <mail>
   <from>Ronnie Hodgman</from>
   <object>meteo</object>
   <received>[EMAIL PROTECTED]</received>
   <text>Ciao, come stai. ti scrivo per darti mie notizie. Mi sono trasferito a milano.</text>
  </mail>
  <mail>
   <from>Joanne Wall</from>
   <object>voto</object>
   <received>[EMAIL PROTECTED]</received>
   <text>Ciao, come stai. ti scrivo per darti mie notizie</text>
  </mail>
  <mail>
   <from>Maurice Smith</from>
   <object>auto</object>
   <received>[EMAIL PROTECTED]</received>
   <text>Ciao, come stai. ti scrivo per darti mie notizie. Mi sono trasferito a milano.</text>
  </mail>
  <mail>
   <from>Mary Jones</from>
   <object>spamming</object>
   <received>[EMAIL PROTECTED]</received>
   <text>Ciao, come stai. ti scrivo per darti mie notizie</text>
  </mail>
 </inbox>
 <sent>
  <mail>
   <from>Christina dCoenraets</from>
   <object>invitod</object>
   <received>[EMAIL PROTECTED]</received>
   <text>Ciao, comed stai. ti scrivo per darti mie notizie</text>
  </mail>
  <mail>
   <from>Louis Frelfifgh</from>
   <object>orario efsame</object>
   <received>[EMAIL PROTECTED]</received>
   <text>Ciao, come fstai. ti scrivo per darti mie notizie</text>
  </mail>
 </sent> 
</emails>
 
 


Yahoo! Groups Links

Reply via email to