diff --git a/server/AyaNova/biz/WidgetBiz.cs b/server/AyaNova/biz/WidgetBiz.cs index bbaaf862..781be7a6 100644 --- a/server/AyaNova/biz/WidgetBiz.cs +++ b/server/AyaNova/biz/WidgetBiz.cs @@ -508,7 +508,7 @@ namespace AyaNova.Biz //first column is always the underlying id value of the default record to open for this row in the client ui row.Add(new AyaFieldData() { v = dr.GetInt64(0) }); - //GetOrdinal is flakey in npgsql so just going by field definition and ordinal numerically + //GetOrdinal by name is flakey in npgsql so just going by field definition and ordinal numerically int nCurrentColumnPointer = 1;//start at 1 //INSERT REMAINING FIELDS FROM TEMPLATE INTO THE RETURN ROWS LIST @@ -519,13 +519,13 @@ namespace AyaNova.Biz AyaFieldData AyaField = new AyaFieldData(); AyaField.v = dr.GetValue(nCurrentColumnPointer); + nCurrentColumnPointer++; if (f.SqlIdColumnName != null)//skip over df column id, it's not there { AyaField.i = dr.GetInt64(nCurrentColumnPointer); nCurrentColumnPointer++; } - row.Add(AyaField); } rows.Add(row);