Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
Adobe Flex SDK 4.1 (Release)
-
None
-
None
-
Affected OS(s): Windows
Affected OS(s): Windows 7
Browser: Other (specify version)
Language Found: English
Description
Steps to reproduce:
Using XML filtering to identify a XML record from XMLList before deleting it.
var xmlData:XML =
<data count="2" code="0">
<association id="4339" technology="2" name="Undefined">
<mapping id="9264" entityId="7582" entityType="TOOL" entityName="abcd"/>
</association>
<association id="4340" technology="2" name="Undefined">
<mapping id="9263" entityId="7582" entityType="TOOL" entityName="efgh"/>
</association>
</data>;
var deleteMappingId:Number = 9263;
var record:Object = associationsData.association.mapping.(@id == deleteMappingId)[0];
var deleteToolId:Number = record.@entityId;
delete associationsData.association.mapping.(@id == deleteMappingId)[0];
Actual Results:
If I comment the previous lines, the delete works and data is actually removed but assignement to variable 'record' throws a runtime error.
(undefined member)
Expected Results:
assignment to variable record gives : "<mapping id="9263" entityId="7582" entityType="TOOL" entityName="efgh"/>"
Workaround (if any):
Had to loop on association.mapping :
for each (var m:XML in associationsData.association.mapping) {
if (m.@id == deleteMappingId)
}
Remark : it was working fine in 4.0. I have similar xml filtering issues in other parts of my application.