question

Upvotes
Accepted
1 0 0 2

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.

treprfac#.netfieldsommconsumer
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.

1 Answer

Upvotes
Accepted
53k 137 44 63

@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.


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.