IBM Maximo Asset Management Multitenancy 7.6

_opmodeor parameter

Use the _opmodeor parameter to evaluate multiple fields by using an OR condition between values instead of the default AND condition.

For example, the following request returns records where the issue YTD quantity is greater than 1 and the order quantity is greater than 5:

GET /maxrest/rest/mbo/inventory?issueytd=~gt~1&orderqty=~gt~5

The query selects six records, as shown in the rsTotal attribute:

<?xml version="1.0" encoding="UTF-8" ?> 
  <INVENTORYMboSet rsStart="0" rsTotal="6" rsCount="6" 
    xmlns="http://www.ibm.com/maximo" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <INVENTORY xmlns="http://www.ibm.com/maximo" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <ITEMSETID>SET1</ITEMSETID> 
      <MANUFACTURER>WES</MANUFACTURER> 
      <SHRINKAGEACC>
        <VALUE>6600-810-800</VALUE> 
        </INVENTORY>
        .
        .
    <INVENTORY xmlns="http://www.ibm.com/maximo" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    .
    .

The following modified request sets the _opmodeor parameter to true to return records where the issue YTD quantity is greater than 1, or the order quantity is greater than 5:

GET  /maxrest/rest/mbo/inventory?issueytd=~gt~1&orderqty=~gt~5&_opmodeor=1

The modified query selects 54 records:

<?xml version="1.0" encoding="UTF-8" ?> 
  <INVENTORYMboSet rsStart="0" rsTotal="54" rsCount="54" 
    xmlns="http://www.ibm.com/maximo" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <INVENTORY xmlns="http://www.ibm.com/maximo" 
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    .
    .


Feedback