You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`view_item` | The `ViewItem` to populate with Excel data.
5721
+
`req_options` | (Optional) You can pass in request options to filter data or set the maximum age of the Excel content cached on the server. See [ExcelRequestOptions class](#excelrequestoptions-class) for more details.
5722
+
5723
+
**Returns**
5724
+
5725
+
None. The Excel content is added to the `view_item` and can be accessed by its `excel` field.
5726
+
5727
+
**Version**
5728
+
5729
+
Version 3.8 and later. See [REST API versions](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_versions.htm).
5730
+
5731
+
**Example**
5732
+
5733
+
```py
5734
+
server.views.populate_excel(view_item)
5735
+
withopen('./view_data.xlsx', 'wb') as f:
5736
+
f.write(view_item.excel)
5737
+
```
5738
+
5739
+
<br>
5740
+
<br>
5741
+
5742
+
#### views.update
5743
+
5744
+
```py
5745
+
views.update(view_item)
5746
+
```
5747
+
5748
+
Modifies the specified view. Use this method to change the owner of a view or update its settings.
5749
+
5750
+
**Parameters**
5751
+
5752
+
Name | Description
5753
+
:--- | :---
5754
+
`view_item` | The `ViewItem` with updated attributes.
REST API: [Delete Tags from View](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_workbooks_and_views.htm#delete_tags_from_view)
5884
+
5885
+
**Parameters**
5886
+
5887
+
Name | Description
5888
+
:--- | :---
5889
+
`item` | The `ViewItem` or view ID to remove tags from.
5890
+
`tags` | A single tag string or iterable of tag strings to remove.
5891
+
5892
+
**Returns**
5893
+
5894
+
None.
5895
+
5896
+
**Example**
5897
+
5898
+
```py
5899
+
server.views.delete_tags(view_item, 'finance')
5900
+
```
5901
+
5902
+
<br>
5903
+
<br>
5904
+
5905
+
#### views.update_tags
5906
+
5907
+
```py
5908
+
views.update_tags(item)
5909
+
```
5910
+
5911
+
Updates the tags on the server to match the tags on the specified view item. Changes to tags must be made on the `ViewItem.tags` attribute before calling this method.
5912
+
5913
+
REST API: [Add Tags to View](https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_workbooks_and_views.htm#add_tags_to_view)
5914
+
5915
+
**Parameters**
5916
+
5917
+
Name | Description
5918
+
:--- | :---
5919
+
`item` | The `ViewItem` whose tags to synchronize to the server.
5920
+
5921
+
**Returns**
5922
+
5923
+
None.
5924
+
5925
+
**Example**
5926
+
5927
+
```py
5928
+
view_item.tags.add('quarterly')
5929
+
server.views.update_tags(view_item)
5930
+
```
5931
+
5932
+
<br>
5933
+
<br>
5934
+
5935
+
#### views.delete
5936
+
5937
+
```py
5938
+
views.delete(view)
5939
+
```
5940
+
5941
+
Deletes a view. If you delete the only view in a workbook, the workbook is also deleted. This can be used to remove hidden views when migrating content.
This endpoint is available with REST API version 3.27 and up.
5948
+
5949
+
**Parameters**
5950
+
5951
+
Name | Description
5952
+
:--- | :---
5953
+
`view` | The `ViewItem` or view ID (str) to delete.
5954
+
5955
+
**Returns**
5956
+
5957
+
None.
5958
+
5959
+
**Example**
5960
+
5961
+
```py
5962
+
server.views.delete(view_item.id)
5963
+
```
5964
+
5965
+
<br>
5966
+
<br>
5967
+
5968
+
#### views.filter
5969
+
5970
+
```py
5971
+
views.filter(**kwargs)
5972
+
```
5973
+
5974
+
Returns a list of views that match the specified filters. Fields and operators are passed as keyword arguments in the form `field_name=value` or `field_name__operator=value`.
0 commit comments