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.
1
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.
1 -
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.
2 -
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
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛