Results 1 to 10 of 14

Hybrid View

  1. #1
    Member
    Join Date
    Oct 2007
    Location
    Markham
    Posts
    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

  2. #2
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    There are two conditions to let you access data with item/field names:
    1. 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.
    2. 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:

  3. #3
    Member
    Join Date
    Oct 2007
    Location
    Markham
    Posts
    4
    Hurray! Thanks Mone, that works much better.

  4. #4
    Member
    Join Date
    Aug 2010
    Location
    ny
    Posts
    1

    Post

    Thanks for you information i newly join and so nice post I agree with you. Your complement is so informative…

  5. #5
    Senior Member
    Join Date
    Jul 2009
    Location
    not
    Posts
    41
    Hi everybody.

    is there a way, instead of having this:
    Code:
    var group = "item1 item16 item3";
    i get the my group from my DataProvider ?
    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...)

  6. #6
    Power Member
    Join Date
    Jul 2006
    Location
    Cesano Maderno, Italy
    Posts
    784
    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

  7. #7
    Senior Member
    Join Date
    Jul 2009
    Location
    not
    Posts
    41
    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)

 

 

Similar Threads

  1. ASP.NET Web Client Tutorial
    By rmusco in forum Client SDKs
    Replies: 9
    Last Post: February 1st, 2011, 01:40 PM
  2. simple multiple records from database
    By smugford in forum General
    Replies: 8
    Last Post: January 11th, 2011, 09:20 AM
  3. Simple Web Server
    By Isanderthul in forum General
    Replies: 1
    Last Post: July 15th, 2009, 09:05 AM
  4. New Tutorial Available
    By Alessandro in forum Adapter SDKs
    Replies: 2
    Last Post: October 30th, 2008, 02:10 PM
  5. Simple Grid Demo Released
    By Alessandro in forum Client SDKs
    Replies: 0
    Last Post: November 24th, 2006, 03:49 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT +1. The time now is 11:12 PM.