【问题标题】:BOBJ. Change object underlying field based on what is selected in the query鲍勃。根据查询中选择的内容更改对象基础字段
【发布时间】:2013-11-13 16:43:40
【问题描述】:

在 BOBJ 中有没有办法根据查询中选择的内容更改对象的公式?

例如,TradeValue 通常等于 dbo.Trade.TradeValue,但如果在查询中选择 SalesPerson 和 TradeValue,我希望 TradeValue 为 dbo.Trade.TradeValue * Salesperson.Percentage。

我们将不胜感激任何建议的解决方法。

【问题讨论】:

    标签: sql business-objects


    【解决方案1】:

    特定对象无法检测查询中是否存在另一个对象,因此您需要两个对象分别用于 TradeValueTradeValue * SalesPerson.Percentage

    我能想到的唯一解决方法是创建一个提示,询问用户是否应将SalesPerson.Percentage 包含在计算中。比如:

    TradeValue * case when @variable("Multiply by SalesPerson Percentage") = 'Y'
                      then SalesPerson.Percentage
                      else 1 end
    

    【讨论】:

    • 谢谢你,乔。我有很多对象,我想根据所选查询更改基础公式,所以我猜提示不是一个真正的选项。
    • 提示将在每次刷新时显示一次,即使您有多个引用它的对象。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-10-16
    • 1970-01-01
    • 1970-01-01
    • 2011-06-21
    • 1970-01-01
    • 1970-01-01
    • 2011-03-11
    相关资源
    最近更新 更多