本帖最后由 klein 于 2015-8-3 15:11 编辑
根据楼主反馈,问题得到解决,主要代码如下供参考!
- (function(){
- var doc =getCurrentDocument();
- var childs= doc.getChilds("TimeOffItems");//子文档集合
- var value = "";
- //循环遍历子文档集合
- if (childs != null && childs.size()>0){
- for(var it = childs.iterator();it.hasNext();){
- var subdoc = it.next();//获取子文档对象
- value = subdoc.getItemValueAsDate("to_firstdate");
- }
- }
- return value;
- })();
复制代码 |