Skip to content

Commit 99c24c8

Browse files
authored
Merge pull request #529 from tableau/jac/docs-on-ids
Jac/docs on ids
2 parents 6c5f84f + 411e365 commit 99c24c8

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

docs/interfaces/column.html

+8-7
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@ <h3>field<wbr>Id</h3>
121121
<div class="tsd-comment tsd-typography">
122122
<dl class="tsd-comment-tags">
123123
<dt>returns</dt>
124-
<dd><p>The fieldId of the field in the column. In summary data, this includes the aggregation.
125-
The fieldId is not stable across replacing data sources.
126-
For example after replacing the data source [Clipboard_20210305T164000].[sum:Sales:qk] could become
127-
[federated.12usuoq1171o1b1ebdyh60fjnev1].[sum:Sales:qk].</p>
124+
<dd><p>The fieldId of the field in the column. This is a calculated string that is unique across all fields and datasources in the workbook.
125+
It does not directly correspond to any other object Id - it is a combination of DataSource.id, Field.id, and Field type information.
126+
(When retrieved as summary data, this includes the aggregation.)
127+
This means the fieldID will change if the datasource is replaced: for example
128+
[Clipboard_20210305T164000].[sum:Sales:qk] could become [federated.12usuoq1171o1b1ebdyh60fjnev1].[sum:Sales:qk].</p>
128129
</dd>
129130
<dt>since</dt>
130131
<dd><p>1.5.0</p>
@@ -144,8 +145,8 @@ <h3>field<wbr>Name</h3>
144145
<div class="tsd-comment tsd-typography">
145146
<dl class="tsd-comment-tags">
146147
<dt>returns</dt>
147-
<dd><p>The name of the field in the column. In summary data, this includes the aggregation.
148-
The summary data field name is not stable across languages.
148+
<dd><p>The name of the field in the column. In summary data, this includes the aggregation as localized text, therefore
149+
the summary data field name is not stable across languages.
149150
For example, in an English version of Tableau, the field name might be SUM(Sales). In French, this would be SOMME(Sales).</p>
150151
</dd>
151152
</dl>
@@ -299,4 +300,4 @@ <h2>Legend</h2>
299300
ga('send', 'pageview');
300301
</script>
301302
</body>
302-
</html>
303+
</html>

docs/interfaces/field.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,11 @@ <h3>id</h3>
187187
<div class="tsd-comment tsd-typography">
188188
<dl class="tsd-comment-tags">
189189
<dt>returns</dt>
190-
<dd><p>Unique string representing this field in this datasource.</p>
190+
<dd><p>String that represents this field uniquely within this datasource. It is in the format 'a:generated-id:b[:c]',
191+
where 'generated-id' is based on the first name given to the Field and a/b/c are type information.
192+
To match a Field to a Column, use [this.DataSource.id][this.id] == Column.id
193+
</p>
194+
</dd>
191195
</dd>
192196
</dl>
193197
</div>
@@ -430,4 +434,4 @@ <h2>Legend</h2>
430434
ga('send', 'pageview');
431435
</script>
432436
</body>
433-
</html>
437+
</html>

0 commit comments

Comments
 (0)