Aras SP9前端传递参数给后端方法使用
//前端JS
var doc = top.aras.createXMLDocument(); doc.loadXML("<body/>"); doc.documentElement.setAttribute("typeId",typeIdStr); doc.documentElement.setAttribute("id",idStr); var res = inn.applyMethod("xxx",doc.xml); if(res.isError()){ alert(res.getErrorString()); }else{ var result = res.getResult(); }
Sever端
var inn = this.getInnovator(); var typeId = inn.getPropertyAttribute("body","typeId"); var id = inn.getPropertyAttribute("body","id");