天翎MyApps技术社区 - 低代码平台 | 流程管理系统 | BPM软件

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

[微信端] 手机微信端, 在视图跳转到其他新建表单页面,视图打开跳转链接,结果打开记录详情.

[复制链接]
karrman 发表于 2016-12-15 17:40:29 | 显示全部楼层 |阅读模式
Q:手机微信端, 在视图跳转到其他新建表单页面
A:在视图-列-脚本中,参考如下脚本

  1. //查看表单信息
  2. //查看表单信息
  3. (function(){
  4.         var doc = getCurrentDocument();
  5.         var formid ="11e6-200f-4d8cf3eb-8b9d-f1efc01c93f8";
  6.         var application = getApplication();
  7.         var docid =doc.getId();
  8.         var url = getContextPath() + "/portal/dynaform/document/newWithPermission.action?_formid="+formid+"&_isJump=1&application="+application+"&budget="+docid;
  9.         var user = getWebUser();
  10.         if(user.getEquipment()==1){
  11.                 url = getContextPath() + "/portal/phone/main.jsp?application="+application+"&jumpToUrl=" + encodeURIComponent(url);
  12.         }
  13.        
  14.         println("_url-->" + url);
  15.         var rnt = "<a style='background-color:#ff8400;border:0px;color:white;height: 31px;width: 100px' onMouseOver="this.style.backgroundColor='blue';this.style.cursor='hand';this.style.color='#fff';"  onMouseOut="this.style.backgroundColor='#ff8400';this.style.color='#fff';"  onclick="event.stopPropagation();OBPM.dialog.show({width:1200,height:500,url:'" + url + "',title:'新建表单',maximization:false,maximized:true,position:'center'});;">新建单据</a>";
  16. return rnt;
  17. })();
复制代码

5.gif

本版积分规则

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

GMT+8, 2026-8-12 03:56

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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