We will start with create meters using rest API.
1. The first step is to create a new object structure MX-METERS and attach METERS object to it .
2. Create a new html file and copy and paste a code to it.
3. Run the HTML file and click submit. The characteristic meter will be created in Maximo.
4. Next step is to attach meter to the asset. We will use default MXASSET object structure.
5. MXASSET object structure contains the relation to ASSETMETER table. We will input the field of assetmeter object the field using relation e.g. ASSETMETER.ID1.METERNAME. Where ID1 is the parameter that belongs to first record of assetmeter. We will use ID2 if we want to add another meter record to asset.
6. In the URL of Rest API, we will enter the assetuid (1120) of the asset for which we want to attach meter.
7. Create a new html file and copy and paste a code to it.
8. Run the HTML file and click submit. The meter will be attached to the asset in Maximo.
1. The first step is to create a new object structure MX-METERS and attach METERS object to it .
2. Create a new html file and copy and paste a code to it.
<html>
<body>
<form name="input" action="http://mxhost:9080/maxrest/rest/os/MX-METERS?_lid=wilson&_lpwd=wilson" method="POST">
METERNAME <input name="METERNAME" value="VIBRATION1" type="text"> <p/>
DESCRIPTION <input name="DESCRIPTION" value="Temperature" type="text"> <p/>
METERTYPE <input name="METERTYPE" value="CHARACTERISTIC" type="text"> <p/>
DOMAINID <input name="DOMAINID" value="HLM" type="text"> <p/>
<input type="submit" value="Submit">
</form>
</body>
3. Run the HTML file and click submit. The characteristic meter will be created in Maximo.
4. Next step is to attach meter to the asset. We will use default MXASSET object structure.
5. MXASSET object structure contains the relation to ASSETMETER table. We will input the field of assetmeter object the field using relation e.g. ASSETMETER.ID1.METERNAME. Where ID1 is the parameter that belongs to first record of assetmeter. We will use ID2 if we want to add another meter record to asset.
6. In the URL of Rest API, we will enter the assetuid (1120) of the asset for which we want to attach meter.
7. Create a new html file and copy and paste a code to it.
<html>
<body>
<form name="input" action="http://mxhost:9080/maxrest/rest/os/mxasset/1120?_action=AddChange&_lid=maxadmin&_lpwd=maxadmin" method="POST">
SITEID <input name="ASSETMETER.ID1.SITEID" value="BEDFORD" type="text"> <p/>
LINEARASSETMETERID <input name="ASSETMETER.ID1.LINEARASSETMETERID" value="0" type="text"> <p/>
METERNAME <input name="ASSETMETER.ID1.METERNAME" value="VIBRATION1" type="text"> <p/>
<input type="submit" value="Submit">
</form>
</body>
8. Run the HTML file and click submit. The meter will be attached to the asset in Maximo.
No comments:
Post a Comment