|
楼主 |
发表于 2021-1-28 12:18:50
|
显示全部楼层
一直在试参数还是没试出来,我看给的例子里的参数也不是所有的参数都用到了,但是也行。麻烦再帮我看一下吧
我现在的代码是这样的,报错还是执行Action出错, wrong number of arguments。我的代码如下,我的action外面的参数String concept,String select,String from,Map variables,String dataModel,String fnMode这几个。已经把原来的删了不少了。
public static Table newAction_0(String concept,String select,String from,Map variables,String dataModel,String fnModel){
Table t = KSQL.select("select ER_TP.* from ER_TP ER_TP", null, "/ERP/WP/data", null);
Iterator<Row> it = t.iterator();
while (it.hasNext()) {
Row r = it.next();
try {
String url = "/UI2/system/components/justep/blob/server/download.j"
+ "?process=/ERP/WP/process/tupian/tupianProcess" //流程名称
+ "&activity=mainActivity" //环节名称
+ "&action=blobDownloadAction" //调用的Action
+ "&blobDataModel=/ERP/WP/data" //数据模块目录
+ "&blobConcept=ER_TP" //概念名
+ "&blobRelation=fTP" //关系名
+ "&blobConceptValue="
+ r.getValue("ER_TP")
+"&$query-version="
+ com.justep.system.util.CommonUtils.createGUID();
r.setString("sHomePlace", addBsessionid(url)); //将url存入table对象
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return t;
}
protected static String addBsessionid(String url) {
String bessionid = ActionUtils.getRequestContext().getSessionContext().getSessionID();
if (url.contains("?")) {
return url + "&bsessionid=" + bessionid;
} else {
return url + "?bsessionid=" + bessionid;
}
}
} |
|