I'm trying to insert and update data to the sql database.The even.statusCode returns 0. Does it mean the update is successful? Is the code below correct?
private function createMessageResultHandler(event:ResultEvent):void
{聽聽聽聽
聽聽聽聽聽聽聽聽聽聽聽聽 Alert.show(''event.statusCode = '' + event.statusCode);
聽聽聽聽聽聽聽聽聽聽聽聽聽聽 if (event.statusCode == 0)
聽聽聽聽聽聽聽聽聽聽聽聽聽聽 {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 Alert.show(''Database update is successful.'');
聽聽聽聽聽聽聽聽聽聽聽聽聽聽 }
聽聽聽聽聽聽聽聽聽聽聽聽聽 else
聽聽聽聽聽聽聽聽聽聽聽聽聽 {
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 Alert.show(''The database update has failed. Contact xxxx'');
聽聽聽聽聽聽聽聽聽聽聽聽聽 }聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
}聽聽聽聽
Thanks in advance.
Does event.statusCode = 0 mean database...That depends on how your backend server handles the updating.
Does event.statusCode = 0 mean database...Thanks for your reply. Are you talking about the database server or application server or both?
In this case I mean the app server
Sincerely,
Michael
El 17/04/2009, a las 13:36, salut %26lt;forums@adobe.com%26gt; escribi贸:
%26gt;
Thanks for your reply. Are you talking about the database server or
application server or both?
%26gt;
No comments:
Post a Comment