簡體   English   中英

如何根據公式字段中的條件抑制水晶報表中的部分

[英]How to suppress section in crystal report based on a condition in formula field

我在Crystal報表中有一個用於轉換捕手類型的公式:

select {command.catcher_type}
case 1:'Bag Net'
case 2:'Beach/Drag Seine'
case 3:'Danish Seine'
case 4:'Gill Net'
case 5:'Handline'
case 6:'Longline'
case 7:'Paaling/Drive-in Net'
case 8:'Push Net'
case 9:'Ring Net'
case 10:'Round Haul Seine'
case 11:'Sardine/Mackerel/Scad Purse Siene'
case 12:'Trawl'
case 13:'Tuna Purse Seine'
case 14:{command.other_gear}
default: 'N/A'

這在我的報告中起作用。

我必須根據上面公式結果的值來取消報告的section3

這是我的壓制公式:

if('@gear_translate')="13" then
    True
else
    false

它不起作用..它沒有取消第3節。

公式的結果是文本文件,因此您的目標公式應為:

if {@gear_translate}="Tuna Purse Seine" then
    True
else
    false

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM