-
Notifications
You must be signed in to change notification settings - Fork 4
/
run_query.html
30 lines (30 loc) · 1.01 KB
/
run_query.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
<script type="text/x-red" data-template-name="run_query">
<div class="form-row">
<label for="node-input-mydb"><i class="fa fa-database"></i> Database</label>
<input type="text" id="node-input-mydb">
</div>
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType('run_query',{
category: 'sap_hana',
color:"#e97b00",
defaults: {
mydb: {type:"sap_hana_config", required:true},
name: {value:"runquery1", required:true}
},
inputs:1,
outputs:1,
icon: "db.png",
label: function() {
var levelNode = RED.nodes.node(this.mydb);
return this.name||(levelNode?levelNode.label():"run_query");
},
labelStyle: function() {
return this.name?"node_label_italic":"";
}
});
</script>