XML Table setFormats()
[b]var string = new AW.Formats.String; var number= new AW.Formats.Number; number.setTextFormat('#,###.##');[/b] var table = new AW.XML.Table; table.setURL("../data/companies-simple.xml"); [b]table.setFormats([string, string, string, string, number]);[/b] table.request();
But the result I get, is that at row number 4 I get all NaNs except for the last column. Furthermore, this is is the row that has the format correct for the entire column.
I also tried adding the following before the setFormats() command with the same results:
table.setColumns(["ticker", "name", "mktcap", "sales", "employees"]);
etc and it works fine for me, not that this solves your problem.
This topic is archived.
Back to support forum
Version 2Looking for AW 2.6 ?
The old site is here.