找回密码
 注册成为天翎用户
查看: 1581|回复: 9

[已解决] 包含元素已弹出框的形式弹出,如何实现?

  [复制链接]
南宁讯驰 发表于 2014-8-4 10:20:15 | 显示全部楼层 |阅读模式
本帖最后由 nice 于 2014-8-4 18:23 编辑

包含元素已弹出框的形式弹出,如何实现?
nice 发表于 2014-8-4 11:46:12 | 显示全部楼层
用户想做到如下需求:

CDT{9J4MI8G(OU2KSJNB@V7.jpg

经过沟通确认,给用户一个相应对策的帖子.
http://www.teemlink.com/bbs/view ... D%B5%A5%CC%F8%D7%AA
回复

使用道具 举报

 楼主| 南宁讯驰 发表于 2014-8-4 14:25:44 | 显示全部楼层
出错了,不知道那里写错了

var xbh=getItemValueAsString("检查项1编号");//需要传的参数
println("------"+xbh);//这里能获取
var url="http://localhost:8080/obpm/portal/cool/main.jsp?returnUrl=&application=11e4-10a0-a9c5ed72-8680-17508162ca59";//这里是目标表单的地址
url+=xbh;
url;
println("------"+url); //能打印出来

错误
A93[
回复

使用道具 举报

nice 发表于 2014-8-4 14:30:10 | 显示全部楼层
本帖最后由 nice 于 2014-8-4 14:33 编辑

晕,表单地址,没有表单id,深坑!

你参考这个 给到对应的参数!


//获取当前域
var contextPath = getContextPath();  
//获取记录id
var id = getId();
//表单id
var  formId =getCurrentDocument().getFormid();
//获取应用id
var applicationId = getApplication();
//弹出层标题
var titletext = getId();
//按钮显示文字
var buttontext = "打开";
//弹出层大小
var width = "500";
var height = "500";
//拼接成url
contextPath + "/branch/uploads/billflow/"+formId+".jpg?tempid="+id;
var url = contextPath + "/portal/dynaform/document/view.action?_docid="+id+"&_formid="+formId+"&application="+applicationId ;
//拼接成button
var rtns = "<input type='button' value='"+buttontext+"' onclick='OBPM.dialog.show({width: "+width+",height: "+height +",url:\""+url+"\",args:{j:1},title : \""+titletext+"\",close: function(rtn) {clearInterval(it);}});'/>";
rtns;
回复

使用道具 举报

 楼主| 南宁讯驰 发表于 2014-8-4 15:11:18 | 显示全部楼层
获取当前域是什么?是这样写吗?


//获取当前域
var contextPath = getContextPath();  
//获取记录id
var id = getId("11e4-1a26-fa57e103-b3e3-63020818a41d");
//表单id
var  formId =getCurrentDocument().getFormid("11e4-17c5-3e2314c3-baa3-b517577bfa36");
//获取应用id
var applicationId = getApplication("11e4-10a0-a9c5ed72-8680-17508162ca59");
//弹出层标题
var titletext = getId("11e4-1a26-fa57e103-b3e3-63020818a41d");
//按钮显示文字
var buttontext = "打开";
//弹出层大小
var width = "500";
var height = "500";
//拼接成url
contextPath + "/branch/uploads/billflow/"+formId+".jpg?tempid="+id;
var url = contextPath + "/portal/dynaform/document/view.action?_docid="+id+"&_formid="+formId+"&application="+applicationId ;
//拼接成button
var rtns = "<input type='button' value='"+buttontext+"' onclick='OBPM.dialog.show({width: "+width+",height: "+height +",url:\""+url+"\",args:{j:1},title : \""+titletext+"\",close: function(rtn) {clearInterval(it);}});'/>";
rtns;
回复

使用道具 举报

nice 发表于 2014-8-4 15:15:56 | 显示全部楼层


var  formId =getCurrentDocument().getFormid();
换成
var  formId ="11e4-17c5-3e2314c3-baa3-b517577bfa36";
var titletext = "表单";

然后看看你的那个表单地址 对应添加!


这样应该就可以了!
回复

使用道具 举报

 楼主| 南宁讯驰 发表于 2014-8-4 15:36:53 | 显示全部楼层
要疯了
http://localhost:8080/obpm/portal/dynaform/activity/action.action?_activityid=11e4-1a26-7b7ee32e-b3e3-63020818a41d这是我的表单地址,拼接成url没看明白,是怎么拼接的呀
回复

使用道具 举报

nice 发表于 2014-8-4 16:08:36 | 显示全部楼层
http://localhost:8080/obpm/portal/dynaform/document/newWithPermission.action?_formid=11e4-17c5-3e2314c3-baa3-b517577bfa36&_isJump=1&application=11e4-10a0-a9c5ed72-8680-17508162ca59&_resourceid=11e4-1bae-3a6ba4b0-9e1e-ed4d5f7e0d47&_backURL=../../../portal/cool/closeTab.jsp

用户使用视图新建的表单!所以地址一直使用错误的!

帮着查看了!叫用户自己继续验证!
回复

使用道具 举报

 楼主| 南宁讯驰 发表于 2014-8-4 16:11:20 | 显示全部楼层
终于搞定了,原来表单目标地址没找对
回复

使用道具 举报

nice 发表于 2014-8-4 16:14:11 | 显示全部楼层
本帖最后由 nice 于 2014-8-4 18:23 编辑

谢谢回帖!
回复

使用道具 举报

本版积分规则

手机版|天翎MyApps技术社区 ( 粤ICP备11093750号 )

GMT+8, 2026-8-13 21:45

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表