-
May 20th, 2016, 09:38 AM
#2
Hi, In general, the use of a subscription mode when subscribing to an item involves two components:
- On the client side, the subscription request must specify the mode.
- On the server side, the Metadata Adapter must allow the mode for that item.
I suppose that the latter is the missing step.
In general, the Metadata Adapter gives allowance to a mode through two callbacks: modeMayBeAllowed and isModeAllowed.
As far as the Basic Demo is concerned, you don't need to modify the Metadata Adapter, but only its configuration, which is in the adapters.xml file.
You should find lines like the following:
<param name="item_family_1">item.*</param>
<param name="modes_for_item_family_1">MERGE</param>
and you can specify the desired mode (i.e. DISTINCT) there.
Note that this will take effect for all items; if the change should regard one item only, a fine-tuning of this configuration would be needed.
Consider that using a mode for an item is not a free choice, because each mode may put restrictions on the updates that the Data Adapter should provide.
In this case, you shouldn't have any problem; but, for instance, you cannot set COMMAND, where the updates are supposed to provide the special "key" and "command" fields.
Similar Threads
-
By centrineon in forum General
Replies: 1
Last Post: April 30th, 2015, 08:51 AM
-
By sheik in forum Adapter SDKs
Replies: 3
Last Post: May 8th, 2013, 09:35 AM
-
By lisicnu in forum Adapter SDKs
Replies: 3
Last Post: December 8th, 2011, 02:41 AM
-
By hungtt in forum General
Replies: 1
Last Post: January 4th, 2011, 12:07 PM
-
By gmccone in forum Client SDKs
Replies: 1
Last Post: March 30th, 2007, 10:41 AM
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 04:18 AM.
Bookmarks