Is there a way to return the type of the node inserted with the dataprocessor? I tried the following two versions, but their userdata/type is not recognized.
— version 1:
<?xml version="1.0" encoding="UTF-8"?>
myType
— version 2:
<?xml version="1.0" encoding="UTF-8"?>
myType
The dataprocessor doesn’t update any info except ID, but you can attach custom code which do any additional work
mydataproc.defineAction(“insert”,function(node){
//this code will be called after each insert callback
var type=node.getAttribute(“myType”);
if (type)
mygrid.setUserData(node.getAttribute(“sid”),“type”,type);
return true;
})