如何以编程方式强制在Webplayer Spotfire DataTable中标记RowSelection

时间:2016-10-26 11:58:57

标签: c# spotfire

如何在spotfire中以编程方式强制标记DataTable的RowSelection,那么当最终用户在webplayer中打开模板时,必须选择并标记指定的行? 我尝试使用下面的代码,但它不强制标记选择:

 // If document properties specified, update them if exist
    DataManager dataManager = application.GetService<DataManager>();

 // Mark database row before we refresh the data tables
    RowSelection allRows = dataManager.AllRows.GetSelection(table);
    application.Document.ActiveMarkingSelectionReference.SetSelection(allRows, table);

打开时,我想要如下: enter image description here

但它显示如下: enter image description here

请帮忙吗?

1 个答案:

答案 0 :(得分:1)

使用以下步骤可以轻松完成:

  • 标记您想要标记的所有内容(您希望用户看到它)
  • 转到修改&gt;文档属性&gt;库并取消选中“记住每个Web播放器用户的个性化视图”
  • 将DXP保存到库中。

现在,当用户打开此dxp时,他们会在您保存它的状态中看到它。

相关问题