Hi Mone,
Yes, i created my own MetadataProvider. How would that affect things?
I create by table thus:
var newTable = new NonVisualTable("test6", "value time index", "DISTINCT");
Thanks,
Matthew
Hi Mone,
Yes, i created my own MetadataProvider. How would that affect things?
I create by table thus:
var newTable = new NonVisualTable("test6", "value time index", "DISTINCT");
Thanks,
Matthew
There are two conditions to let you access data with item/field names:
- You must create the Table object using as group/schema an array of strings. Each string should be the name of an item/field.
The web client will concatenate the strings using a space as separator.- The getItems /getSchema method of the MetadataProvider implementation must split the received id/schema on the space character and handle each token as an item/field name.
This is the behavior of the LiteralBasedProvider.
You should create your table as below:
Hurray! Thanks Mone, that works much better.
Thanks for you information i newly join and so nice post I agree with you. Your complement is so informative…
Hi everybody.
is there a way, instead of having this:
i get the my group from my DataProvider ?Code:var group = "item1 item16 item3";
because i have so many items that i will display, that my js file (containing the items i wil display) gets bigger.
and also that group of items is variable (can be 10 items to display today, 20 items tomorrow...)
Hi,
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.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).
HTH
Sorry, but I didin't understand what you said
espacially, what did you mean byand, 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)but you may use any string as group and translate in as many items as you want on the adapter
Bookmarks