Skip to content

Commit 3f4ef2d

Browse files
author
zhe
committed
update
1 parent a4670ad commit 3f4ef2d

File tree

2 files changed

+45
-2
lines changed

2 files changed

+45
-2
lines changed

docs/native-embedding-architecture/apply-filter.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,9 @@ Here are some examples for the filter object in the `MstrDossier.applyFilter()`
274274

275275
#### On-Page selectors
276276

277-
To apply selections to on-page selectors, use the same input as chapter-level filters.
277+
##### Attribute Element Filter
278+
279+
To apply selections on Attribute Element filter inside a page, use the same input as chapter-level filters.
278280

279281
- Select the element list of the selector
280282

@@ -326,6 +328,45 @@ To apply selections to on-page selectors, use the same input as chapter-level fi
326328
}
327329
```
328330

331+
##### Attribute/Metric Selector
332+
333+
To apply selections on an Attribute/Metric selector inside a page, you can use the following input:
334+
335+
- Select the object list of the selector
336+
337+
```js
338+
try {
339+
await mstrDossier.applyFilter({
340+
key: "W76",
341+
currentSelection: {
342+
objectItems: [
343+
{
344+
id: "<string>",
345+
name: "<string>",
346+
},
347+
],
348+
},
349+
});
350+
} catch (error) {
351+
// Your own error handling code
352+
}
353+
```
354+
355+
- Unset the selection of the selector
356+
357+
```js
358+
try {
359+
await mstrDossier.applyFilter({
360+
key: "W76",
361+
currentSelection: {
362+
selectionStatus: "unfiltered",
363+
},
364+
});
365+
} catch (error) {
366+
// Your own error handling code
367+
}
368+
```
369+
329370
#### Visualizations used as filters
330371

331372
- Select attribute elements of the visualization

docs/whats-new-in-the-embedding-sdk.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ In each release, changes are made to make the MicroStrategy SDK more powerful an
88
## Strategy ONE June 2025
99

1010
- [Information Window](./native-embedding-architecture/information-window.md)
11-
- Introduce the Information Window feature to enhance data visualization interactivity by providing contextual details in a dynamic overlay.
11+
- Introduce the Information Window feature in Native Embedding SDK to enhance data visualization interactivity by providing contextual details in a dynamic overlay.
12+
- [Retrieve and apply filters](./native-embedding-architecture/apply-filter#attributemetric-selector)
13+
- Support the Attribute/Metric selector in `MstrDossier.applyFilter()` and `MstrDossier.applyFilters()` in Native Embedding SDK.
1214

1315
## Strategy ONE April 2025
1416

0 commit comments

Comments
 (0)