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

[其他] Bug #12602 视图选择框增加按钮

[复制链接]
南宁讯驰 发表于 2014-7-29 09:54:44 | 显示全部楼层 |阅读模式
本帖最后由 nice 于 2014-7-30 13:04 编辑

我想在视图选择框中增加一列按钮,点击按钮后,传递点击行的数值到文本框,该如何实现呢?
nice 发表于 2014-7-29 10:50:57 | 显示全部楼层
能给个联系方式!问题不是太理解!

如果视图传参到表单!

在你引用的视图中,添加按钮,然后使用session传参!
回复

使用道具 举报

 楼主| 南宁讯驰 发表于 2014-7-30 09:13:18 | 显示全部楼层
帮忙看下这段代码有错吗,会出错?
//获取当前域
var contextPath = getContextPath();  
//获取记录id
var id = getId();
//表单id
var  formId =getCurrentDocument().getFormid();
//获取应用id
var applicationId = getApplication();
//获取序号、容量
var xh=getItemValueAsDate("序号");
var rl=getItemValueAsDate("容量");
//按钮显示文字
var buttontext = "增加";
//拼接成url
contextPath + "/branch/uploads/billflow/"+formId+".jpg?tempid="+id;
var texts = contextPath + "/portalnaform/documentiew.action?_docid="+id+"&_formid="+formId+"&application="+applicationId+xh+rl ;
//拼接成button
var rtns = "<input type='button' value='"+buttontext+"' onclick='OBPM.dialog.show({value:\""+texts+"\",args:{j:1},close: function(rtn) {clearInterval(it);}});'/>";

var request = $WEB.getParamsTable().getHttpRequest();
request.getSession().setAttribute("xuhao",xh);
request.getSession().setAttribute("rongliang",rl);
rtns;

错误
RI(MMI}UQ`X}VMDO%7Q1T3Q.jpg
回复

使用道具 举报

nice 发表于 2014-7-30 13:01:11 | 显示全部楼层
使用视图列的 操作 ->脚本  使用session传参可实现.

但是,列操作!如果放在视图选择框中,便会消失.

普通视图如下:
L2TE]156I}N}1M6}{P9J.jpg
视图选择框:
7(AP2@_V~H8M5KIG[O44V9H.jpg
回复

使用道具 举报

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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