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

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

[常见问题] 网格视图如何删除按钮

[复制链接]
lingling17 发表于 2021-4-20 18:56:51 | 显示全部楼层 |阅读模式
  1. // -------------网格视图删除按钮脚本
  2. (function(){
  3.         println("进入操作");
  4.         var selectId = getParameter("_selects");
  5.         println("selectId---->"+selectId);
  6.         var arr = splitText(selectId, ";");
  7.         if (selectId != null || selectId.length > 0){
  8.                  for(var i=0;i<arr.length;i++){
  9.                                 var process=getDocumentProcess();
  10.                                 var fd=findDocument(arr[i]);
  11.                                 var docid=fd.getId();//获取字段值
  12.                                 var sql = "select * from tlk_decisionDetails where id ='"+docid+"'";
  13.                                 println("sql---->"+sql);
  14.                                 var t_count = countBySQL(sql);
  15.                                 if(t_count>0){            
  16.                                         process.doRemove(fd);        
  17.                                 }              
  18.                         }
  19.                 }
  20. })();
复制代码

本版积分规则

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

GMT+8, 2026-8-12 04:01

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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