Skip to main content

How to access the datas in the dojo.etable

1 reply [Last post]
yummychen
Offline
Joined: 2008-04-07
Points: 0

Hi :

How can i access datas of the dojo.etable ?
I want to use the etable to do some crud operations, but i can't get the value in the tables.
Because i got an object via the args.value method.
Do you know how to get the value in the cell?

jmaki.listeners = {
etableListener : function(args) {
alert(args.targetId);
alert(args.value);
}
}

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gmurray71
Offline
Joined: 2003-07-31
Points: 0

The following code sample will display the data

// turn on debug
jmaki.debug = true;

jmaki.subscribe("/dojo/etable/onCellUpdate", function(data) {
jmaki.log(jmaki.insepect(data));
});

What comes back is in the format:

{widgetId : wargs.uuid, topic : topic, type : 'onCellEdit', column:column, row: row, value: value}

-Greg