-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdatamodel_view.xml
More file actions
89 lines (87 loc) · 2.95 KB
/
datamodel_view.xml
File metadata and controls
89 lines (87 loc) · 2.95 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<form>
<label>DataModel View</label>
<fieldset submitButton="false">
<input type="dropdown" token="datamodel">
<label>Data Model</label>
<fieldForLabel>listName</fieldForLabel>
<fieldForValue>modelName</fieldForValue>
<search>
<query>
| datamodel
| spath output=modelName path=modelName
| spath output=displayName path=displayName
| eval listName=displayName+": " +modelName
| sort listName
| table listName modelName</query>
</search>
</input>
</fieldset>
<search id="datamodel_base_search">
<query>
| datamodel $datamodel$
| spath output=modelName path=modelName
| spath output=foo path=objects{}
| mvexpand foo </query>
</search>
<row>
<panel>
<table>
<title>Datasets for $datamodel$:</title>
<search base="datamodel_base_search">
<query>
spath input=foo output=objectName path=objectName
| spath input=foo output=foo path=constraints{}
| mvexpand foo
| spath input=foo output=owner path=owner
| table owner</query>
</search>
<option name="drilldown">cell</option>
<drilldown>
<set token="owner">$row.owner$</set>
</drilldown>
</table>
</panel>
<panel>
<table>
<title>Constraints for $owner$:</title>
<search base="datamodel_base_search">
<query>
spath input=foo output=objectName path=objectName
| spath input=foo output=foo path=constraints{}
| mvexpand foo
| spath input=foo output=owner path=owner
| spath input=foo output=search path=search
| table modelName,objectName,owner, search
| eval owner_token="$owner$"
| makemv delim="." owner_token
| eval n=mvfind(owner_token,objectName)
| search n>=0
| fields modelName,objectName,owner, search</query>
</search>
<option name="drilldown">none</option>
</table>
</panel>
</row>
<row>
<panel>
<table>
<search base="datamodel_base_search">
<query>
spath input=foo output=objectName path=objectName
| spath input=foo output=foo path=fields{}
| mvexpand foo
| spath input=foo output=fieldName path=fieldName
| spath input=foo output=type path=type
| eval owner_token="$owner$"
| makemv delim="." owner_token
| eval n=mvfind(owner_token,objectName)
| search n>=0
| dedup fieldName
| table modelName,objectName, fieldName,type</query>
</search>
<option name="count">20</option>
<option name="drilldown">none</option>
</table>
</panel>
</row>
</form>