[V4.5.2] - rbf_getViewPage() shows all fields despite specif

Posted by IramK on 04-Dec-2017 11:11

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

Posted by Anvi Jain on 13-Dec-2017 03:57

Hi Iram,

The getViewPage API was enhanced in Rollbase version 4.5.3. The function that you have used corresponds to the 4.5.3 version of the API. To use the API in version 4.5.2, please refer to the following link -

https://documentation.progress.com/output/rb/doc/index.html#page/rb/4.5-api-related-changes.html#wwID0EXLGK

Let me know if this works.

Thanks,

Anvi

This thread is closed