For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
9 0 0 1

RData object in COM API

Hi, I have a situation where there are many requests at a time. In order to not get the replies mixed up with each other, I wanted to have a single Dex2Manager that creates multiple RData objects (which are the multiple requests). Would that be a correct way of handling this situation, or is there another/better way?


Thanks.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythoneikon-com-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.

1 Answer

Upvotes
Accepted
38.1k 69 35 53

@Maya.Uemura

From the question, I assume that you would like to how to get the RData object which can be used inside the OnUpdateEventHandler. There are several ways to do it, such as creating a new class that wraps around the RData object or using the lambda function in .NET.

For the lambda function, the code looks like:

            var myRData = MyDex2Mgr.CreateRData(MyDex2Cookie);
            myRData.OnUpdate += (DEX2_DataStatus DataStatus, object responseError) =>
            {
                ...
                Array l_response = myRData.Data as Array;
                ...
            };

By using the lambda function, the myRData object can be used inside the OnUpdate event handler.

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.

Click below to post an Idea Post Idea