For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
7 2 2 3

Request data using fid name rather than fid id

Hi,

Is the answer in question: https://community.developers.refinitiv.com/questions/19599/issue-while-using-dynamic-view-with-acronym.html still valid?

Asking as the Websocket API is supporting both requests fid id and fid name. Is there another way to convert BID to 22 in the below sample?

array.fixedWidth(2);

array.add(EmaFactory.createOmmArrayEntry().intValue(22));

array.add(EmaFactory.createOmmArrayEntry().intValue(25));

Thanks,

Erol

elektronrefinitiv-realtimeelektron-sdk
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.

Upvote
Accepted
17k 80 39 63

Hi @erol.komac,

The EMA C/C++ or Java SDKs only support the ability to define a dynamic view based on a numeric FID. However, if you prefer to expose an interface to specify the field name, the only recourse that comes to mind is to utilize the data dictionary.

The easier way is to load the \etc\RDMDictionary and parse out the FID / Fieldname entries into a lookup table. Alternatively, you can download the dictionary from the server and perform the same parsing into a lookup table.

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.

Upvote
21.8k 57 14 21

Hi @erol.komac,

The ADS still does not seem to support field name based view for RSSL protocol. Only websocket protocol seems to do this currently.

I tried this with RRT-Optimized environment, and the view request was ignored by the ADS:

array.add(EmaFactory.createOmmArrayEntry().ascii("BID"));
array.add(EmaFactory.createOmmArrayEntry().ascii("ASK"));
array.add(EmaFactory.createOmmArrayEntry().ascii("DSPLY_NAME"));
view.add(EmaFactory.createElementEntry().uintValue(EmaRdm.ENAME_VIEW_TYPE, 2));
view.add(EmaFactory.createElementEntry().array(EmaRdm.ENAME_VIEW_DATA, array));
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.

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.