我正在编辑我们正在使用的系统附带的水晶报告(使用版本14.1.1)报告。我在预览中看不到任何数据,但是当我转到“数据库 - >显示sql查询”时,很明显它不起作用,因为查询需要一些在数据库中不存在的值,只是一个简单的“FIELD” ='value1'“在查询中我想要”FIELD ='value2'“
我可以在哪里设置这些值?
确切地说,查询是下面的野兽(不要责怪我,这是由商业系统制作的)我需要能够为ORDER_NUM =
设置另一个值SELECT "ORDERS"."ORDER_NUM", "CUSTOMER"."COMPANY_NAME",
"CUSTOMER"."ADDRESS1", "CUSTOMER"."ADDRESS2", "ORDERS"."LAB_GROUP",
"ORDERS"."X_INTERNAL_RESP", "ORDERS"."X_CONTACT_PERSON",
"SAMPLE"."SAMPLE_NUMBER", "SAMPLE"."X_EXTERNAL_ID", "SAMPLE"."SAMPLE_TYPE",
"SAMPLE"."X_REFERENCE_TIME", "TEST"."ANALYSIS", "RESULT"."NAME",
"ORDERS"."X_SIGNED_BY", "RESULT"."FORMATTED_ENTRY", "RESULT"."STATUS",
"RESULT"."ACCREDITED", "UNITS"."DISPLAY_STRING", "TEST"."STATUS",
"RESULT"."REPORTABLE", "RESULT"."ORDER_NUMBER", "RESULT"."ATTRIBUTE_1",
"RESULT"."ATTRIBUTE_2"
FROM ((("SAMPLE" INNER JOIN "TEST" ON
"SAMPLE"."SAMPLE_NUMBER"="TEST"."SAMPLE_NUMBER") INNER JOIN ("CUSTOMER"
INNER JOIN "ORDERS" ON "CUSTOMER"."NAME"="ORDERS"."ABOUT_ENTITY") ON
"SAMPLE"."X_ORDER"="ORDERS"."ORDER_NUM") INNER JOIN "RESULT" ON
("TEST"."SAMPLE_NUMBER"="RESULT"."SAMPLE_NUMBER") AND
"TEST"."TEST_NUMBER"="RESULT"."TEST_NUMBER")) LEFT OUTER JOIN "UNITS" ON
"RESULT"."UNITS"="UNITS"."UNIT_CODE"
WHERE "RESULT"."REPORTABLE"='T' AND "ORDERS"."ORDER_NUM"='ØSTERÅS-2014-79'
AND "RESULT"."STATUS"='A' AND "TEST"."STATUS"='A'
ORDER BY "SAMPLE"."SAMPLE_NUMBER", "TEST"."ANALYSIS", "RESULT"."NAME"
答案 0 :(得分:1)
不能说CR 14的确切位置,但通常在“报告”菜单中选择“选择公式” - “记录”。进入WHERE caluse的条件是从那里插入的。