From d3310d212082d4d45ed7de2f4518629bc6cfe772 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 20 Jan 2020 23:39:51 +0000 Subject: [PATCH] --- server/AyaNova/biz/WidgetBiz.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);