question

Upvotes
Accepted
7 1 1 4

How to filter with certain fields

Hi,


I'm following the example370__MarketPrice__Batch java example.

And I want to know if there's a way to make the service only put in the response certain fields.


Thanks
elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apijava
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
9.6k 10 7 7

Hello @everon

You can use View feature which is demonstrated in example360__MarketPrice__View. Using a view, a consumer requests a subset of fields with a single request. Then, the server/service sends only the fields of interest as shown in the figure:

You can set Batch and View in a same request. For more details and example source code, please refer to Elektron Messaging API (Java) - Batch and View features


batchview-02.png (26.0 KiB)
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.

Upvotes
7 1 1 4

Thanks! That's what I'm looking for.

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.