-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy path6_Filters.html
More file actions
35 lines (34 loc) · 1.32 KB
/
6_Filters.html
File metadata and controls
35 lines (34 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script type="text/javascript" src="https://demo.microstrategy.com/MicroStrategyLibrary/javascript/embeddinglib.js"></script>
<!-- This is for the jsfiddle button. You don't need it in your application. -->
<script type="text/javascript" src="js/jsfiddle.js"></script>
</head>
<body>
<div>You can apply filter when the dossier is created.</div>
<div id="mydossier"></div>
<script type="text/javascript">
document.addEventListener("DOMContentLoaded", function(){
var container = document.getElementById("mydossier"),
url = "https://demo.microstrategy.com/MicroStrategyLibrary/app/EC70648611E7A2F962E90080EFD58751/837B57D711E941BF000000806FA1298F/W232--K146";
microstrategy.dossier.create({
url: url,
enableResponsive: true,
placeholder: container,
containerHeight: '1000px',
filters: [
{
"name": "Region", //You can change to the actual attribute name.
"selections": [
{"name":"NAM"} //You can change to the actual attribute element name.
]
}
]
})
});
</script>
</body>
</html>