Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xslt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java smartsheet cell.getFormat()返回空值_Java_Format_Smartsheet Api - Fatal编程技术网

Java smartsheet cell.getFormat()返回空值

Java smartsheet cell.getFormat()返回空值,java,format,smartsheet-api,Java,Format,Smartsheet Api,我使用Java Smartsheet API 根据Smartsheet文档 可以选择为列、行和列包含格式化数据 通过将“include=format”查询字符串参数添加到任何API 返回这些对象中任何一个的操作(例如,GET /sheets/{sheetId},GET sheets/{sheetId}/rows/{rowId},等等)。当 参数中包含包含非默认格式的对象 将包含一个format属性。没有任何 应用的非默认格式设置将排除此属性。“ 我使用以下构造函数创建SmartSheetTabl

我使用Java Smartsheet API

根据Smartsheet文档

可以选择为列、行和列包含格式化数据 通过将“include=format”查询字符串参数添加到任何API 返回这些对象中任何一个的操作(例如,GET /sheets/{sheetId},GET sheets/{sheetId}/rows/{rowId},等等)。当 参数中包含包含非默认格式的对象 将包含一个format属性。没有任何 应用的非默认格式设置将排除此属性。“

我使用以下构造函数创建SmartSheetTableModel类:

private SmartSheetTableModel(long sheetId, EnumSet<SheetInclusion> includes, EnumSet<ObjectExclusion> excludes, Set<Long> rowIds, Set<Integer> rowNumbers, Set<Long> columnIds, Integer pageSize, Integer page) throws SmartsheetException {
        this.sheet = smartsheet.getSmartsheet().sheetResources().getSheet(sheetId, includes, excludes, rowIds, rowNumbers, columnIds, pageSize, page);
    }
private SmartSheetTableModel(长sheetId、枚举集包含、枚举集排除、设置行ID、设置行编号、设置列ID、整数页面大小、整数页面)引发SmartsheetException{
this.sheet=smartsheet.getSmartsheet().sheetResources().getSheet(sheetId、包括、排除、行ID、行编号、列ID、页面大小、页面);
}
在这里,我用FORMAT param调用它:

SmartSheetTableModel sheet = new SmartSheetTableModel.Builder(id).setIncludes(EnumSet.of(SheetInclusion.FORMAT, SheetInclusion.COLUMN_TYPE, SheetInclusion.FILTERS)).setRowNumbers(new HashSet<>(Arrays.asList(new Integer[] {1, 2}))).build();
SmartSheetTableModel sheet=new SmartSheetTableModel.Builder(id).setIncludes(EnumSet.of(SheetInclusion.FORMAT,SheetInclusion.COLUMN_TYPE,SheetInclusion.FILTERS)).setRowNumbers(new HashSet(Arrays.asList(new Integer[]{1,2}))).build();
尽管提供了FORMAT参数,但对行、列和单元格的getFormat()调用始终返回null。然而,在web表单中,我看到行有不同的颜色


有什么想法吗?

好的,我发现Smartsheet中的行可能有条件格式