简体   繁体   English

Spotfire-如何对数据表列中的唯一未过滤值进行属性控制

[英]Spotfire - How to have a property control on unique not-filtered values from a column of a datatable

I have a dropdown list (that is used to filter a table). 我有一个下拉列表(用于过滤表)。

At the moment I have this dropdown list with unique values from a column of a datatable. 目前,我有一个下拉列表,其中包含来自数据表列的唯一值。 I can't figure out how to only have not filtered values. 我不知道如何只没有过滤的值。


Little example : 小例子:

// Table from which unique not-filtered values should be get
Column
-------
   A
   B
   C

Let's say I use a filter to only have A and B. My dropdown list should only propose values A and B. At the moment I have A, B and C. 假设我使用过滤器仅包含A和B。我的下拉列表应仅建议值A和B。此刻,我具有A,B和C。

I can't find a way to do this, someone has an idea? 我找不到解决办法,有人知道吗?

It's not an ideal solution, but one option is as follows: 这不是理想的解决方案,但是一种选择如下:

Add a data table that only has the column you want in your dropdownlist. 添加一个数据表,该数据表在下拉列表中包含您想要的列。
Change the settings to turn this new data set into a Data on Demand -- Hit the "Define Input" button, select "Values from column", select your first data table, and select the matching column. 更改设置以将该新数据集转换为按需数据-单击“定义输入”按钮,选择“列中的值”,选择第一个数据表,然后选择匹配的列。 Then limit by the filtering scheme you want to be applied (make sure to deselect the marked rows default). 然后根据您要应用的过滤方案进行限制(确保取消选择默认的标记行)。
Make sure to check "Load automatically" in the data table's On-Demand settings. 确保在数据表的按需设置中选中“自动加载”。

This new data table now only has the filtered values, so you can use this as the source for your DropDownList. 现在,此新数据表仅具有过滤后的值,因此您可以将其用作DropDownList的源。

Cons: It has to reload every time you select things in your filter. 缺点:每次您在过滤器中选择内容时,都必须重新加载。 Depending on how long it takes to pull the values, this may become obnoxious. 根据拉取值所需的时间,这可能会令人讨厌。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM