Need some help with fill() and named querys:
1) As long as I use the dataservice. fill() mehod to populate an
arraycollection with the results from a simple named query like "From
MessageDetails" I have no problems and the arraycollection gets
populated correctly. But as soon as I use a more complex query
like "From MessageDetails MD,FixOrder ORD where MD.dbMessageId =
ORD.dbOrdId AND ORD.isCxr = 'Y' AND MD.typeCode = 'ORD'." I get a
Flex runtime error that says:
ArgumentError: Items must support IManaged. See [Managed] for more
information: object: [
{
createdBy = "test"
creationDate = "2007-12-20 19:12:11.063"
dbMessageId = 2
fixorders = mx.collections: :ArrayCollection {
filterFunction = null
length = 1
list = mx.collections: :ArrayList {
length = 1
source = [
{
account = "123"
ctiCode = "4"
dbOrdId = 2
ordType = "2"
price = "26.800000000"
putOrCall = null
securityDesc = "MSFT1CM7"
securityType = "FUT "
side = "1"
stopPx = null
strikePrice = null
symbol = "MSFT"
}
]
uid = "E9A44A94-C49B- A2D2-5838- 63007DD834FC"
}
sort = null
source = #0
}
lastMsgSeqNumProces sed = "10"
msgSeqNum = "7"
msgType = "G "
senderCompId = "ES1111P"
senderLocationId = "123"
senderSubId = "XYZ"
sendingTime = "2007-04-30"
targetCompId = "CME"
targetLocationId = null
targetSubId = "G"
typeCode = "ORD"
},
#0
]
at
mx.data::ConcreteDa taService/http://www.adobe. com/2006/ flex/mx/interna
l::normalize( )
[C:\depot\flex\ branches\ enterprise_ bridgeman\ frameworks\ mx\data\Concre
teDataService. as:2595]
at
mx.data::DataList/http://www.adobe. com/2006/ flex/mx/internal ::processS
equence()
[C:\depot\flex\ branches\ enterprise_ bridgeman\ frameworks\ mx\data\DataLi
st.as:1597]
at
mx.data::DataList/http://www.adobe. com/2006/ flex/mx/internal ::processS
equenceResult( )
[C:\depot\flex\ branches\ enterprise_ bridgeman\ frameworks\ mx\data\DataLi
st.as:1788]
at DataListRequestResp onder/result( )
[C:\depot\flex\ branches\ enterprise_ bridgeman\ frameworks\ mx\data\Concre
teDataService. as:5857]
at mx.rpc::AsyncReques t/acknowledge( )
[C:\dev\depot\ flex\branches\ flex_201_ borneo\sdk\ frameworks\ mx\rpc\Asyn
cRequest.as: 81]
at NetConnectionMessag eResponder/ resultHandler( )
[C:\dev\depot\ flex\branches\ flex_201_ borneo\sdk\ frameworks\ mx\messagin
g\channels\NetConne ctionChannel. as:451]
at mx.messaging: :MessageResponde r/result( )
[C:\dev\depot\ flex\branches\ flex_201_ borneo\sdk\ frameworks\ mx\messagin
g\MessageResponder. as:202]
This I think means that the query is executed correctly but Flex
can't use it to populate the arraycollection: the reason is probably
that it gets the data from various sources (MessageDetails, FixOrder ).
Please guide me in solving this out??
Chethan Reddy