[英]Hide field when date ='01/01/1900'
I am trying to hide a field in my report. 我正在尝试在报告中隐藏一个字段。 The following code gives me an error claiming "The formula result must be a Boolean"
以下代码给我一个错误,声称“公式结果必须为布尔值”
if
totext((Date(Year({vPolicyPaymentData.Cheque_Date}),
Month({vPolicyPaymentData.Cheque_Date}),
Day({vPolicyPaymentData.Cheque_Date}))), 'dd/MM/yyyy') ="01/01/1900"
then
""
else
totext((Date(Year({vPolicyPaymentData.Cheque_Date}),
Month({vPolicyPaymentData.Cheque_Date}),
Day({vPolicyPaymentData.Cheque_Date}))),'dd/MM/yyyy')
To hide specific fields, right-click on the field and select "Format ..." where is field, formula etc. Go to the Common tab and click on the button next to "Suppress". 要隐藏特定字段,请右键单击该字段,然后选择“格式...”,其中字段,公式等在其中。转到“通用”选项卡,然后单击“抑制”旁边的按钮。 Enter a formula that evaluates to True or False.
输入计算结果为True或False的公式。 When true, the field will be suppressed:
设置为true时,将禁止显示该字段:
Cheque_Date = Date(1900, 01, 01)
You must return a boolean to avoid the issue. 您必须返回一个布尔值以避免出现此问题。 For more, refer to this link
有关更多信息,请参考此链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.