![]() | RemLookupGetListItems Method |
Namespace: Paperwork.Connect
public a_ListInfo GetListItems( ObjectName listName, string controlName, string filterText, string masterCol = "" )
public void GetListItems() { ObjectName listName = new ObjectName("ILLER"); //ObjectName.Empty; string controlName = string.Empty; string filterText = string.Empty; string masterCol = string.Empty; a_ListInfo detail = p.rLookup.GetListItems(listName, controlName, filterText, masterCol); foreach (ListLookup item in detail.Values) { foreach (GridHeader header in detail.Headers) { string value = string.Empty; switch (header.Name) { case "Key1": value = item.Key1; break; case "Key2": value = item.Key2; break; case "Key3": value = item.Key3; break; case "Key4": value = item.Key4; break; case "Key5": value = item.Key5; break; } Console.Write("{0}:{1}, ", header.Caption, value); } Console.WriteLine(string.Empty); } }