[V4.5.2] - rbf_getViewPage() shows all fields despite specifying the fields in the fieldList option - Forum - Rollbase - Progress Community

[V4.5.2] - rbf_getViewPage() shows all fields despite specifying the fields in the fieldList option

 Forum

[V4.5.2] - rbf_getViewPage() shows all fields despite specifying the fields in the fieldList option

This question is not answered

Hello,

I am using the rbf_getViewPage() API call and trying to display certain fields only and not all. This is my API call given below. However, this API is showing all the fields despite specifying the list of fields to show. Am I missing anything?

<script>
  var options = {
    "startRow": 0,
    "rowsPerPage": 10,
    "composite": {
      "level": 1,
      "objects":[  
        {  
          "objName": "order",
          "fieldList": "grossAmount"
        },
        {
          "objName": "credit",
          "fieldList" : "name"
        },
        {
          "objName": "payment",
          "fieldList" : "name"
        },
        {
          "objName": "invoice",
          "fieldList" : "name"  
        }
      ]},
    "fieldList": "name, id"
  };
rbf_getViewPage("n74q66CoQraYARPVuWS3XA", function returnedValues(values) {
  console.log(values);
}, options);

</script>

Cheers.

Iram

All Replies