Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2016-08-03 15:222016-08-30 10:50
ReportercaristuView Statuspublic 
Assigned Tocaristu 
PriorityurgentResolutionfixedFixed in Version3.0PR16Q4
StatusclosedFix in branchFixed in SCM revision12e245f1bfea
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toalostale
Web browser
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo

0033618: Unneeded datasource requests after creating a new record in grid view having summary functions

DescriptionHaving a grid with a summary function, if we create a new record in grid view, multiple (not needed) datasource requests are fired.
Steps To Reproduce1) Go to the [Unit of Measure] window
2) Add a summary field in any column
3) Create a new record in grid view and check that multiple datasource requests are fired
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0033588 closedcaristu Datasource Request done having a summary function with lazy filtering enabled 
related to defect 00256213.0PR14Q3 closedguillermogil Summary function fields are not working fine 
related to defect 00263633.0PR14Q3 closedguillermogil Summary function fields are not working fine when you create a record in grid view 
related to defect 0033626 closedNaroaIriarte Unneeded datasource request after cancelling a newly created record in grid view having summary functions 
related to defect 0033669 closedcaristu Unneeded datasource request after opening a window with a summary function on a child tab 

-  Notes
hgbot (developer)
2016-08-04 15:27

Repository: erp/devel/pi
Changeset: 12e245f1bfeaa36650801918365d0f04cb70be2c
Author: Carlos Aristu <carlos.aristu <at>>
Date: Thu Aug 04 15:18:01 2016 +0200
URL: [^]

fixes issue 33618: Unneeded datasource requests having summary functions
After editing a record in grid view, having summary functions, several DS request were fired. This was happening when processing the FIC return: setting the values for each field was causing a datasource call for refreshing the summaries, because Smartclient detected that the grid summary record was displayed. This wrong behavior also affected when editing manually the fields in grid view.
To fix this problem, if the summary record is displayed, we prevent those calls by setting the showGridSummary property of the grid to false, therefore Smartclient will not fire those unneeded requests. And once the edit function has finished we restore the value.

Together with this, there were some additional requests being fired when saving/updating a record in grid view. This was happening because the getSummaryRow() was being used to refresh the summaries but at the same time, the dataChanged function of the grid was indeed doing the same.
To solve this second problem, we just invoke getSummaryRow() when saving a new record in grid view, because this is the only case where the dataChanged function was not firing the request for refreshing the summaries.

M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-view-grid.js
hudsonbot (developer)
2016-08-11 18:40

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: [^]
Maturity status: Test
alostale (developer)
2016-08-30 10:50

code reviewed

Tested after new record creation in grid a single request to calculate summary functions is performed and the values get properly updated.

- Issue History
Date Modified Username Field Change
2016-08-03 15:22 caristu New Issue
2016-08-03 15:22 caristu Assigned To => platform
2016-08-03 15:22 caristu Modules => Core
2016-08-03 15:22 caristu Triggers an Emergency Pack => No
2016-08-03 15:22 caristu Tag Attached: Performance
2016-08-03 15:22 caristu Relationship added related to 0033588
2016-08-04 09:21 caristu Assigned To platform => caristu
2016-08-04 09:22 caristu Status new => scheduled
2016-08-04 14:55 caristu Relationship added related to 0025621
2016-08-04 14:55 caristu Relationship added related to 0026363
2016-08-04 15:27 hgbot Checkin
2016-08-04 15:27 hgbot Note Added: 0088821
2016-08-04 15:27 hgbot Status scheduled => resolved
2016-08-04 15:27 hgbot Resolution open => fixed
2016-08-04 15:27 hgbot Fixed in SCM revision => [^]
2016-08-04 15:27 caristu Review Assigned To => alostale
2016-08-04 15:30 caristu Relationship added related to 0033626
2016-08-10 10:28 caristu Relationship added related to 0033669
2016-08-11 18:40 hudsonbot Checkin
2016-08-11 18:40 hudsonbot Note Added: 0089039
2016-08-30 10:50 alostale Note Added: 0089538
2016-08-30 10:50 alostale Status resolved => closed
2016-08-30 10:50 alostale Fixed in Version => 3.0PR16Q4

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker