Have any method to get fields number by fields names before request?

When I use StarterConsumer_BatchView C# sample,

have any method to get fields number by fields names before request not from reponse data.

Because via RFA.NET api to request data has to send fid id not fid name,so have any method can get fid id by fid names.

Best Answer

  • @gary.liao

    You can use the RDMFieldDictionary class.

    It has the GetFidDef(RFA_String) method to search the field definition by field name.

    This method returns an RDMFidDef class. Then, you can call RDMFidDef::FieldId to get the field ID.

    The RDMFieldDictionary class is used in the Decoder class of the example.