By Peter Tönnies on Monday, 03 June 2019
Posted in C# Development
Likes 0
Views 1.2K
Votes 0
Hello,

at the moment, I am trying to update my main dictionary with an external source. I am having two questions regarding this.

Is EB able to read in an external dictionary list from say SQL without having to imprt CSVs?

When I am running the following code, I do get an empty dictionary imported. Could you please point me to the mistake I am doing?

var filter = myApplication_.CreateFilter();
filter.Kind = ObjectKind.Dictionary;
filter.Add(AttributeId.Designation, BinaryOperator.Equal, "NameOfMyDictionary");

var dic = (Dictionary)myApplication_.Folders.Dictionaries.FindObjects(filter, SearchBehavior.Hierarchical).FirstOrDefault();

dic.Import(@"C:\Users\xxx\Desktop\myImport.csv");

Thanks for the help.
View Full Post