details: https://code.openbravo.com/erp/devel/pi/rev/043f858edd91 changeset: 30500:043f858edd91 user: Carlos Aristu <carlos.aristu <at> openbravo.com> date: Thu Oct 20 11:31:00 2016 +0200 summary: fixes issue 34171: New standard response action to refresh grid parameters
diffstat: modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js | 17 ++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diffs (27 lines): diff -r 94456afa04a7 -r 043f858edd91 modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js --- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js Thu Oct 20 08:32:52 2016 +0200 +++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/utilities/ob-utilities-action-def.js Thu Oct 20 11:31:00 2016 +0200 @@ -145,6 +145,23 @@ } }); +//** {{{ refreshGridParameter }}} ** +//It refreshes a grid parameter defined within a parameter window +//Parameters: +//* {{{gridName}}}: The name of the grid parameter +OB.Utilities.Action.set('refreshGridParameter', function (paramObj) { + var processView = paramObj._processView, + gridName = paramObj.gridName, + gridItem; + if (processView && processView.theForm && processView.theForm.getItem && gridName) { + gridItem = processView.theForm.getItem(gridName); + if (gridItem && gridItem.canvas && gridItem.canvas.viewGrid) { + // force parameter grid refresh by invalidating cache + gridItem.canvas.viewGrid.invalidateCache(); + } + } +}); + //** {{{ OBUIAPP_downloadReport }}} ** //This action is used by the BaseReportActionHandler to download the generated file with the //report result from the temporary location using the postThroughHiddenForm function. The mode is ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits