首页 公司 产品 服务 案例 人才 市场与销售 下载 联系
  [Search] 搜索   [Recent Topics] 最新话题   [Members]  用户列表   [Groups] 返回首页  [Register] 注册 /  [Login] 登录 
Messages posted by: william  XML
个人资料 william -> Messages posted by william [1852] 转到页面: 1, 2, 3  ...  122, 123, 124 下一页 
作者 消息
请给dataset添加listener并在afterLoadData中监控是否有数据被加载到dataset中。
这么调用试试看:
Code:
 var win = command1.execute();
 win.style.top="100px";
 win.style.left="200px";
 
是RequestCommand吧?

先设置frame的center为false,再设置left,top属性
dorado.properties配置问题,请参考用户手册,开发时采用PathFileLoader
datasetApply1.getIndex(new String[]{"year","month","dept_code","code"});//加上这个代码看看,再不行就内存中自己找
Record[] r1 = datasetApply1.findAll(new String[]{"year","month","dept_code","code"},new String[]{year_ad,month,dept_code_ad,code_ad});
控件中的style即classname,在默认的皮肤下会有一套相关的classname与相关控件广联,如果自定义了style属性,如Button的style设置为mybutton,则就需要利用css定义mybutton相关的设定,以button为例默认的css为:
Code:
 .Button {		
 	cursor: hand;
 	font-family: Verdana;
 	font-size: 9pt;
 	height: 22;
 	border-width: 1;
 	border-color: #CCCCCC;
 	border-style: solid;
 	background-color: buttonface;
 	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFFFFF, endColorstr=#DDDDDD);
 }
 
 .Button_Down {		
 	color: white;
 	cursor: hand;
 	font-family: Verdana;
 	font-size: 9pt;
 	height: 22;
 	border-width: 1;
 	border-color: #555555;
 	border-style: solid;
 	background-color: #999999;
 	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#777777, endColorstr=#BBBBBB);
 }
 

如果定义为mybutton,则css就需要定义为:
Code:
 .mybutton {		
 	cursor: hand;
 	font-family: Verdana;
 	font-size: 9pt;
 	height: 22;
 	border-width: 1;
 	border-color: #CCCCCC;
 	border-style: solid;
 	background-color: buttonface;
 	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#FFFFFF, endColorstr=#DDDDDD);
 }
 
 .mybutton_Down {		
 	color: white;
 	cursor: hand;
 	font-family: Verdana;
 	font-size: 9pt;
 	height: 22;
 	border-width: 1;
 	border-color: #555555;
 	border-style: solid;
 	background-color: #999999;
 	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#777777, endColorstr=#BBBBBB);
 }
 


不同的控件需要设定的css可以直接查看skin.css,另外也可以通过组件详解的css说明了解不同控件有哪些相关的css
subwindow内部的视图是一个独立的视图?

如果是,则在视图实现类的initControl中隐藏,或直接用EL表达式即可处理
可以,但分工不同:
ViewModel负责控件的初始化;
DataProvider负责数据加载;
提供你的xml的配置,我看看
可能Command被设置为异步执行了,改为同步执行,就可以确保一个Command执行结束后才执行下一个Command
万事开头难!错误的现象有一万种,但理由通常只有两三种。

请先提供你的错误吧,或问题的描述和错误信息,看看我们能不能找到原因。
特殊处理吧:js端动态设置editor的高度
首先要设置dataset的pageSize.
其次根据计算所得的List.以及Dataset提供的getPageIndex(),getPageSize()
算出dataset指定PageIndex中因该包含List中的那部分数据,
计算出一个subList出来,然后调用Dataset.fromDO(subList);
同时设置dataset.setPossibleRecordCount()函数,告诉dataset本次查询共有多少条记录。
这样dataset就会计算出总共有多少也的数据,从而使前台的pagePilot能显示出共多少页,共多少条记录信息。

之后你单击pagePilot中的某一页时,dataset再次触发上述环节,传如pageIndex和pageSize.循环下面的动作:
Code:
 根据计算所得的List.以及Dataset提供的getPageIndex(),getPageSize()算出dataset指定PageIndex中因该包含List中的那部分数据,计算出一个subList出来,
 然后调用Dataset.fromDO(subList);同时设置dataset.setPossibleRecordCount()函数。
 告诉dataset本次查询共有多少条记录。这样dataset就会计算出总共有多少也的数据,从而使前台的pagePilot能显示出共多少页,共多少条记录信息。
 
系统默认采用ctrl+Insert插入记录,
另如果在preference.js中配置了参数:__DataTable_insertOnLastDownKey=true;
则我们在表格的最后一行的最后一个单元格上敲回车就会自动插入一条记录
应该默认就是false,默认使用的是DBCP连接池,除非数据库驱动jar不支持。
 
个人资料 william -> Messages posted by william [1852] 转到页面: 1, 2, 3  ...  122, 123, 124 下一页 
转到:   
Powered by JForum 2.1.6 © JForum Team