-
January 10th, 2008, 04:34 PM
#1
How to specify the Adapter mode
It is just a matter of sending the key/value of (COMMAND, ADD/UPDATE) in the 'Update by MAP' protocol?
I did this in a Java adapter but not sure how to do this in ARI.
Thanks,
Kal
-
January 11th, 2008, 09:00 AM
#2
Yes; if you are providing data for an item to be subscribed in COMMAND mode, then your "UD3" messages should contain
a string field named "command", valued with one out of "ADD", "UPDATE" and "DELETE"
and a string field named "key", valued with the current key,
as well as the other fields.
Dario
-
January 14th, 2008, 06:40 PM
#3
-
January 14th, 2008, 10:06 PM
#4
Dario,
Just to verify, is this a good format? This is for a view with 2 rows. I am trying add key1 and key2 rows.
<timestamp>|UD3|S|<item name>|S|<ID>|B|<is snapshot>|S|key|S|key1|S|command|S|ADD|S|<field 1>|S|<value 1>|<field 2>|S|<value 2>|S|key|S|key2|S|command|S|ADD|S|<field 1>|S|<value 1>|<field 2>|S|<value 2>|
Thanks
-Kal
-
January 15th, 2008, 08:40 AM
#5
Kal,
You need two distinct update lines for the two keys:
<timestamp>|UD3|S|<item name>|S|<ID>|B|<is snapshot>|S|key|S|key1|S|command|S|ADD|S|<field 1>|S|<value 1>|<field 2>|S|<value 2>
<timestamp>|UD3|S|<item name>|S|<ID>|B|<is snapshot>|S|key|S|key2|S|command|S|ADD|S|<field 1>|S|<value 1>|<field 2>|S|<value 2>
This also holds when you are providing the initial snapshot.
I have also removed the trailing '|' separator, though it is probably tolerated by the Proxy Adapter.
Dario
-
January 15th, 2008, 02:15 PM
#6
Dario,
In case of a portfolio case, we don't know the number of entries. How can we add/remove multiple rows? I consider the item as a group of say, securities in a portfolio.
Thanks
Kal
Similar Threads
-
By Otake in forum Adapter SDKs
Replies: 5
Last Post: October 18th, 2009, 07:09 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
All times are GMT +1. The time now is 08:59 PM.
Bookmarks