我正在使用Java Spring和jxl在服务器端创建Excel工作簿.需要在Excel中显示的数据包含已格式化的数字.我在用
WritableCellFormat wcf = new WritableCellFormat();
wcf.setAlignment(Alignment.RIGHT);
....
....
sheet.addCell(new Label(j, i + 1, xxx, wcf));
//where xxx is a string which is a number already formatted
Run Code Online (Sandbox Code Playgroud)
在下载的excel文件中,所有这些数字都存储为文本,因此Excel不能在它们上使用公式,它会发出警告"数字存储为文本",我必须做'转换为数字'.
在jxl中,我们可以传递字符串并告诉它们将它们解释为数字吗?我拥有的所有数字都是使用$,%,千位分隔符格式化的有效数字.我不想将它们转换为有效数字,并在导出到excel时再次给它们格式化.
请帮忙.谢谢.
当试图在项目文件夹的窗口上运行新的play 2.0控制台(在cmd中键入'play')时(按框架web教程的指示).
我收到 :
C:\temp\play-2.0\play-2.0\todolist>play
[info] Loading project definition from C:\temp\play-2.0\play-2.0\todolist\projec
t
[error] Server access Error: Connection timed out: connect url=http://repo.types
afe.com/typesafe/ivy-releases/org.hibernate/hibernate-validator/4.2.0.Final/ivys
/ivy.xml
[error] Server access Error: Connection timed out: connect url=http://repo.types
afe.com/typesafe/ivy-releases/javax.validation/validation-api/1.0.0.GA/ivys/ivy.
xml
[error] Server access Error: Connection timed out: connect url=http://repo.types
afe.com/typesafe/ivy-releases/org.springframework/spring-context/3.0.7.RELEASE/i
vys/ivy.xml
[error] Server access Error: Connection timed out: connect url=http://repo.types
afe.com/typesafe/ivy-releases/org.springframework/spring-core/3.0.7.RELEASE/ivys
/ivy.xml
[error] Server access Error: Connection timed out: connect url=http://repo.types
afe.com/typesafe/ivy-releases/org.springframework/spring-beans/3.0.7.RELEASE/ivy
s/ivy.xml
Run Code Online (Sandbox Code Playgroud)
列表继续......
出了什么问题,为什么我想要做的就是使用console/run app来尝试访问远程位置?
我收到这个错误
Mar 22, 2011 12:36:01 AM org.apache.catalina.loader.WebappClassLoader findResourceInternal
INFO: Illegal access: this web application instance has been stopped already. Could not load META-INF/services/javax.xml.parsers.DocumentBuilderFactory. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
Mar 22, 2011 12:36:01 AM org.apache.catalina.loader.WebappClassLoader loadClass
INFO: Illegal access: this web application instance has been stopped already. Could not load com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl. The eventual …Run Code Online (Sandbox Code Playgroud) 我有一个DateField:
editor : new Ext.form.DateField({ /*Ext.ux.form.Custom*/
allowBlank: true,
format: 'm/d/Y',
width : 120,
enableKeyEvents: true,
listeners: {
'keydown' : function (field_, e_ ) {
field_.onTriggerClick();
e_.stopEvent();
return false;
},
'focus' : function (field_ ) {
field_.onTriggerClick();
e_.stopEvent();
return false;
}
}
})
Run Code Online (Sandbox Code Playgroud)
禁用此字段的编辑.在任何编辑中,它显示弹出窗口,因此任何清除日期都是不可能的.有没有办法添加弹出窗口像今天按钮,但意味着清除,此后该字段中的日期将重置为00.00.00?
谢谢.
我试图在网格中渲染进度条(Ext JS),并得到此错误:
对象函数没有方法延迟
这种"神奇"的方法是什么?它有什么作用?为什么没找到?码:
renderer: function (value, meta, rec, row, col, store){
var id = Ext.id();
(function(){
new Ext.ProgressBar({
renderTo: id,
value: 0.5
});
}).defer(25);
return '<span id="' + id + '"></span>';
}
Run Code Online (Sandbox Code Playgroud) 我是Play和Scala世界的新手,所以我需要一些帮助来弄清楚如何使用Eclipse编辑scala模板文件.我已经安装了scala ide 2.9但是当我尝试编辑index.scala.html时,该文件的内容不可编辑...
请有人帮帮我吗?
我正在尝试找到关于数据库和/或表设计注意事项/模式的良好信息来源,以便在设计数据仓库和利用MDS/DQS组件时注意......例如添加"当前标志","创建"对于缓慢变化的维度表,日期","结束日期","最后更新日期"......但MDS特定.
在关于MDS的一些文章/博客中,有一个或两个关于" 一旦您的MDS模型在生产中定期更新应该被安排将MDS中的主数据的任何更改应用于DW中的生产表 "的评论.
例如,作为一名开发人员,我是否希望在我的维度表中包含任何其他列,例如一个标志,表明此记录中的数据是通过MDS-update-process更新的?或者可能是一个单独的数据库模式来跟踪与生产表的FK约束相关的MDS相关变化?
此外,我没有足够的代表来创建新标签,但拥有[主数据服务]或[MDS]选项卡可能会有所帮助
sql-server database-design design-patterns data-warehouse master-data-services
我有一个链接到错误映射的Informatica会话.如何在同一会话S1和工作流W1中将映射从M1更改为M2而不导入/导出为XML并进行更改???
我有一个Oracle 10.2.0.3数据库,以及这样的查询:
select count(a.id)
from LARGE_PARTITIONED_TABLE a
join SMALL_NONPARTITIONED_TABLE b on a.key1 = b.key1 and a.key2 = b.key2
where b.id = 1000
Run Code Online (Sandbox Code Playgroud)
表LARGE_PARTITIONED_TABLE(a)有大约500万行,并由查询中不存在的列分区.表SMALL_NONPARTITIONED_TABLE(b)未分区,并保存大约10000行.
统计数据是最新的,并且表a的列key1和key2中有高度平衡的直方图.
表a具有主键和列key1,key2,key3,key4和key5上的全局非分区唯一索引.
查询解释计划显示以下结果:
---------------------------------------------------------------------------------------------------
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
---------------------------------------------------------------------------------------------------
| 0 | SELECT STATEMENT | | 1 | 31 | 4 (0)| 00:00:01 |
| 1 | SORT AGGREGATE | | 1 | 31 | | |
| 2 | NESTED LOOPS | | …Run Code Online (Sandbox Code Playgroud) 我在一家使用Ext-JS的公司工作.该产品目前过度扩展了Ext-JS组件并覆盖了父功能.这使升级变得困难.我们正在保留Ext-JS,但我们正在考虑以非标准的方式使用它.似乎有两个阵营.在一个阵营中,成员们认为我们应该在Ext-JS之上编写一个抽象,以防我们决定在几年内改变框架,希望这样我们不那么紧张.我个人认为这是一个愚蠢的目标,所以我坐在营地第二.我的理由是Ext-JS团队花了他们的时间为网络提出合理的抽象 - 他们在解决这个问题的领域,而我们只是试图实现一个很酷的产品.我想如果我们编写一个抽象,它将假设Ext-JS.我看到我们编写的低级抽象功能不那么强大,而且不会映射到jQuery世界(或任何其他框架).关于正确行动方针的意见?