Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    May 2010
    Location
    Milano
    Posts
    14

    Question HTML,js client: Get changing item name

    I am using the standard client sdk in an HTML page. I get the ongoing visual update by using grid/addListener/onVisualUpdate.
    Than I want to iterate through the changing items (fields) by using a function called by forEachChangedField and that's OK.
    But how can I get the NAME of the field being changed?

  2. #2
    Administrator
    Join Date
    Jul 2006
    Location
    Milan
    Posts
    1,013
    The callback called by forEachChangedField receives the field information in its arguments.
    Do you mean that the "fieldName" argument is null?
    This means that the field names were not supplied by the application in the subscription specification.
    In other words, the setFieldSchema method was used on the Subscription object, to supply a "schema name" to be mapped on a set of fields on the server side.
    In this case, only the numeric "fieldPos" argument is supplied and it is assumed that the client application also knows the mapping.
    Do you see anything different?

  3. #3
    Member
    Join Date
    May 2010
    Location
    Milano
    Posts
    14
    Quote Originally Posted by DarioCrivelli View Post
    The callback called by forEachChangedField receives the field information in its arguments.
    Do you mean that the "fieldName" argument is null?
    This means that the field names were not supplied by the application in the subscription specification.
    In other words, the setFieldSchema method was used on the Subscription object, to supply a "schema name" to be mapped on a set of fields on the server side.
    In this case, only the numeric "fieldPos" argument is supplied and it is assumed that the client application also knows the mapping.
    Do you see anything different?
    OK. Following your suggestion now it works.

 

 

Similar Threads

  1. changing Listening TCP port
    By engcoder in forum Adapter SDKs
    Replies: 3
    Last Post: November 13th, 2014, 10:00 AM
  2. Replies: 4
    Last Post: September 24th, 2013, 10:28 AM
  3. Replies: 2
    Last Post: December 24th, 2010, 08:51 AM
  4. Changing the row BackgroundColor ?
    By mohamida in forum Client SDKs
    Replies: 1
    Last Post: June 14th, 2010, 10:23 AM
  5. Changing subscribed topic
    By simonef in forum Client SDKs
    Replies: 1
    Last Post: June 10th, 2008, 02:47 PM

Tags for this Thread

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 04:33 PM.