Skip to Content
0
Former Member
May 17, 2008 at 12:56 PM

Ampersand in Flex Builder 3

22 Views

Hi,

I have huge problem calling folowing code in Flex Builder 3:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="srv.FlightCustomerGetList();">
<mx:Script>
   <![CDATA[
   private function handleResult():void
   {  dg.dataProvider = srv.FlightCustomerGetList.lastResult;    }
   
 

	
 
 
 
 
	
 
 
 
 
	
 
 
 
 
 
   
  
  
  
  
 
 
 
 
 


]]>

It produces error:

[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:8000/sap/bc/srt/rfc/sap/Z_FLIGHTCUSTOMER_WS?sap-client=000"]. URL: http://localhost:8000/sap/bc/srt/rfc/sap/Z_FLIGHTCUSTOMER_WS?sap-client=000"]

at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:dev3.0.xframeworksprojectsrpcsrcmxrpcAbstractInvoker.as:216]

at mx.rpc::Responder/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\Responder.as:49]

at mx.rpc::AsyncRequest/fault()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]

at DirectHTTPMessageResponder/errorHandler()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:343]

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at flash.net::URLLoader/redirectEvent()

I know its because of & character. Read all posts I could find about it (tried entering & amp; & %28 etc.). Still no luck. I found that it has something to do with Flex Builder 3 new features (http://bugs.adobe.com/jira/browse/SDK-14418) ... any idea how to make it work?

I need only to display customer data in simple grid.

Regs,

FS