EBDN - Community - Question & Answers

  Monday, 03 June 2019
  3 Replies
  1.2K Visits
0
Votes
Undo
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.