VMware Cloud Community
V8888
Contributor
Contributor

vCAC 6.1 - How to fetch custom attribute values in ChargebackByAllocatedResourceByGroupView.js

In vCAC 6.1 chargeback module (ChargebackByAllocatedResourceByGroupView), fetching the default values like memory, cpu like below works fine. But if we try to add a grid value to fetch a custom property value then it doesn't return any value. We can see these custom property values listed in the VMs properties section but just the js script responsible for Chargeback portlet module is not returning the value. Are the custom property values stored differently anywhere? If so how to fetch it in chargeback module?

Working

{

            text: 'Memory (GB)',

            dataIndex: 'memory',

            getSortParam: function() {

                return 'Memory';

            },

            align: 'right',

            flex: .75,

            renderer: function(value) {

                return this.helpers.ConvertToNextOrderStorageUnit(value);

            }

        },

Not working - Custom Property

{

            text: 'BusinessUnit',

            dataIndex: 'BusinessUnit.Name',

            getSortParam: function() {

                return 'BusinessUnit.Name';

            },

           

            flex: .75

        },

Reply
0 Kudos
0 Replies