我正在针对Sybase ASE使用Eclipse BIRT Designer版本4.3.2.v20140211-1400 Build 4.3.2.v20140211-1526。我希望两个日期参数的用户提示格式为7-30-14。目前默认显示2014-7-30。
根据其他帖子的推荐,我从Eclipse Outline视图中为参数选择了Properties。在显示下的编辑属性中显示自定义格式我选择了M / d / yy,预览显示为7/30/14。但是,当我运行报告时,它仍然需要我输入yyyy-mm-dd并以错误的日期错误输出。
我错过了别的什么吗? 这是参数的xml
<parameters>
<scalar-parameter name="report_dt" id="85">
<text-property name="promptText">Enter Date as MM/dd/yy</text-property>
<property name="valueType">static</property>
<property name="isRequired">true</property>
<property name="dataType">date</property>
<property name="distinct">true</property>
<simple-property-list name="defaultValue">
<value type="javascript">params["end_dt"].value</value>
</simple-property-list>
<list-property name="selectionList"/>
<property name="paramType">simple</property>
<property name="controlType">text-box</property>
<structure name="format">
<property name="category">Custom</property>
<property name="pattern">M/d/yy</property>
</structure>
</scalar-parameter>
<scalar-parameter name="end_dt" id="88">
<text-property name="promptText">Enter the end of the range. By default this will be the same as the start date</text-property>
<property name="valueType">static</property>
<property name="isRequired">true</property>
<property name="dataType">date</property>
<property name="distinct">true</property>
<simple-property-list name="defaultValue">
<value type="javascript">params["report_dt"].value</value>
</simple-property-list>
<list-property name="selectionList"/>
<property name="paramType">simple</property>
<property name="controlType">text-box</property>
<structure name="format">
<property name="category">Custom</property>
<property name="pattern">M/d/yy</property>
</structure>
</scalar-parameter>
</parameters>