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");

 

posted @ 2018-04-09 14:49  明年六月  阅读(326)  评论(0编辑  收藏  举报