Index: lams_common/src/flash/org/lamsfoundation/lams/common/comms/Communication.as =================================================================== diff -u -r68178ee6b8a16d08bd85c2000c127dd90f99c774 -r64f609218d45aae64ea8fdb3125d37d5557c7c68 --- lams_common/src/flash/org/lamsfoundation/lams/common/comms/Communication.as (.../Communication.as) (revision 68178ee6b8a16d08bd85c2000c127dd90f99c774) +++ lams_common/src/flash/org/lamsfoundation/lams/common/comms/Communication.as (.../Communication.as) (revision 64f609218d45aae64ea8fdb3125d37d5557c7c68) @@ -192,8 +192,8 @@ */ private function onServerResponse(success:Boolean,wrappedPacketXML:XML,queueID:Number){ //trace('XML loaded success:'+ success); - Debugger.log('xml recieved is:'+wrappedPacketXML.toString(),Debugger.VERBOSE,'onServerResponse','Communication'); - //Load ok? + Debugger.log('xml recieved is:'+wrappedPacketXML.toString(),Debugger.VERBOSE,'onServerResponse','Communication'); + //Load ok? if(success){ var responseObj:Object = wddx.deserialize(wrappedPacketXML); if(responseObj.messageType == null){ @@ -208,15 +208,15 @@ var e = new LFError(responseObj.messageValue,"onServerResponse",this); dispatchToHandlerByID(queueID,e); //var somemsg =" this is just a test so please ignore as i am testing the max number of" - var sendMsg:String = Dictionary.getValue('sys_error_msg_start')+"\n\n"+responseObj.messageValue+"\n\n"+Dictionary.getValue('sys_error_msg_finish')+"\n\n\n"; + var sendMsg:String = Dictionary.getValue('sys_error_msg_start')+"\n\n"+Dictionary.getValue('sys_error_msg_finish')+"\n\n\n"; //LFMessage.showMessageAlert(responseObj.messageValue, null, null); LFError.showSendErrorRequest(sendMsg, 'sys_error', Debugger.crashDataDump, null); //TODO: Make sure that things that have requested server responses can handle an error object //showAlert("Oops", responseObj.body, "sad"); }else if(responseObj.messageType == SYSTEM_ERROR_CODE){ - var somemsg =" this is just a test so please ignore as i am testing the max number of character possible to show in the alert window. Hope I will be able to get success if this task." - var sendMsg:String = Dictionary.getValue('sys_error_msg_start')+"/n"+somemsg+"/n"+Dictionary.getValue('sys_error_msg_finish'); - //var sendMsg:String = Dictionary.getValue('sys_error_msg_start')+"/n"+responseObj.messageValue+"/n"+Dictionary.getValue('sys_error_msg_finish'); + //var somemsg =" this is just a test so please ignore as i am testing the max number of character possible to show in the alert window. Hope I will be able to get success if this task." + //var sendMsg:String = Dictionary.getValue('sys_error_msg_start')+"/n"+somemsg+"/n"+Dictionary.getValue('sys_error_msg_finish'); + var sendMsg:String = Dictionary.getValue('sys_error_msg_start')+"\n\n"+Dictionary.getValue('sys_error_msg_finish'); //LFMessage.showMessageAlert(responseObj.messageValue, null, null); LFError.showSendErrorRequest(sendMsg, 'sys_error', Debugger.crashDataDump, null); //showAlert("System error", "
Sorry there has been a system error, please try the operation again. If the problem persistes please contact support
Additional information:"+responseObj.body+"
", "sad"); @@ -237,7 +237,7 @@ Debugger.log("XML Load failed",Debugger.CRITICAL,'onServerResponse','Communication'); var e = new LFError("Communication with the server has failed. \nPlease check you are connected to the internet and/or LAMS server","onServerResponse",this,'Server URL:'+_serverURL); e.showMessageConfirm(); - + } }