@@ -52,23 +52,27 @@ A class representing Tableau Data Sources, embedded in workbook files or in TDS
52
52
53
53
** Methods:**
54
54
55
- save
55
+ `Datasource. save( self )` Saves any changes to the datasource to the existing file .
56
56
57
- save_as
57
+ `Datasource. save_as( self )` Saves any changes to the datasource to a new file specified by the `new_file` parameter.
58
58
59
- add_calculation
59
+ `Datasource.add_field( self , name, datatype, role, field_type, caption)` Adds a base field object with the given values.
60
60
61
- ** Properities:**
61
+ `Datasource.remove_field(self , field)` Remove a given field.
62
+
63
+ `Datasource.add_calculation(self , caption, formula, datatype, role, type )` Adds a calculated field with the given values.
64
+
65
+ ** Properties:**
62
66
63
67
`self .name` Returns string with the name of datasource.
64
68
65
69
`self .version` Returns string of daatasource' s version.
66
70
67
71
`self .caption` Returns string of user defined name of datasource if exists.
68
72
69
- `self .connections` Returns list of connections are used in workbook.
73
+ `self .connections` Returns list of connections used in workbook.
70
74
71
- `self .fileds ` Returns key- value result of field name and their attributes.
75
+ `self .fields ` Returns key- value result of field name and their attributes.
72
76
73
77
`self .calculations` Returns calculated field of the workbook.
74
78
@@ -115,7 +119,7 @@ Represents a field in a datasource
115
119
116
120
`Field.add_alias(self , key, value)` Add an alias for a given display value.
117
121
118
- ** Properities :**
122
+ ** Properties :**
119
123
120
124
`self .name` Returns a string providing a nice name for the field which is derived from the alias, caption, or the id .
121
125
0 commit comments