From c98e7c387cbc7b5c45b1d43ba8bcb7571c22d0ae Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 20 Jan 2020 20:59:35 +0000 Subject: [PATCH] --- devdocs/specs/core-main-grids.txt | 5 ++++- server/AyaNova/biz/WidgetBiz.cs | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/devdocs/specs/core-main-grids.txt b/devdocs/specs/core-main-grids.txt index eff91546..389e1b4e 100644 --- a/devdocs/specs/core-main-grids.txt +++ b/devdocs/specs/core-main-grids.txt @@ -7,6 +7,9 @@ Proposed system is a hybrid grid system that has two modes to take into account - In this mode only one column shows and it's formatted according to the Display Format Template - DisplayFormatTemplate is specd in the core-display-format-template-system.txt doc - So the user chooses which columns to show in a small factor themselves, default is name only or equivalent + - As the client already does all the presentation and locale formatting it will also handle mini column concatenation + - The server's responsibility for mini is to use the mini format template which may well have different columns defined than the full + - Return the data just the same as for the wide template but it's very likely different data CASES @@ -16,7 +19,7 @@ None that are intrinsically grid related really, just 3 or so regarding specfic REQUIREMENTS Client - - Client needs to tell the server which form of list is required, i.e. it's client window size when fetching a list + - Client needs to tell the server which list template is required, i.e. it's client window size when fetching a list - HYBRID BIMODAL: MINI or default which is large (for now but consider maybe a medium down the road in planning) - in MINI mode - the client sends "mini=true" to the client with the grid data request diff --git a/server/AyaNova/biz/WidgetBiz.cs b/server/AyaNova/biz/WidgetBiz.cs index fda468e4..a308849e 100644 --- a/server/AyaNova/biz/WidgetBiz.cs +++ b/server/AyaNova/biz/WidgetBiz.cs @@ -486,7 +486,7 @@ namespace AyaNova.Biz while (dr.Read()) { List row = new List(returnRowCount); - //GetOrdinal is flakey in npgsql so need an alternative, probably faster this way anyway + //GetOrdinal is flakey in npgsql so just going by field definition and ordinal numerically int nCurrentColumnPointer=0; //flag to handle first column which has no display value, just an id instead bool isFirstDFColumn=true;