将用户选择传递到Oracle BI EE中的存储库变量(pass user' choice into repository variable in Oracle BI EE)
我的需求是将用户选择传递到Oracle商业智能(OBIEE)中的存储库变量。 查询确实可以使用变量的默认值。 不知道如何将参数从Analysis提示传递到存储库变量。 请帮忙。
My need is to pass user' choice into repository variable in Oracle Business Intelligence (OBIEE). Query does work good with default values of variable. Don't know how to pass parameter from Analysis prompt into repository variable. Please help.
原文:https://stackoverflow.com/questions/13857315
最满意答案
for (solar_body body : bodies)
这按值重复; 也就是说,它会创建一个
body
元素的副本,并在迭代过程中将其放置在body
中。 然后它继续到下一个元素,依此类推。 要按引用进行迭代,以便可以修改元素,则需要以下内容:for (solar_body& body : bodies)
for (solar_body body : bodies)
This iterates by value; that is, it creates a copy of an element of
bodies
, and places it inbody
for the duration of the iteration. Then it goes on to the next element, and so on. To iterate by reference, so that you can modify the elements, you want the following:for (solar_body& body : bodies)
相关问答
更多-
我终于找到了问题。 向量设置代码深处的路径破坏了向量的状态(将其设置为0,作为更大块内存的一部分)。 这对vector中的前三个字段没有任何影响: _Myfirst , _Mylast和_Myend因为这些字段在初始向量中为0。 此外,大多数事情,如数组索引运算符和其他方法,如push_back仍然正常运行。 但是,第四个字段_Myproxy最初是非零的,并且清除它禁用了基于迭代器的功能。 因此,for-each循环, vector::back()和其他循环都会因不同的错误错误而失败,例如错误的边界检查,错 ...
-
为什么我的向量中的项目在C ++的每个循环中都不会改变?(Why won't the items in my vector change during for-each loop in C++?)[2023-05-03]
for (solar_body body : bodies) 这按值重复; 也就是说,它会创建一个body元素的副本,并在迭代过程中将其放置在body中。 然后它继续到下一个元素,依此类推。 要按引用进行迭代,以便可以修改元素,则需要以下内容: for (solar_body& body : bodies) for (solar_body body : bodies) This iterates by value; that is, it creates a copy of an element of ... -
for-each和for循环(for-each and for loops)[2023-03-12]
for-each只是java 1.5中引入的一种语法糖。 它使用从场景后面的Iterable获得的迭代器。 您提到的唯一合理差异是迭代期间的集合修改。 是的,这是不可能的。 使用Iterator在迭代期间无法修改集合。 该尝试导致ConcurrentModificationException 。 这与两种情况(迭代器的显式和隐式用法)相关。 唯一的例外是使用Iterator.remove() (当它受支持时)。 在这种情况下,迭代器不会抛出异常。 原因很清楚。 Iterator无法迭代迭代期间正在更改的集合 ... -
实现这一点的一种方法是使用reduce : (first (reduce (fn [[result previous] [a b]] [(if (contains? previous b) result (conj result [a b])) (conj previous b)]) [[] #{}] ...
-
你可以使用谓词使用std::unique : template
It unique(It first, It last, Predicate pred); std::unique最常用的形式不需要谓词,只是删除序列中的重复。 但是你可以写一个实现你的过滤器(在你的情况下,使用差距比较两个值),然后设置好。 就像是: bool CompareWithGap(double a, double b) { return abs(a - b) ... -
在第一个循环中,你需要c成为一个int以便你可以访问rowArray[c] - 但这应该工作: for (int[] row : imgMap) { String[] rowArray = mapBR.readLine().split(","); for (int c = 0; c < row.length; c++) { row[c] = Integer.parseInt(rowArray[c]); } } 在第二个循环中,你只需要遍历r ...
-
句法: for ( range_declaration : range_expression) loop_statement 产生的代码相当于: { auto && __range = range_expression ; auto __begin = begin_expr(__range); auto __end = end_expr(__range); for (;__begin != __end; ++__begin) { range_de ...
-
在for循环中,框的颜色不会改变。(Box color won't change during the for loop. (Tables as parameters in functions))[2022-03-24]
我认为你的问题是你在for循环中初始化了变量,因为在每次迭代中你都会擦除previousColors和previousBox的值,所以试着在循环之前这样做: function movePlayer(dt) player.pos.x, player.pos.y, cols, cols_len = world:move( player, player.pos.x + player.velocity.x *dt, player.pos.y + player.velocity.y * ... -
您可以为所有节点共享Edge的向量: 就像是: struct Edge { int32_t neighboor : 20; int32_t weight : 12; } e; struct Node { double x; double y; int32_t indexInEdges : 28; int32_t neighboorCount : 4; // You may adjust these numbers }; std::vector
node ... -
XSLT和for-each循环(XSLT and the for-each loop)[2024-01-18]
XSLT和XPath是名称空间感知的。 不幸的是,他们没有为路径设置默认命名空间的任何注释,因此您必须使用绑定到命名空间的显式前缀。 如果您不熟悉XML命名空间,请查看它们。 他们很重要。 以您的具体示例为例,这是SNTP文档启动的简化版本Service Name and Transport Protocol Port Nu ...