X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=POLICY-SDK-APP%2Fsrc%2Fmain%2Fwebapp%2Fapp%2FpolicyApp%2Fcontroller%2FdictionaryGridController%2FactionPolicyDictGridController.js;h=654575596c3f8423c40fb522cb5c33f3ddab8558;hb=0368cb99d6108970d172d4dc7145c67e4524b4a9;hp=e828bd963141c82323847c65346604a48a65c741;hpb=e0addf5b588a1244f9679becd90999dfcb4c3a94;p=policy%2Fengine.git diff --git a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryGridController/actionPolicyDictGridController.js b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryGridController/actionPolicyDictGridController.js index e828bd963..654575596 100644 --- a/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryGridController/actionPolicyDictGridController.js +++ b/POLICY-SDK-APP/src/main/webapp/app/policyApp/controller/dictionaryGridController/actionPolicyDictGridController.js @@ -1,6 +1,6 @@ /*- * ============LICENSE_START======================================================= - * ECOMP Policy Engine + * ONAP Policy Engine * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * ================================================================================ @@ -68,6 +68,7 @@ app.controller('actionPolicyDictGridController', function ($scope,modalService, {field: 'url'}, {field: 'method'}, {field: 'header', displayName: 'Headers'}, + {field: 'body', visible : false}, {field: 'description'}, {field: 'userCreatedBy.userName', displayName: 'Created By'}, {field: 'userModifiedBy.userName', displayName: 'Modified By'}, @@ -87,6 +88,14 @@ app.controller('actionPolicyDictGridController', function ($scope,modalService, docDefinition.styles.footerStyle = { fontSize: 10, bold: true }; return docDefinition; }, + exporterFieldCallback: function(grid, row, col, input) { + if( col.name == 'createdDate' || col.name == 'modifiedDate') { + var date = new Date(input); + return date.toString("yyyy-MM-dd HH:MM:ss a"); + } else { + return input; + } + }, exporterPdfOrientation: 'portrait', exporterPdfPageSize: 'LETTER', exporterPdfMaxGridWidth: 500,