Hi, I have a strange problem. I have the following xml file:
<?xml version="1.0" encoding="utf-8"?> <dataset xmlns="http://developer.cognos.com/schemas/xmldata/1/" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"> <metadata> <item name="ProductID" type="xs:string" length="32"/> <item name="CustomerID" type="xs:string" length="32"/> <item name="Expense" type="xs:double" precision="2"/> </metadata> <data> <row> <value>103007</value> <value>32017</value> <value>4600</value> </row> <row> <value>105000</value> <value>32015</value> <value>-975700</value> </row> </data> </dataset> As you can see that the problem is that the xml data appears in the same <value> tag,even though it belongs to three different entities as seen in the metadata. As a result when i am showing the data in the datagrid,then it is showing me three columns as shown below: value value value 103007,32017,4600 103007,32017,4600 103007,32017,4600 105000,32015,-975700 105000,32015,-975700 105000,32015,-975700 I have been able to avoid this problem by defining my labelFunction for the columns and splitting the data to show the relevant data in the 3 columns. My question is that is there a way in which can i associate the metadata with the value tags so that flex won't consider the three value tags as same and hence show the data in different columns. Thanks, Shishir. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

