How to specify a starting position when calling OmmConsumer.submit to replace value in a RIC page

Hi all,
I would like to use the OmmConsumer.submit to update a line in a RIC page, but seems i can only replace the value starting the beginning, but i found it is possible to specify the start position using RtContribute in excel plugin.
My update goes via TREP RAID link to Refinitiv.
Many Thanks
Best Answer
-
It should be an ASCII code, not Unicode or UTF8 characters.
Please refer to the answer in this thread.
0
Answers
-
Hello @denny.c.h.ma ,
Are you publishing pages as field-based records?
If this is the case, each raw is a field, and you may wish to take a look at the article How to parse page-based data using Refinitiv Real-time SDK Java sections Full update and Partial update, consequently, examine the fields you are looking to update and design the partial update.
Hope that this is what you looking for, otherwise, please describe more of the use requirement, and how you are approaching it, so we can try to help.
0 -
Hi Zoya,
Thanks for your response.
we have referenced to the document which you shared and try to partial update value. but still failed. code is like below:
PostMsg postMsg = EmaFactory.createPostMsg();
RefreshMsg nestedRefreshMsg = EmaFactory.createRefreshMsg();
FieldList nestedFieldList = EmaFactory.createFieldList();
char CHAR_CSI = 0x1B2B;
char HPA = 0x60;
String content = "1291 63";
String offset = "3";
String value =
// String.valueOf(new char[]{'\u001B', '\u005B'})
"\u001B\u005B"
+ offset
+ "\u0060"
+ content;
ByteBuffer bb = ByteBuffer.wrap(value.getBytes(StandardCharsets.UTF_8));
bb.rewind();
nestedFieldList.add(EmaFactory.createFieldEntry().rmtes(336, bb));
but the result not expected, the update still start from Position 1 :
We would like to perform a partial update to starting from a specific position.
I am not sure why the offset was not taken effect, will it be related to our update to Refinitiv was sent via TREP RAID link?
Many Thanks
0 -
Can you try using a UpdateMsg instead of a RefreshMsg?
You are trying to do a partial update of a field - so not sure why you are using a RefreshMsg - which would indicate a full and complete message overriding all fields for the record you wish to contribute to.
This may well be a red herring - but I thought I would mention this.
0 -
hi @umer.nalla ,
I just use UpdateMsg instead of RefreshMsg, but the update still start with position 1:
May I know what still wrongly setting ?
many thanks.
char CHAR_CSI = 0x1B2B;
char HPA = 0x60;
String content = "1291 63";
String offset = "3";
String value =
"\u001B\u005B"
+ offset
+ "\u0060"
+ content;
ByteBuffer bb = ByteBuffer.wrap(value.getBytes(StandardCharsets.UTF_8));
bb.rewind();
FieldList nestedFieldList = EmaFactory.createFieldList();
nestedFieldList.add(EmaFactory.createFieldEntry().rmtes(335, bb));
UpdateMsg nestedRefreshMsg = EmaFactory.createUpdateMsg();
nestedRefreshMsg.payload(nestedFieldList);
PostMsg postMsg = EmaFactory.createPostMsg();
consumer.submit(postMsg.postId(1).serviceName("BSM_MM_PUB
.name("service_name").solicitAck(true).complete(true)
.payload(nestedRefreshMsg), handler);0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.8K Refinitiv Data Platform
- 622 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛