关于在回传节点内容时的注意事项

1.比方说,一个outputNode下有一个subnode:O_Downpr_Request,O_Downpr_Request下有attribute:actionType等等。做完一系列的操作,最终从页面拿值返还给inputNode时,势必要把所有的outputNode节点值copy给inputNode,[color=blue]之前要做的操作都在output节点下做,[/color][color=brown]input只要copyCorresponding就可以[/color],[color=violet]如若要对copy以后的节点做操作,只需更改相应的tab内容就可。[/color]for example:

[color=red]Zzpeczf_I01_T02_Input input = new Zzpeczf_I01_T02_Input();
input.setAction_Type(actionType);
Zzpeczf_Tab01 req = new Zzpeczf_Tab01();
IO_Downpr_RequestElement ore = wdContext.currentO_Downpr_RequestElement();[/color]
[color=blue]if(ore.getDownpaytype().equals("QJ")||ore.getDownpaytype().equals("ZJ")){
ore.setZdydj(wdContext.currentContextElement().getFieldType());
}[/color]
[color=brown]WDCopyService.copyCorresponding(ore,req);[/color]
[color=red] input.setDownpr_Request(req);[/color][color=green] // 对form的通常做法[/color]

ISearchHelpElement el =
wdContext.nodeSearchHelp().currentSearchHelpElement();
String description = el.getDescription();
[color=violet]req.setZlsch(el.getZlsch());[/color]
List descList = DescriptionUtils.setDescription(description);
for (int i = 0; i < descList.size(); i++) {
Zzpeczf_Tab00 comment = new Zzpeczf_Tab00();
comment.setTextline(descList.get(i).toString());
input.addDownpr_Comment(comment); [color=green]// 对表操作的通常做法add[/color]
}
[color=green]// 下面是input的执行[/color]
StringBuffer buf = new StringBuffer();
try {
input.execute();
Zzpeczf_I01_T02_Output output = input.getOutput();
List list = output.getReturn();
boolean res = MessageUtils.checkReturn(list, buf);
//wdContext.nodeZzpeczf_I01_T02_Output().bind(output);
if (res) {
reporter.getMessages(buf.toString());
wdThis.wdFirePlugToMain();
} else{
reporter.error(buf.toString());
}
} catch (WDDynamicRFCExecuteException e) {
reporter.error(e.toString());
}
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值