-
September 9th, 2010, 10:08 AM
#11
Hi,
Those variables will be two strings. For this demo those will be space-separated lists of items and fields. By the way the Client doesn't know about this and will interpret them as a group and a schema name (i.e. the Client doesn't know how many items/fields we are subscribing to).
on the server side the getItems method of MetadataProvider translates the received string in a list of items. In this example we split the string on the space character, but you may use any string as group and translate in as many items as you want on the metadataadapter.
HTH
-
September 9th, 2010, 11:06 AM
#12
Sorry, but I didin't understand what you said
espacially, what did you mean by
but you may use any string as group and translate in as many items as you want on the adapter
and, if i choose to make this, will i have to make changes in the adapter, or the metadataadapter ? (because you talked about the two of them)
-
September 9th, 2010, 02:43 PM
#13
sorry for saying adapter at the end of my previous post, now it's correct.
What I mean is that it is the getItems method of the metadata adapter (see the MetadataProvider interface) that translates the group name into a list of items.
The LiteralBasedProvider is an implementation of MetadataProvider that splits the group name on the space character and use the results as items.
The FileBasedProvider is an implementation of MetadataProvider that appends ".items" to the group name and searches for a file with that name. It then reads a list of items from that file
So, you can implement your own getItems on your own MetadataProvider implementation with your own logic
-
September 9th, 2010, 05:51 PM
#14
hmmm. i did understand what you're saying.
i think that is difficult for me (because i'm still a novice) to implement my own MetadataProvider, that's why i prefer using the FileBasedProvider, so that the size of my javascript won't be that big.i'll try that, and i hope i will succeed
thank you again Mone.
Similar Threads
-
By rmusco in forum Client SDKs
Replies: 9
Last Post: February 1st, 2011, 01:40 PM
-
By smugford in forum General
Replies: 8
Last Post: January 11th, 2011, 09:20 AM
-
By Isanderthul in forum General
Replies: 1
Last Post: July 15th, 2009, 09:05 AM
-
By Alessandro in forum Adapter SDKs
Replies: 2
Last Post: October 30th, 2008, 02:10 PM
-
By Alessandro in forum Client SDKs
Replies: 0
Last Post: November 24th, 2006, 03:49 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 10:40 PM.
Bookmarks