-
Notifications
You must be signed in to change notification settings - Fork 5
/
tab_datahubapi.html
112 lines (87 loc) · 3.72 KB
/
tab_datahubapi.html
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<!-- /* Copyright © 2021, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
-->
<br>
<p>CI360 provides a Datahub API to maintain tables and upload data. With the following UI you can create, delete, update
descriptors and also upload data </p>
<br>
<dl class="row marginbottom">
<dd class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<button id="btn_getDescriptors" class="btn btn-default btn-sm mybtn" onclick="getDescriptors(this);">
<span class="oi oi-magnifying-glass"></span> Get Descriptors
</button>
<button type="button" class="btn btn-default btn-sm mybtn" onclick="newTable();">
<span class="oi oi-plus"></span> Create New
</button>
<input type="radio" name="descriptorFilter" id="radioAll">
<label for="radioAll">all</label>
<input type="radio" name="descriptorFilter" id="radioOnlyImportedList">
<label for="radioOnlyImportedList">list only importedList descriptors</label>
<input type="radio" name="descriptorFilter" id="radioNoImportedList" checked>
<label for="radioNoImportedList">exclude all importedList descriptors</label>
</dd>
<dd class="row">
<dd class="col-xs-12 col-sm-12 col-md-8 col-lg-8">
<select id="descriptors" class="form-control form-control-sm selectpicker" onchange="getDescriptorDetails(this)">
</select>
</dd>
<dd class="col-xs-12 col-sm-12 col-md-4 col-lg-4">
<span id="numberDescriptors" style="color: lightgrey;"></span>
</dd>
</dd>
<br>
<dd class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<span class="descriptor_buttons" style="display:none">
<!-- button descriptor json -->
<button type="button" class="btn btn-default btn-sm mybtn" onclick="showRetrievedDescriptorJSON();">
<span class="oi oi-file"></span> Descriptor JSON
</button>
<!-- button upload data -->
<button type="button" id="btn_uploadDataToDescriptor" class="btn btn-default btn-sm mybtn"
onclick="uploadDataModal();">
<span class="oi oi-cloud-upload"></span> Upload Data
</button>
<!-- button delete descriptor -->
<button type="button" id="btn_deleteDescriptor" class="btn btn-danger btn-sm mybtn" onclick="deleteDescriptor();">
<span class="oi oi-circle-x"></span> Delete Descriptor
</button>
</span>
</dd>
</dl>
<br>
<div class="col-lg-12 grey-box descriptor_details" style="display:none">
<br>
<div id="tableHeader"></div>
<br>
<p class="table-buttons" style="display:none">
<!-- button to add data item -->
<button type="button" class="btn btn-default btn-sm" onclick="addDataItem();">
<span class="oi oi-plus"></span> Add Data Item
</button>
<!-- button to create table -->
<button type="button" class="btn btn-primary btn-sm" name="createTable" onclick="generateJSON(this);">
<span class="oi oi-caret-right"></span> Create Descriptor Based On This
</button>
<!-- button to update descriptor -->
<button type="button" class="btn btn-danger btn-sm" name="updateTable" onclick="generateJSON(this);">
<span class="oi oi-caret-right"></span> Update This Descriptor
</button>
<!-- link to attributes documentation -->
<a target="_blank"
href="https://go.documentation.sas.com/doc/en/cintcdc/production.a/cintag/dat-import-descitemprops.htm"
style="text-decoration:none">
Help on Attributes for Data Items
</a>
</p>
<div id="accordion" role="tablist"></div>
<br>
</div>
</div>
<br>