【问题标题】:How can i sort by group1 value without effecting group2 value and vise versa如何在不影响第 2 组值的情况下按第 1 组值排序,反之亦然
【发布时间】:2014-01-03 05:08:24
【问题描述】:

我是水晶报表的新手。 我有一个临时表,通过它我在水晶报表中显示值。取决于我想要对记录进行分组的一个临时表值。例如

tt-record.sortby = "Taxcode"

那么所有记录都必须按税码分组, 如果

tt-record.sortby = "countrycode"

然后记录必须按countrycode 分组,就像我有三个条件一样。 我尝试通过插入不同条件的组并抑制其余组示例我为taxcode 定义 group1 和为countrycode 定义 group2,当

tt-record.sortby = "Taxcode"

然后我将抑制用于countrycode 的 group2。但是在报告的预览中,记录是按税码排序,然后是国家代码,当我按税码分组时,我不希望国家代码分组。

如何在不影响 group2 值的情况下按 group1 排序,反之亦然。你能帮我么 。提前致谢。

【问题讨论】:

    标签: crystal-reports crystal-reports-2008 crystal-reports-2010


    【解决方案1】:

    你的方法是错误的。只创建一个组,并在该组中写下公式。

    If tt-record.sortby 
    Then "Tax code filed here"
    else if tt-record.sortby = "countrycode
    Then "Country code field here"
    

    现在在分组中使用上述公式。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-04-08
      • 1970-01-01
      • 1970-01-01
      • 2016-01-27
      • 2016-02-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多