How to use set_Usertag with AdxRtList?

Hello!

How to use UserTags? I'm working on application that will be used by many users, so they can request AdxRtList.StartUpdates almost simultaneously, so I need to know what RICs was in request to process adxRtList_OnImage.

I wrote this

stringArray.Add("XAUFIXAM=");
AdxRtList.Source = "IDN";
string[] stringArr = stringArray.ToArray();
AdxRtList.RegisterItems(stringArr, "TRDPRC_1");
AdxRtList.set_UserTag("req_id", i.ToString(), stringArr);
AdxRtList.StartUpdates(RT_RunMode.RT_MODE_IMAGE);

but I'm getting error "AdxRtList : invalid item req_id"

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Alex Putkov.1"
    ✭✭✭✭✭
    Accepted Answer

    You don't need to use a separate instance of AdxRtList for each request. If you need to retrieve a bunch of RICs, then another bunch and another bunch, you can call RegisterItems and StartUpdates methods for the same object as many times as you need. To find out what RICs have been registered in the instance of AdxRtList object use ListItems method. You can call ListItems method from the callback for OnImage event, this way you know what RICs this instance of the object has requested or retrieved. To remove RICs from AdxRtList object use UnregisterItems or InregisterAllItems methods.