-
October 7th, 2008, 03:08 PM
#5
If i initially send(from javascript) all the names of items, it works without any prob(for the timebeing forget the username password word)
but if i try to add any item name that is not in the initial list, it is shown as undefined in the onitemupdate event(in js).. (i can dynamically remove items from the list, depending on the user)
is this relates to the listener.update in dataadapter?
public String[] getItems(String user, String id) throws ItemsException {
String group = "item1 "+ "item2 "+"item3 "+"item4 "+"item5 "+"item6";
return tokenize(group);
}
in my javascript
//var ngroup = ["item1","item2","item3","item4","item5","item6","i tem7"];
//this works fine and will subscribe only item1 to item6 and updates them correctly
var ngroup = ["items"];
var nvTable = new NonVisualTable(ngroup,nschema,"MERGE");
onItemUpdate
nvTable.onItemUpdate = function(itemIndex,update,itemName) {
alert(itemName);// this alerts "undefined" if i use ngroup = ["items"]
}
Similar Threads
-
By abhijeetgk in forum Adapter SDKs
Replies: 1
Last Post: September 28th, 2011, 10:53 AM
-
By bartol82 in forum Adapter SDKs
Replies: 1
Last Post: August 30th, 2011, 10:15 AM
-
By Otake in forum Client SDKs
Replies: 5
Last Post: December 17th, 2009, 02:15 PM
-
By nagakumaran in forum Adapter SDKs
Replies: 6
Last Post: October 16th, 2007, 02:11 PM
-
By Mone in forum Client SDKs
Replies: 2
Last Post: May 7th, 2007, 02:59 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 06:10 PM.
Bookmarks