- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在开发一个 ICN 插件,但在修复此故障时遇到了麻烦,每个结果都按照网格小部件上应有的方式加载,但是一旦我在右侧面板上对其进行了任何更改并保存它们,网格似乎会重新加载该行,但它会变成空白,因为它没有加载绑定(bind)到我在构建网格的 java 代码上指定的列的属性。
我使用 ibm 红皮书中的“第 6 章创建带有搜索服务和小部件的功能”演示插件作为示例,但是在这种插件上,我到底可以在哪里让导航器加载这些自定义列及其属性(我希望它在编辑后重新加载)?
注意:默认情况下,我的意思是这些列,默认情况下每行总是具有的属性:
row.addAttribute("ID", doc.get_Id().toString(), JSONResultSetRow.TYPE_STRING, null, doc.get_Id().toString());
row.addAttribute("className", doc.getClassName(), JSONResultSetRow.TYPE_STRING, null, doc.getClassName());
row.addAttribute("ModifiedBy", doc.get_LastModifier(), JSONResultSetRow.TYPE_STRING, null, doc.get_LastModifier());
row.addAttribute("LastModified", doc.get_DateLastModified().toString(), JSONResultSetRow.TYPE_TIMESTAMP, null, doc.get_DateLastModified().toString());
row.addAttribute("Version", doc.get_MajorVersionNumber() + "." + doc.get_MinorVersionNumber(), JSONResultSetRow.TYPE_STRING, null, doc.get_MajorVersionNumber() + "." + doc.get_MinorVersionNumber());
row.addAttribute("{NAME}", doc.get_Name(), JSONResultSetRow.TYPE_STRING, null, doc.get_Name());
row.addAttribute("ContentSize", doc.get_ContentSize(), JSONResultSetRow.TYPE_INTEGER, null, null);
按照惯例,我的意思是这样的,其中所有内容都是从 XML 文件加载的:
ArrayList<PluginProperty> pr = pxs.getResults(contextId);
for (int i = 0; i < pr.size(); i++) {
String id = "{" + i + "}";
String propName = pr.get(i).getName();
String propType = pr.get(i).getType();
String prop = "";
.
.
.
else if (propType.equalsIgnoreCase("StringList")) {
int size = doc.getProperties().get(propName).getStringListValue().size();
for (int j = 0; j < size; j++) {
prop += doc.getProperties().get(propName).getStringListValue().get(j).toString() + "; ";
}
}
else if (propType.equalsIgnoreCase("StringValue")) {
prop = doc.getProperties().get(propName).getStringValue();
}
.
.
.
row.addAttribute(id, prop, JSONResultSetRow.TYPE_STRING, null, prop);
}
最佳答案
保存文档信息数据后,调用openItem。这会使用最新数据更新该项目。
ContentList 从 _ModelStore.js getValue 方法获取单元格值。此方法调用 item.getDisplayValue 来获取要在单元格中显示的值。最有可能的是 item.getDisplayValue 返回 null(或空白),或者没有为此属性调用 _ModelStore 的 getValue。
我建议查看从 openItem 返回的 JSON 以验证它看起来是否完整。
关于java - IBM Filenet Content Navigator 自定义插件 - 编辑属性后 GridX 行变为空白,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24997990/
我意识到这可以通过 FileNET P8 API 实现,但是我正在寻找一种方法来查找数据库中的物理文档路径。具体来说,FileStore 中有两级子文件夹,例如 FN01\FN13\DocumentI
我试图从 ManifoldCF 连接到 FileNet,但没有成功。我得到的错误是 Connection status: Connection temporarily failed: Connect
是否有任何方法可以在 FileNet 中分页查询?我有一个带分页的网格控件,因此我需要获取查询中的元素总数以及获取结果的示例第 3 页(具有任何页面大小)的可能性。我只找到了 TOP 运算符,但是否有
我在 FileNet P8 中 checkout 文件时遇到问题。我可以对“文档”类的文档执行结帐。然而,对于来自另一个类的任何文档,系统一直告诉我不允许操作。 我可以在哪个级别上更改它?它是基本文档
我正在尝试更新 FileNetP8 实现中的 Creator 属性。我尝试使用 "Modify Certain System Properties" 的授权来更新它,但似乎此授权不适用于 "Creat
关闭。这个问题是opinion-based .它目前不接受答案。 想改善这个问题吗?更新问题,以便可以通过 editing this post 用事实和引文回答问题. 7年前关闭。 Improve t
我知道的唯一方法是遍历对象存储的属性模板,并通过将符号名称与一些字符串进行比较来找到我需要的模板: String propertySymName = "someName"; ObjectStore o
我一直在用SearchScope.fetchObjects()方法到这个时候,然后我才突然想到fetchRows在某些情况下可能是更好的选择(当您不需要类名、对象存储等元数据时)。有人告诉我它可能会更
要求之一是用新内容更新文档并删除旧文档。前一个文档的文档 ID 和其他属性应该指向具有新内容的新文档。 有任何示例片段可以做同样的感谢。 最佳答案 我不太明白您是否需要创建新文档或现有文档的新版本。属
其他一些团队正在调用我们的 FileNet 自定义应用程序来搜索文档。我相信一些用户正面临间歇性故障,因为我们收到以下错误的票(尽管没有用户报告此问题),我尝试使用不同的场景验证我们的服务,它们都有效
我正在使用 IBM FileNet CE API 5.1 并面临性能问题,因为循环中的额外刷新和大量迭代(25000+)。这是代码示例: for (Document document : docume
我正在尝试更改给定文档的类,下面是我使用的代码 Document p8Document = Factory.Document.getInstance(p8ObjectStore,
我正在编写代码以在 FileNet 中上传文件。 一个独立的 java 程序,用于获取一些输入并将其上传到 FileNet。我是 FileNet 新手。你能帮我一下吗?该怎么做? 最佳答案 您可以使用
我们有一个开发环境,AE 和 CE 在同一个 websphere 实例中。 现在,我们正在尝试将 AE 挂载到我们的一台本地机器中的 IRAD Websphere 实例中。 当应用程序尝试访问文件网对
当"new"用户添加到现有 AD 组或我们创建新的 AD“组”时,我们必须等待太长时间才能更新 P8 中的缓存。如果我将任何工作流传输到该区域,它会立即更新缓存。 我们的 java 程序正在 AD 中
我们正在使用 FileNet 5.1,而其他一些团队不小心从产品中删除了一个名为“ABC”的组。现在应用了“ABC”的文档现在有了 SID。我们现在已经创建了一个同名的组并确定了受影响的 GUID。我
是否可以仅使用日期字段进行查询,例如“2017-03-02” ' 在 IBM FileNet 中? 我已经尝试了下面的语句,但它似乎不起作用 SELECT * FROM Table_Name WHER
我测试了一个简单的程序来更改类并再次上传文档。当我通过管理员帐户正常使用它时,它可以正常工作,但是当我从非管理员帐户登录时,它不允许我编辑属性。 public void senddoc(String
例如,有 5 个对象存储。我正在考虑将文档插入其中,但不是按顺序插入。最初它可能是顺序的,但如果我可以使用某种排名方法插入,那么就更容易知道要搜索哪个对象存储来查找文档。目标是减少对象存储搜索的次数。
我对 Filenet 非常陌生。我有一个要求,我需要提取特定文件夹中每个文档/记录的元数据。然后我需要将该元数据导出到 XML 中。首先,我需要检查是否有与该文件夹关联的任何文档,然后我需要执行此步骤
我是一名优秀的程序员,十分优秀!