Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions C#/ListSample/ListUpdate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace ListSample
{
public class ListUpdate
{
public List<string> ListFieldData(String SQLColumn)
public List<string> ListFieldData(String DataColumn)
{
//Create our list that will return our data to SmartSearch. This must be named 'FieldData'.
List<String> FieldData = new List<String>();
Expand All @@ -27,10 +27,10 @@ public List<string> 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
{
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
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.