question

Upvote
Accepted
16 0 0 3

Invalid characters in partial page contributions

Hi
I am trying to contribute partial page updates. I have successfully sent the contribution and received an ACK. But when I look at the page, it has extra characters which appear to be the position value that I sent in the PostMsg.


Here is the Post I sent with 0 encoded between 0x9B and 0x60 as required.

FieldEntry fid="322" name="ROW80_8" dataType="Rmtes" value="

0` 07:23:26"

Here is the display

test-page.png


Can you please let me know what could be wrong here.

Thanks

elektronelektron-sdkema-apielektron-message-apic++contributionspage
test-page.png (3.3 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.

1 Answer

Upvotes
Accepted
52.9k 136 44 63

@pavr

You can try <0x1B><0x5B>n<0x60> instead.

1662517738988.png

EmaBuffer emaBuffer;
emaBuffer.clear();        
emaBuffer.append(0x1B);
emaBuffer.append(0x5B);
emaBuffer.append('0');
emaBuffer.append(0x60);
emaBuffer.append("          Hello World", 21);
...
 _pOmmConsumer->submit( PostMsg()
   .streamId(_postStreamID)
   .postId( _postID ).domainType(MMT_MARKET_PRICE)
   .solicitAck( true ).complete()
   .payload(UpdateMsg().streamId(_postStreamID)
   .name("<RIC>")
   .payload( FieldList()
   .addRmtes(329, emaBuffer )
   .complete() ))
   .complete(), 
   _subStreamHandle );

The trace data is:

<fieldList flags="0x8 (RSSL_FLF_HAS_STANDARD_DATA)">
     <fieldEntry fieldId="329" data="1B5B 3060 2020 2020 2020 2020 2020 4865 6C6C 6F20 576F 726C 64"/>
</fieldList>

The output from Eikon is:

1662517690314.png

I hope this will help.


1662517738988.png (78.5 KiB)
1662517690314.png (2.9 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.