From 0b9c1d19c50dd993991dda997a48699b04894090 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Wed, 15 Jul 2009 00:29:57 +0000 Subject: - Update r1003 to also work with views (fixes Issue #335) --- Source/SPTableData.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source') diff --git a/Source/SPTableData.m b/Source/SPTableData.m index 888b8b11..81fe5479 100644 --- a/Source/SPTableData.m +++ b/Source/SPTableData.m @@ -653,7 +653,8 @@ [tableColumn removeAllObjects]; resultRow = [theResult fetchRowAsDictionary]; - // Add the column name + // Add the column index and name + [tableColumn setObject:[NSNumber numberWithInt:[tableColumns count]] forKey:@"datacolumnindex"]; [tableColumn setObject:[NSString stringWithString:[resultRow objectForKey:@"Field"]] forKey:@"name"]; // Populate type, length, and other available details from the Type columns -- cgit v1.2.3