Final working function is:
model.inventory.onAddRow = function(row) {
var pipelineUtil = cocoon.createObject(Packages.org.apache.cocoon.components.flow.util.PipelineUtil);
var document = pipelineUtil.processToDOM("nde-load-InventoryItem?id=" + model.inventoryId.value, null);
var rootNode = document.getFirstChild();
var child = rootNode.getFirstChild();
do {
if (child.getNodeName().equals("description")) {
print("found description: " + child.getFirstChild().getNodeValue());
row.description.value =child.getFirstChild().getNodeValue();
break;
}
child = child.getNextSibling();
} while (child);
row.location.value = "<Location>"; }
JD
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
