1

我正在尝试使用参数drop downFrom和选择记录to date

我不知道下面的查询出了什么问题,我没有得到任何记录。我知道,有条件记录。

    Submission.Submission Status} = "Submitted" 
    and {Submission.Status} = "Active" 
    and
    ( 
      if {?Type} = "Application Date" then
      {
           {Application.Edit Date} IN {?Date From} TO {?Date To} 
      }
      else
      if {?Type} = "Submission Date" then
      (
           {Submission.Edit Date} IN {?Date From} TO {?Date To}
      ) 
      else 
      if {?Type} = "Selection Date" then
      (
        {Committee_Member.Position Start Date} IN {?Date From} TO {?Date To}
      )
 )
)

当我尝试使用日期时,我尝试了以下查询,该查询完美无缺。有什么线索吗?

Submission.Submission Status} = "Submitted" 
    and     
    ( 
      if {?Type} = "Application Date" then
      {
           {Submission.Status} = "Active" 

      }
      ....
      ....
      ....
   )
4

1 回答 1

0

假设列数据类型正确并且没有拼写错误,那么您的公式没有任何问题。我唯一能建议的是简化语句,然后逐行调试,直到找到问题。从最简单的公式开始,运行报告,看看它是否有效。如果是,请添加下一行并重新测试。

例如,使用“应用程序日期”类型运行报告,看看这是否提供了任何记录。如果不是,那么您的前两行有问题。如果您看到记录,请通过取消注释日期选择的行来重试。

{Submission.Submission Status} = "Submitted" 
and {Submission.Status} = "Active" 
and
    ( 
      select {?Type}
      case "Application Date" : true
      //case "Application Date" : {Application.Edit Date} IN {?Date From} TO {?Date To}
      //case "Submission Date" : {Submission.Edit Date} IN {?Date From} TO {?Date To}
      //case "Selection Date" : {Committee_Member.Position Start Date} IN {?Date From} TO {?Date To}
      default : false
    )

那行得通吗?如果是这样,请尝试以下操作:

{Submission.Submission Status} = "Submitted" 
and {Submission.Status} = "Active" 
and
    ( 
      select {?Type}
      case "Application Date" : {Application.Edit Date} IN {?Date From} TO {?Date To}
      //case "Submission Date" : {Submission.Edit Date} IN {?Date From} TO {?Date To}
      //case "Selection Date" : {Committee_Member.Position Start Date} IN {?Date From} TO {?Date To}
      default : false
    )

依此类推,直到找到罪魁祸首。

于 2013-07-15T15:18:42.317 回答