您好,欢迎访问一九零五行业门户网

普元EOS6.2学习总结

文件上传: 将文件类型的转换为对象类型 数据放入到 session 中: 1.现在前一个页面的form中: input type=hiddenname=testvar value=ss scope=session/ 2. 然后在下面的页面中就可以获得到了 b:write property = testvar / eos (主要是传参数) 如: 获得
文件上传:
将文件类型的转换为对象类型
数据放入到session中:
1.      现在前一个页面的form中:
2.  然后在下面的页面中就可以获得到了b:writeproperty=testvar/>
eos(主要是传参数)
如:
   获得值:
第一种
object reqid =com.eos.web.taglib.util.xpathutil.getdatacontextroot(request,pagecontext);
  string reqid=(string)com.eos.web.taglib.util.xpathutil.getobjectbyxpath(reqid,userrequiements/requiementid);
  system.out.println(reqid  --  +reqid);
  //com.eos.web.taglib.util.xpathutil.setvalue(reid,pagecontext, reid,null);
     %>
第二种:
object processinst =com.eos.web.taglib.util.xpathutil.getdatacontextroot(request,pagecontext);
  string processinstid =string.valueof(com.eos.web.taglib.util.xpathutil.getobjectbyxpath(processinst,processinstid));
  system.out.println(reqid  --  +processinstid);
  //com.eos.web.taglib.util.xpathutil.setvalue(reid,pagecontext, reid,null);
  %>
    (jsp脚本和)
可以传值:、
iframename=menutreeframealign=topscrolling=autostyle=width:100%;height:100%
    src=com.sinosoft.userrequiements.mywork.feedbackmywork.flow?_eosflowaction=showflow&processinstid=b:writeproperty=userrequiements/processinstid/>style=width:100%;height: 100%frameborder=0>
    iframe>
在逻辑流获得用户登录的信息:(eos内置)
页面流获得用户的信息:
解决:分页和重置按钮问题:
查询的:
页面流:
iframe页面:
分页:
核心代码:
tablealign=centerborder=0cellpadding=0cellspacing=0width=100%>
     tr>
         td>
         iframename=queryframeid=queryframesrc=  marginwidth=0marginheight=0 frameborder=0scrolling=nowidth=100%onload=autoresize();>iframe>
         td>
     tr>
table>
scripttype=text/javascript>
 document.form1.submit();
    function autoresize(){
     try{
         document.all[queryframe].style.height=queryframe.document.body.scrollheight;
     }catch(e){}
}
script>
可以不用写java片段
直接用@就可以
其它类似信息

推荐信息