-
September 28th, 2020, 02:58 PM
#1
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?
-
September 28th, 2020, 04:09 PM
#2
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?
-
September 29th, 2020, 09:24 AM
#3
Originally Posted by
DarioCrivelli
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
-
By engcoder in forum Adapter SDKs
Replies: 3
Last Post: November 13th, 2014, 09:00 AM
-
By rvkvino in forum Client SDKs
Replies: 4
Last Post: September 24th, 2013, 09:28 AM
-
By hungtt in forum Adapter SDKs
Replies: 2
Last Post: December 24th, 2010, 07:51 AM
-
By mohamida in forum Client SDKs
Replies: 1
Last Post: June 14th, 2010, 09:23 AM
-
By simonef in forum Client SDKs
Replies: 1
Last Post: June 10th, 2008, 01:47 PM
Tags for this Thread
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 04:13 AM.
Bookmarks