question

Upvotes
Accepted
11 4 3 7

Elektron example 421_marketPrice_programmaticConfig

about DictionanyType

FileDictionary (0): The EMA loads the dictionaries from the files specified in the parameters RdmFieldDictionaryFileName and EnumTypeDefFileName. ChannelDictionary (1): The EMA downloads dictionaries by requesting the dictionaries from the upstream provider.

This is from the Manual, Now look at the code:

innerMap.addKeyAscii( "Dictionary_1", MapEntry::AddEnum, ElementList() .addEnum( "DictionaryType", 1 ) .addAscii( "RdmFieldDictionaryFileName", "./RDMFieldDictionary" ) .addAscii( "EnumTypeDefFileName", "./enumtype.def" ).complete() ).complete();

The question: you specify type 1 here, which mean use ChannelDictionary, why do you need provide RdmFieldDictionaryFileName and EnumTypeDefFileName;

eikonelektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Hi James, This looks more like an Elektron question rather than App Studio. You'll probably get a quicker answer in that forum. You can move it from the cog, top right.

1 Answer

Upvotes
Accepted
11.3k 25 8 13

You are correct. There is no need to provide RdmFieldDictionaryFileName and EnumTypeDefFileName when the DictionaryType is 1 (ChannelDictionary). If the file name configurations are provided while DictionaryType is ChannelDictionary, EMA will just ignore the file names.

I believe that developer just want to demonstrate how these configurations are programmatically specified.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Thanks, I am clear now.

Click below to post an Idea Post Idea