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
To [set columns] given a |tabularDataItem|, a [=/map=] |row|, [=/list=] |finalColumns|, and an optional [=/list=] |properties|, perform the following steps.
151
+
152
+
1. If |tabularDataItem| is a [=/list=], then:
153
+
1. Let |indices| be [=list/get the indices=] of |tabularDataItem|
154
+
2. [=list/For each=] |index| of |indices|
155
+
1. Let |value| be |tabularDataItem|[|index|]
156
+
2. If |properties| is not [=list/empty=] and |properties| does not [=list/contain=] |index|, [=iteration/continue=]
157
+
3. [=map/Set=] |row|[|index|] to |value|
158
+
4. If |finalColumns| does not [=list/contain=] |index|, [=list/append=] |index| to |finalColumns|
159
+
2. Othwerwise, if |tabularDataItem| is a [=/map=], then:
160
+
1. [=map/For each=] |key| → |value| of |tabularDataItem|
161
+
1. If |properties| is not [=list/empty=] and |properties| does not [=list/contain=] |key|, [=iteration/continue=]
162
+
2. [=map/Set=] |row|[|key|] to |value|
163
+
3. If |finalColumns| does not [=list/contain=] |key|, [=list/append=] |key| to |finalColumns|
164
+
3. Otherwise, [=map/set=] |row|["Value"] to |tabularDataItem|
0 commit comments