node-red-contrib-ibm-maximo-oslc-api
Version:
Maximo Oslc Api node for Node-RED
97 lines (95 loc) • 4.57 kB
HTML
<script type="text/javascript">
RED.nodes.registerType('retrieve',{
category: 'IBM Maximo',
color: '#C0DEED',
icon: 'mx_icon.png',
defaults: {
name: {value: ''},
resource: {value: '', required: true},
resourceType: {value: 'objectStructure'},
maximoConnection: {required: true, type: "maximoConnection"},
select: {value: ''},
where: {value: ''},
orderBy: {value: ''},
pageSize: {value: ''},
pageNumber: {value: ''},
searchAttributes: {value: ''},
searchTerms: {value: ''},
respFormat: {value: 'json'},
addSchema: {value: false},
collectionCount: {value: false}
},
inputs:1,
outputs:1,
label: function() {
return this.name||"Retrieve";
}
});
</script>
<script type="text/x-red" data-template-name="retrieve">
<div class="form-row">
<label for="node-input-name"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.name"></span></label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-maximoConnection"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.maximo_connection"></span></label>
<input type="text" id="node-input-maximoConnection">
</div>
<div class="form-row">
<label for="node-input-resourceType"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.resourceType"></span></label>
<select type="select" id="node-input-resourceType">
<option value="objectStructure">Object Structure</option>
<option value="fullUrl">Full Url</option>
</select>
</div>
<div class="form-row">
<label for="node-input-resource"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.resource"></label>
<input type="text" id="node-input-resource" placeholder="Resource">
</div>
<div class="form-row">
<label for="node-input-select"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.select"></span></label>
<input type="text" id="node-input-select">
</div>
<div class="form-row">
<label for="node-input-where"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.where"></span></label>
<input type="text" id="node-input-where">
</div>
<div class="form-row">
<label for="node-input-orderBy"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.orderBy"></span></label>
<input type="text" id="node-input-orderBy">
</div>
<div class="form-row">
<label for="node-input-pageSize"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.pageSize"></span></label>
<input type="text" id="node-input-pageSize">
</div>
<div class="form-row">
<label for="node-input-pageNumber"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.pageNumber"></span></label>
<input type="text" id="node-input-pageNumber">
</div>
<div class="form-row">
<label for="node-input-searchAttributes"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.searchAttributes"></span></label>
<input type="text" id="node-input-searchAttributes">
</div>
<div class="form-row">
<label for="node-input-searchTerms"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.searchTerms"></span></label>
<input type="text" id="node-input-searchTerms">
</div>
<div class="form-row">
<label for="node-input-respFormat"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.respFormat"></span></label>
<select type="select" id="node-input-respFormat">
<option value="json">Json</option>
<option value="xml">Xml</option>
</select>
</div>
<div class="form-row">
<label for="node-input-addSchema"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.addSchema"></span></label>
<input type="checkbox" id="node-input-addSchema">
</div>
<div class="form-row">
<label for="node-input-collectionCount"><i class="icon-tag"></i> <span data-i18n="maximoRetrieve.label.collectionCount"></span></label>
<input type="checkbox" id="node-input-collectionCount">
</div>
</script>
<script type="text/x-red" data-help-name="retrieve">
<p><span data-i18n="maximoRetrieve.label.hint"></p>
</script>