Java Reference
In-Depth Information
frmPhone.text=null;
frmWebsite.text=null;
}
// fetch the account
private function fetchAccount():void {
status.text='Fetching account...';
// fetch the account by Id from App Engine
gateway.fetchAccount(fetchId.text);
}
// display the results from App Engine returned from
fetchAccount()
private function displayAccount(event:ResultEvent):void {
status.text='Displaying account...';
var account:Account = event.result as Account;
txtName.text=account.name;
txtCity.text=account.city;
txtState.text=account.state;
txtPhone.text=account.phone;
txtWebsite.text=account.website;
}
]]>
</mx:Script>
<mx:Text x="10" y="14" text="Telesales Demo" fontSize="18"
color="#FFFFFF"/>
<mx:TabNavigator left="5" right="5" bottom="50" top="50">
<mx:Canvas label="Display Account" width="100%" height="100%">
<mx:Form width="100%" height="100%" left="0">
<mx:FormItem label="Id">
<mx:TextInput id="fetchId"/>
</mx:FormItem>
<mx:FormItem>
<mx:Button label="Fetch"
click="fetchAccount();"/>
</mx:FormItem>
<mx:FormItem>
<mx:Spacer/>
</mx:FormItem>
Search WWH ::




Custom Search