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
With Data Integration in Tableau 10, a datasource can have multiple connections. To access the connections simply index them like you would datasources
- Import the `Workbook` object from the `tableaudocumentapi` module.
48
68
- To open a workbook, instantiate a `Workbook` object and pass the `.twb` file name in the constructor.
49
69
- The `Workbook` object exposes a `datasources` collection.
50
-
- Each datasource object has a `connection` object that supports a `server`, `dbname`, and `username` property.
51
-
- Save changes to the workbook by calling the `save` or `save_as` method.
70
+
- Each datasource object has a `connection` object that supports a `server`, `dbname`, and `username` property.
71
+
- Save changes to the workbook by calling the `save` or `save_as` method.
52
72
53
73
54
74
55
75
###Examples
56
76
57
-
The downloadable package contains an example named `replicateWorkbook.py` (in the folder `\Examples\Replicate Workbook`). This example reads an existing workbook and reads a .csv file that contains a list of servers, database names, and users. For each new user in the .csv file, the code copies the original workbook, updates the `server`, `dbname`, and `username` properties, and saves the workbook under a new name.
77
+
The downloadable package contains an example named `replicateWorkbook.py` (in the folder `\Examples\Replicate Workbook`). This example reads an existing workbook and reads a .csv file that contains a list of servers, database names, and users. For each new user in the .csv file, the code copies the original workbook, updates the `server`, `dbname`, and `username` properties, and saves the workbook under a new name.
0 commit comments