From 7342b3f584a31fcb2422fdf17c17e94a9e1ff347 Mon Sep 17 00:00:00 2001 From: DLavoie Date: Mon, 15 Apr 2013 16:39:03 -0300 Subject: [PATCH 1/2] Update README.md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5172f1b..b32a51d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ Sample projects to illustrate the use of assembly bound lists in Square 9's SmartSearch product suite. -Note that projects must target .Net 3.5 or earlier and must be built to run specifically on x86. AnyCPU or x64 will not work. \ No newline at end of file +Note that projects must target .Net 3.5 or earlier and must be built to run specifically on x86. AnyCPU or x64 will not work. + +Can be edited to pull data from a wide range of different datasources, not just SQL tables. From e54b833c8296210228085497657527e674e8e886 Mon Sep 17 00:00:00 2001 From: DLavoie Date: Mon, 15 Apr 2013 16:43:31 -0300 Subject: [PATCH 2/2] Update ListUpdate.cs --- C#/ListSample/ListUpdate.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/C#/ListSample/ListUpdate.cs b/C#/ListSample/ListUpdate.cs index 3869c70..3741dbb 100644 --- a/C#/ListSample/ListUpdate.cs +++ b/C#/ListSample/ListUpdate.cs @@ -13,7 +13,7 @@ namespace ListSample { public class ListUpdate { - public List ListFieldData(String SQLColumn) + public List ListFieldData(String DataColumn) { //Create our list that will return our data to SmartSearch. This must be named 'FieldData'. List FieldData = new List(); @@ -27,10 +27,10 @@ public List ListFieldData(String SQLColumn) oConnection.ConnectionString = "Data Source=(local)\\FULL2008;Initial Catalog=GrapeLanes;Integrated Security=SSPI;"; //Check for valid column name - if ((SQLColumn.ToUpper() == "VENDNAME") || (SQLColumn.ToUpper() == "CSTCTR")) + if ((DataColumn.ToUpper() == "VENDNAME") || (DataColumn.ToUpper() == "CSTCTR")) { //Setting SQL query to return a list of data - oCmd.CommandText = "SELECT DISTINCT " + SQLColumn.ToUpper() + " FROM INVDATA"; + oCmd.CommandText = "SELECT DISTINCT " + DataColumn.ToUpper() + " FROM INVDATA"; } else {