You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

MAX not displaying the Business Object

Received Response
16
Views
3
Comments
edited Dec 18, 2017 8:00AM in Digital Assistant and Mobile 3 comments

Summary

MAX not displaying the Business Object

Content

My Custom API Code

module.exports = function(service) {

    service.get('/mobile/custom/DBRequisition/DBRequisitionList', function(req,res) {

        req.oracleMobile.database.getAll(

      'Requisition', {fields: 'REQUISITION_NUMBER,REQUISITION_STATUS'}).then(   

      function (result) {

         res.type('application/json');

          res.send(result.statusCode, result.result);       

                },

      function (error) {

        res.send(error.statusCode, error.error);

      }

    );

  });  

       

};

===========

it works fine on mcs custom api test console giving following output:

{

"items":

[

  {

    "Requisition_Number": "10001",

    "Requisition_Status": "Submitted",

    "Requisition_Amount": "200",

     "Requisition_Description": "Req Description",

     "Requisition_Justification": "Req Justification",

     "Requester_Name": "David",

     "Item_Purchased": "Printer",

     "Requested_Delivery_Date": "10-jan-2018"

  },

  {

    "Requisition_Number": "10002",

    "Requisition_Status": "Rejected",

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!