- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
尝试使用 Java API 以编程方式获取智能表中行的注释。当我使用 row.getDiscussions() 时,即使该行上存在注释,它也始终返回 null。
try
{
Smartsheet CommericalSmartsheet = new SmartsheetBuilder().setAccessToken("*****************").build();
Sheet sheet = CommericalSmartsheet.sheetResources().getSheet(*************,null,null,null,null,null,null,null);
List<Row> rows = sheet.getRows();
System.out.println("Number of Rows: " + rows.size());
for(int x = 0; x<rows.size();x++)
{
System.out.println("Row #: " + x);
List<Discussion> discussions = rows.get(x).getDiscussions();
if (discussions != null)
{
System.out.println("Number of Discussions: " + rows.get(x).getDiscussions().size());
for(int y=0;y<discussions.size();y++)
{
List<Comment> comments = discussions.get(y).getComments();
for (int i=0;i<comments.size();i++)
{
String CommentText = comments.get(i).getText();
User createdBy = comments.get(i).getCreatedBy();
Date createdAt = comments.get(i).getCreatedAt();
System.out.println(createdBy.toString() + " " + createdAt.toString() + ": " + CommentText);
}
}
}
}
} catch (SmartsheetException ex) {
Logger.getLogger(TFSpush.class.getName()).log(Level.SEVERE, null, ex);
}
我的输出是
Number of Rows: 1026
Row #: 0
Row #: 1
Row #: 2
Row #: 3
Row #: 4
Row #: 5
Row #: 6
Row #: 7
Row #: 8
Row #: 9
Row #: 10
Row #: 11
Row #: 12
Row #: 13
Row #: 14
我不会让你觉得无聊,剩下的就数到 1026
最佳答案
请在获取工作表时尝试使用 SheetInclusion.DISCUSSIONS:
Set<SheetInclusion> inclusionSet = Collections.singleton(SheetInclusion.DISCUSSIONS);
Sheet sheet = CommericalSmartsheet.sheetResources().getSheet(*************,inclusionSet,null,null,null,null,null,null);
有关详细信息,请参阅 SheetResources.getSheet()方法,以及 SheetInclusion Enum在 SDK 文档中。
关于java - Smartsheet Java API 引起讨论,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60458645/
我已经能够使用 Postman 和 Smartsheet Python SDK 创建更新请求,但是我在 API 文档中找不到列出待处理更新请求或删除待处理更新请求的方法.有谁知道如何做到这一点? 最佳
我似乎无法添加行。我收到以下错误,但我相信数据格式正确。提前致谢! {"errorCode":1008,"message":"无法解析请求。发生以下错误:请求正文必须是 JSON 对象或 JSON 数
更新 2022-12-01 这个问题现在已经过时了。 Smartsheet API 现在支持请求的功能。接受的答案包含有关更新的更多详细信息。 语境 开发人员希望使用 smartsheet API 填
我正在尝试使用Powershell和API更新单元格,但出现错误:1004您无权执行此操作。我已经删除了ID。 。 。 我有30天的试用期。在使用API进行更新之前,我需要购买某种程度的支持吗?该
我有一张包含 18 列和 137 行的工作表。一些列是空的。当我制作 get sheets调用(我正在使用 C# SDK )返回的数据具有以下结构,这对我来说似乎异常...... 列 --- 19(R
我已经能够使用适用于 Smartsheet 的 Python SDK 读取工作表、行、列和单元格,但我无法真正更改/写入/更新单元格值。我已经大大简化了我的代码,剩下的就是: import smart
每当我检索 SmartSheet 行并循环遍历其中的单元格时,CHECKBOX 类型的所有单元格始终具有 displayValue 或 Null 值,无论工作表上复选框的状态如何。还有其他人经历过吗?
我正在尝试编写一些基本代码来检索工作区列表并将响应写入文件。我认为这可以转储到 JSON 文件中? 感谢您的帮助/建议。 我已经获取了示例 .py 文件并将其重新设计为如下所示 - # Install
全部 - 我在加载 Smartsheet 客户端时收到此错误我根据要求加载了所有依赖项。我应该解决什么问题? 导入错误!无法加载api或模型类_ipython_canary_method_should
我一直致力于基于 smartsheet 的简单生产管理流程。我一直在运行的代码在我的 Ubuntu 机器上运行良好,然后我将其复制到运行相同 Node 版本的 Parrot Linux 机器上,但它找
尝试使用 Java API 以编程方式获取智能表中行的注释。当我使用 row.getDiscussions() 时,即使该行上存在注释,它也始终返回 null。 try { Smartshee
>Cell newCell = new Cell(); >newCell.setValue("no way"); >newCell.setColumnId(4303755236665220l); >
我有一个 html 链接,可以打开 Smartsheet表格在新窗口中显示,以便我们的在线客户可以填写表格。 我想将现有表单中的 TextField 值(产品名称或产品代码)传递到智能表表单。这将对我
当我使用 smartsheet java api 创建新工作表时,它始终创建在 home 下的“sheets”文件夹中。是否可以移动此工作表或在不同的工作区/文件夹中创建它? 最佳答案 下面我列出了一
我正在尝试使用以下代码更改任何出版物的智能表编辑的 URL Sheet sheet = null; try { sheet = smartsheet.sheets().
我想通过 Smartsheet api 查找工作表,而我所拥有的只是工作表的名称。我目前正在这样解决 sheet_name = 'The sheet I have the name of' sheet
我有一个如下所示的数字列表存储在变量中。 [700000000084, 100000000051652, 8800000000000072, 280000000000004, 680000000000
在 Smartsheet c# SDK 中,row.ParentRowId 很有用,但我没有看到确定给定行在层次结构中的级别的方法?例如,如果我有类似... 项目名称 第 1 节 任务 1 任务 2
我不明白如何导入 Smartsheet 并将其转换为 Pandas 数据框。我想操作 smartsheets 中的数据,目前我转到 smartsheets 导出到 csv 并在 python 中导入
我在公司内部使用的应用程序中使用 SmartSheet API (Java SDK),并且发现应用程序的初始启动时间越来越长。我得出的结论是,至少部分延迟是从 SmartSheet 获取整个工作表,然
我是一名优秀的程序员,十分优秀!