起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: cqu666

[结贴] 找不到变量对应的值

[复制链接]

1

主题

8

帖子

12

积分

新手上路

Rank: 1

积分
12
QQ
 楼主| 发表于 2017-9-12 17:35:47 | 显示全部楼层
jishuang 发表于 2017-9-12 17:32
report组件上的属性

QQ截图20170912173433.png
是false没错……、

回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36178
发表于 2017-9-12 17:38:57 | 显示全部楼层
那就应该可以,把action的定义和.w js文件发一下看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

1

主题

8

帖子

12

积分

新手上路

Rank: 1

积分
12
QQ
 楼主| 发表于 2017-9-12 17:44:46 | 显示全部楼层
jishuang 发表于 2017-9-12 17:38
那就应该可以,把action的定义和.w js文件发一下看看

action:

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?><model xmlns="http://www.justep.com/model"><action name="queryV_SZ_HKYYPJZBAction" procedure="bizQueryProcedure"><permission name="range" type="List"/>
  2. <private name="concept" type="String" value="V_SZ_HKYYPJZB"/>
  3. <private name="select" type="String" value="V_SZ_HKYYPJZB.*"/>
  4. <private name="from" type="String" value="V_SZ_HKYYPJZB V_SZ_HKYYPJZB"/>
  5. <private name="aggregate" type="String"/>
  6. <private name="dataModel" type="String" value="/nsbd_zjp/sz_hkyypjzb/data"/>
  7. <private name="fnModel" type="String"/>
  8. <protected name="condition" type="String"/>
  9. <public name="distinct" type="Boolean" value="false"/>
  10. <public name="idColumn" type="String" value="V_SZ_HKYYPJZB"/>
  11. <public name="filter" type="String"/>
  12. <public name="limit" type="Integer"/>
  13. <public name="offset" type="Integer"/>
  14. <public name="columns" type="String"/>
  15. <public name="orderBy" type="String"/>
  16. <public name="aggregateColumns" type="String"/>
  17. <public name="variables" type="Map"/>
  18. </action>
  19. <action name="saveV_SZ_HKYYPJZBAction" procedure="bizSaveProcedure"><permission name="insertRange" type="List"/>
  20. <permission name="deleteRange" type="List"/>
  21. <permission name="updateRange" type="List"/>
  22. <private name="concept" type="String" value="V_SZ_HKYYPJZB"/>
  23. <private name="dataModel" type="String" value="/nsbd_zjp/sz_hkyypjzb/data"/>
  24. <private name="fnModel" type="String"/>
  25. <protected name="readOnly" type="String"/>
  26. <protected name="notNull" type="String"/>
  27. <public name="table" required="true" type="Table"/>
  28. </action>
  29. <action name="createV_SZ_HKYYPJZBAction" procedure="bizCreateProcedure"><private name="concept" type="String" value="V_SZ_HKYYPJZB"/>
  30. <private name="fnModel" type="String"/>
  31. <public name="table" required="true" type="Table"/>
  32. <public name="defaultValues" type="Map"/>
  33. </action>
  34. <action name="selecthkyypjzb" global="false" procedure="ksqlQueryProcedure"><private name="ksql" type="String" value="select V_SZ_HKYYPJZB.HPMC as HPMC,V_SZ_HKYYPJZB.CZMC as CZMC,V_SZ_HKYYPJZB.XMMC as XMMC,V_SZ_HKYYPJZB.GXSJ as GXSJ,V_SZ_HKYYPJZB.NDZ as NDZ,V_SZ_HKYYPJZB.FFZ as FFZ,V_SZ_HKYYPJZB.YYZTZS as YYZTZS,V_SZ_HKYYPJZB.YYZTFJ as YYZTFJ from V_SZ_HKYYPJZB V_SZ_HKYYPJZB where V_SZ_HKYYPJZB.GXSJ  &gt;=  stringToDate(:start)  and  V_SZ_HKYYPJZB.GXSJ  &lt;=  stringToDate(:end)  and  V_SZ_HKYYPJZB.CZMC =:czdm"></private>
  35. <public name="variables" type="Map"></public>
  36. <private name="dataModel" type="String" value="/nsbd_zjp/sz_hkyypjzb/data"></private>
  37. <public name="fnModel" type="String"></public>
  38. </action>
  39. </model>
复制代码


.w:
  1. <?xml version="1.0" encoding="UTF-8"?>

  2. <div xmlns="http://www.w3.org/1999/xhtml" xid="window" class="window" component="$UI/system/components/justep/window/window" design="device:pc">  
  3.   <div component="$UI/system/components/justep/model/model" xid="model"><div component="$UI/system/components/justep/reportData/reportData" xid="reportData1">
  4.    <source xid="default1"><action xid="default2" name="selectHkyypjzb" type="ksqlaction"></action></source></div></div>
  5.     <div component="$UI/system/components/justep/toolBar/toolBar" class="x-toolbar form-inline x-toolbar-spliter" xid="toolBar1">
  6.   <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-left" onClick="{'operation':'report1.preview'}" xid="button2">
  7.    <i xid="i2"></i>
  8.    <span xid="span2"></span></a>
  9.   <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-left" onClick="{'operation':'report1.print'}" xid="button3">
  10.    <i xid="i3"></i>
  11.    <span xid="span3"></span></a>
  12.   <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-left" onClick="{'operation':'report1.exportPDF'}" xid="button4">
  13.    <i xid="i4"></i>
  14.    <span xid="span4"></span></a>
  15.   <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-left" onClick="{'operation':'report1.exportWord'}" xid="button5">
  16.    <i xid="i5"></i>
  17.    <span xid="span5"></span></a>
  18.   <a component="$UI/system/components/justep/button/button" class="btn btn-link btn-icon-left" onClick="{'operation':'report1.exportExcel'}" xid="button6">
  19.    <i xid="i6"></i>
  20.    <span xid="span6"></span></a></div>
  21.    
  22. <div component="$UI/system/components/justep/report/report" src="new_xls.xml" reportName="report" autoLoad="false" dataList="reportData1" class="x-report x-scroll-h" xid="report1"></div></div>
复制代码


js:
  1. define(function(require){
  2.         var $ = require("jquery");
  3.         var justep = require("$UI/system/lib/justep");
  4.         var a1;
  5.         var a2;
  6.         var a3;
  7.         var Model = function(){
  8.                 this.callParent();
  9.                 a1=this.getContext().getRequestParameter("start");
  10.                 a2=this.getContext().getRequestParameter("end");
  11.                 a3=this.getContext().getRequestParameter("czmc");
  12.         };
  13.         Model.prototype.modelLoad = function(event){       
  14.                 this.comp('reportData1').setStringVar("start" ,a1);
  15.                 this.comp('reportData1').setStringVar("end" , a2);
  16.                 this.comp('reportData1').setStringVar("czmc" , a3);
  17.                 this.comp('report1').refresh();
  18.         };
  19.         return Model;
  20. });
复制代码
回复 支持 反对

使用道具 举报

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
36178
发表于 2017-9-13 09:42:33 | 显示全部楼层
把tomcat重启看看,看设置没问题
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2025-6-25 09:42 , Processed in 0.054368 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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