question

Upvotes
Accepted
11 4 5 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-sdkema-apirrtelektron-message-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.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

· Write an Answer
Upvotes
Accepted
11.3k 25 9 14

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 512.0 KiB each and 1.0 MiB total.

Thanks, I am clear now.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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