-
October 15th, 2007, 05:57 PM
#1
Hi,
to let the web client recognize the item and field names just follow approach 2 as explained.
Check approach2.html in the zip file to see the complete source code.
-
October 15th, 2007, 06:12 PM
#2
Thanks, but i tried that, and never got any data. In my DataAdapter i am calling the smart update with a Map object as the fields, and using field names such as "value", "time", "type", and "index". But in the JS the method calls getNewValue(1), and getNewValue("1") work (as as well for other indices), but the calls getNewValue("value"), getNewValue("time"), etc do not.
I had assumed that leaving out the field names was maybe some kind of bandwidth performance setting. Might this be the case or am i doing something wrong?
Best regards,
Matthew
-
October 15th, 2007, 06:35 PM
#3
Hi,
Are you using your own MetadataProvider or a given one (LiteralBasedProvider or similar is needed)?
Have you created your table using as schema an array of field names?
About bandwidth note that item/field names never go through the stream.
PS: I noticed that this tutorial use the loadEngineMinimal method. Please upgrade to the new createEngine method as loadEngineMinimal is a deprecated method (I will update this tutorial as soon as possible)
PPS: Updated!
-
October 22nd, 2007, 08:07 PM
#4
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
-
October 23rd, 2007, 09:05 AM
#5
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:
-
October 23rd, 2007, 03:22 PM
#6
Hurray! Thanks Mone, that works much better.
-
August 27th, 2010, 06:09 AM
#7
Thanks for you information i newly join and so nice post I agree with you. Your complement is so informative…
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 03:54 AM.
Bookmarks